...
The cgroups hierarchy can be defined in many ways. Instead of creating the minimal hierarchy specific for the given scenario a more generic directory tree will be used, allowing for convenient assignment of skb priority from the 0 .. 15
range, thus covering all priority levels recognized by the tc
command, to all network packets generated by a process with a given PID, in a straightforward fashion like
Code Block | ||
---|---|---|
| ||
echo ‹pid› > /sys/fs/cgroup/net_prio/prio-‹skb-priority›/cgroup.procs |
for example:
Code Block | ||
---|---|---|
| ||
echo 730 > /sys/fs/cgroup/net_prio/prio-4/cgroup.procs |
...