{"id":23091425,"url":"https://github.com/phd/niced","last_synced_at":"2025-07-12T22:35:00.829Z","repository":{"id":190718028,"uuid":"676959699","full_name":"phd/niced","owner":"phd","description":"a daemon renicing new and existing processes","archived":false,"fork":false,"pushed_at":"2024-07-19T08:26:41.000Z","size":77,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T18:18:02.096Z","etag":null,"topics":["daemon","ionice","nice","oom-adj","oom-score-adj","renice"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-10T12:10:49.000Z","updated_at":"2024-07-19T08:26:45.000Z","dependencies_parsed_at":"2023-09-22T00:30:40.128Z","dependency_job_id":"325ed4fb-fe9f-4b1d-af6b-5f04b6a4a382","html_url":"https://github.com/phd/niced","commit_stats":null,"previous_names":["phd/niced"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/phd/niced","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phd%2Fniced","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phd%2Fniced/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phd%2Fniced/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phd%2Fniced/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phd","download_url":"https://codeload.github.com/phd/niced/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phd%2Fniced/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265066198,"owners_count":23706063,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["daemon","ionice","nice","oom-adj","oom-score-adj","renice"],"created_at":"2024-12-16T21:18:20.674Z","updated_at":"2025-07-12T22:35:00.793Z","avatar_url":"https://github.com/phd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"niced\n=====\n\n\u003c!--\n    Copyright (C) 2023 Piotr Henryk Dabrowski \u003cphd@phd.re\u003e\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n--\u003e\n\na daemon renicing new and existing processes\n\nDescription\n-----------\n\n`niced` is a daemon which monitors new (using the Linux netlink connector) and\nexisting processes and changes their 'niceness' according to configured rules.\n\nIt supports modification of processes' `nice`, `ionice` and\n`oom_adj`/`oom_score_adj` properties.\n\nThis daemon was inspired by the `renice` project and the configuration file\nshould be backward compatible.\n\nDaemon\n------\n\n`systemd` service is provided:\n\n    $ sudo systemctl enable niced.service\n    $ sudo systemctl start niced.service\n\nSynopsis\n--------\n\n`niced [--config-file PATH] [-h|--help]`\n\n`--config-file`\u003cbr\u003e\nuse given configuration file instead of `/etc/niced.conf`\n\nConfiguration\n-------------\n\nConfiguration is stored in the `/etc/niced.conf` file.\n\nModifying `niced` behavior:\n\n- `@full_scan_interval = N`\u003cbr\u003e\n  in seconds, default is `10`\n- `@verbose = N`\u003cbr\u003e\n  `-2` silent, `-1` quiet, `0` default, `1` yes, `2` very, `3` debug\n\nLines beginning with `#` are comments.\n\n### Configuration rules\n\nSyntax:\u003cbr\u003e\n`actions pattern`\n\nActions can be separated with a comma, or written together without separators.\n\n#### Actions\n\nSyntax:\u003cbr\u003e\n`action[parameter]`\n\nActions and parameters:\n\n- modifiers:\n    - `I` - case-insensitive pattern\n    - `F` - forced rule, reapplied every full scan\n    - `R` - recursive: `1...`, default is `inf`\n- nice:\n    - `n` - nice: `-20...19`, default is `10`\n- ionice:\n    - `r` - realtime ionice: `0...7`, default is `4`\n    - `b` - best-effort ionice: `0...7`, default is `4`\n    - `i` - idle ionice\n- oom:\n    - `o` - oom_adj: `-17...15`, default is `0`\n    - `O` - oom_score_adj: `-1000...1000`, default is `0`\n\n#### Patterns\n\nPatterns are regular expressions, case-sensitive by default.\n\nThe entire command including parameters is matched.\n\nIf your pattern begins with `^` or `(`, it is matched literally. This means you\nhave to keep in mind a potential full path before the executable name or the\nparameters after it.\n\nOtherwise `niced` takes care of those for you by enclosing your pattern with the\nfollowing regular expression syntax:\n\n`([^\\s]*/)?` and `(\\s.*)?`\n\n### Examples\n\n`/etc/niced.conf`:\n\n```\n@full_scan_interval = 10\n@verbose = 3\nn-15 Xorg\nn-15 kwin_x11\nn-15 pulseaudio\nn-10 barrier\nn-10 mpv\nn0R1 plasmashell\nn-5  plasmashell\nn0R1 krunner\nn-5  krunner\nn0   konsole\nn1RI SCREEN\nin10 ark\nin10 tar\nin10 unxz\nin10 dpkg\nin10 mandb\nin15 gcc\nin15 g++\nin15 cc1\nin15 cc1plus\nin15 dkms\nin15 gp\n```\n\nFiles\n-----\n\n`/etc/niced.conf`\n\nDependencies\n------------\n\n- `python3`\n- `forkstat`\n\nSee also\n--------\n\n`nice(1)`, `ionice(1)`, `proc(5)`, `forkstat(8)`\n\nBugs\n----\n\nReport bugs or ideas at https://github.com/phd/niced/issues\n\nAuthor\n------\n\nCopyright (C) 2023 Piotr Henryk Dabrowski \u0026lt;phd@phd.re\u0026gt;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphd%2Fniced","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphd%2Fniced","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphd%2Fniced/lists"}