Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Added Rules ; Some Fixes for the .service file ; Create installation script for Debian 9 #119

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ananicy.d/00-default/ark.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ark KDE archiver
{"name": "ark", "type": "BG_CPUIO"}

2 changes: 2 additions & 0 deletions ananicy.d/00-default/bash.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Bash
{ "name": "bash", "type": "Doc-View" }
18 changes: 18 additions & 0 deletions ananicy.d/00-default/cinnamon.rules
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,21 @@
{ "name": "cinnamon-killer-daemon", "type": "LowLatency_RT" }
{ "name": "cinnamon-launcher", "type": "LowLatency_RT" }
{ "name": "cinnamon-screensaver", "type": "BG_CPUIO" }
{ "name": "csd-background", "type": "LowLatency_RT" }
{ "name": "csd-power", "type": "LowLatency_RT" }
{ "name": "csd-wacom", "type": "LowLatency_RT" }
{ "name": "csd-media-keys", "type": "LowLatency_RT" }
{ "name": "csd-keyboard", "type": "LowLatency_RT" }
{ "name": "csd-print-notifications", "type": "LowLatency_RT" }
{ "name": "csd-color", "type": "LowLatency_RT" }
{ "name": "csd-xsettings", "type": "LowLatency_RT" }
{ "name": "csd-sound", "type": "LowLatency_RT" }
{ "name": "csd-automount", "type": "LowLatency_RT" }
{ "name": "csd-orientation", "type": "LowLatency_RT" }
{ "name": "csd-housekeeping", "type": "LowLatency_RT" }
{ "name": "csd-a11y-keyboard", "type": "LowLatency_RT" }
{ "name": "csd-a11y-settings", "type": "LowLatency_RT" }
{ "name": "csd-cursor", "type": "LowLatency_RT" }
{ "name": "csd-mouse", "type": "LowLatency_RT" }
{ "name": "csd-screensaver-proxy", "type": "LowLatency_RT" }
{ "name": "csd-clipboard", "type": "LowLatency_RT" }
2 changes: 2 additions & 0 deletions ananicy.d/00-default/konsole.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Konsole
{ "name": "konsole", "type": "Doc-View" }
2 changes: 2 additions & 0 deletions ananicy.d/00-default/minidlna.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# minidlna
{ "name": "minidlnad", "type": "Chat" }
2 changes: 2 additions & 0 deletions ananicy.d/00-default/okular.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Okular PDF KDE reader
{ "name": "okular", "type": "Doc-View" }
3 changes: 3 additions & 0 deletions ananicy.d/00-default/packaged.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# PackageManager
{ "name": "packaged", "type": "BG_CPUIO" }
{ "name": "packagemanagerd", "type": "BG_CPUIO" }
2 changes: 2 additions & 0 deletions ananicy.d/00-default/unbound.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Unbound DNS cache system
{ "name": "unbound", "type": "Doc-View" }
5 changes: 5 additions & 0 deletions ananicy.d/00-default/unison.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Unison
{ "name": "unison", "type": "BG_CPUIO" }
{ "name": "unison-gtk", "type": "BG_CPUIO" }
{ "name": "unison-2.48.3", "type": "BG_CPUIO" }
{ "name": "unison-2.48.3-gtk", "type": "BG_CPUIO" }
7 changes: 7 additions & 0 deletions ananicy.d/00-default/update.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# system updaters
{ "name": "apt-get", "type": "BG_CPUIO" }
{ "name": "aptitude", "type": "BG_CPUIO" }
{ "name": "zypper", "type": "BG_CPUIO" }

{ "name": "rpm", "type": "BG_CPUIO" }
{ "name": "dpkg", "type": "BG_CPUIO" }
3 changes: 3 additions & 0 deletions ananicy.d/00-default/vscode.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# VisualStudio Code
{ "name": "code", "type": "Doc-View" }
{ "name": "vscode", "type": "Doc-View" }
2 changes: 1 addition & 1 deletion ananicy.d/00-types.types
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Type: Game
# Use more CPU time if possible
# Games do not always need more IO, but in most cases can be hungry for CPU
{ "type": "Game", "nice": -5, "ioclass": "best-effort" }
{ "type": "Game", "nice": -5 }

# Type: Player Audio/Video
# Try to add more CPU power to decrease latency/lags
Expand Down
8 changes: 4 additions & 4 deletions ananicy.service
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ ExecStart=/usr/bin/ananicy start
Nice=19
SuccessExitStatus=143
OOMScoreAdjust=-999
Restart=always
Restart=on-failure
CPUAccounting=true
MemoryHigh=16M
MemoryMax=64M
#MemoryHigh=16M
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK systemd ignore key which not supported, or i misunderstood something?

#MemoryMax=64M
ProtectSystem=true
ProtectHome=true
#ProtectHome=true
PrivateTmp=yes

[Install]
Expand Down