^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /sys/kernel/uids/<uid>/cpu_shares
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) Date: December 2007, finally removed in kernel v2.6.34-rc1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Contact: Dhaval Giani <dhaval@linux.vnet.ibm.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) The /sys/kernel/uids/<uid>/cpu_shares tunable is used
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) to set the cpu bandwidth a user is allowed. This is a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) propotional value. What that means is that if there
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) are two users logged in, each with an equal number of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) shares, then they will get equal CPU bandwidth. Another
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) example would be, if User A has shares = 1024 and user
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) B has shares = 2048, User B will get twice the CPU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) bandwidth user A will. For more details refer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) Documentation/scheduler/sched-design-CFS.rst