qos: process-classified I/O priority and rate limiting

Adds a QoS engine that attributes each read/write to the calling
process, matches it against a ruleset, and applies that class's ioprio
and nice value to the worker thread for the duration of the request.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Grioghar 2026-09-09 16:34:55 -05:00
parent 515b0549ef
commit 34e57dbb8a
13 changed files with 1537 additions and 0 deletions

View file

@ -27,4 +27,8 @@ namespace procfs
void init();
void shutdown();
std::string get_name(const int tid);
// Raw contents of /proc/<pid>/cgroup with the trailing newline
// removed. Empty when the process is gone or unreadable.
std::string get_cgroup(const int pid);
}