Back to home page

OSCL-LXR

 
 

    


0001 What:           /sys/kernel/uids/<uid>/cpu_shares
0002 Date:           December 2007, finally removed in kernel v2.6.34-rc1
0003 Contact:        Dhaval Giani <dhaval@linux.vnet.ibm.com>
0004                 Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
0005 Description:
0006                 The /sys/kernel/uids/<uid>/cpu_shares tunable is used
0007                 to set the cpu bandwidth a user is allowed. This is a
0008                 proportional value. What that means is that if there
0009                 are two users logged in, each with an equal number of
0010                 shares, then they will get equal CPU bandwidth. Another
0011                 example would be, if User A has shares = 1024 and user
0012                 B has shares = 2048, User B will get twice the CPU
0013                 bandwidth user A will. For more details refer
0014                 Documentation/scheduler/sched-design-CFS.rst