nefelim4ag / Ananicy

Ananicy - is Another auto nice daemon, with community rules support (Use pull request please)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[basic] are all rules active by default?

greenisagoodcolor opened this issue · comments

Cool software! Are all rules in /etc/ananicy.d/00-default active by default? Or do I have to modify each rule.

E.g. default mailspring
# https://getmailspring.com { "name": "mailspring", "type": "Chat" } { "name": "mailsync", "type": "BG_CPUIO" } { "name": "mailsync.bin", "type": "BG_CPUIO" }

Do i need to modify each line according to readme schema?
{ "name": "gcc", "type": "Heavy_CPU", "nice": 19, "ioclass": "best-effort", "ionice": 7, "cgroup": "cpu90" }

So I would have to add nice, ioclass, ionice, and c group to the three mailspring lines above?

Thank you,
Matt

I suggest you to just try dump loaded rules: ~ sudo ananicy dump rules
I think that will help you =)

Thank you! Solved.

Actualy - sorry i don't quite follow, how can I turn the dump rules into active ones? I am still confused on configuration. apologies for the noobie question. Might be useful to add your answer to the readme..

@greenisagoodcolor
You can't directly copy-paste rules from dump rules of course, but you don't need it
dump rules just print ALL loaded rules, with all possible values (i.e. null if nothing set).

So when you write your rule and want to understood how ananicy parse it, you can restart daemon and get dump new dump.