Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagebash
echo ‹pid› > /sys/fs/cgroup/net_prio/prio-‹skb-priority›/cgroup.procs

for example:

Code Block
languagebash
echo 730 > /sys/fs/cgroup/net_prio/prio-4/cgroup.procs

...