[lxc-devel] cpu.shares doesn't work

zhen wang wangzhenaaa7 at gmail.com
Mon Jan 5 05:41:33 UTC 2015


I have created two containers using docker.  When i changed  the value of
cpu.shares in the associated path of the docker id ,and i have already
substituted -1 in the cpu.cfs_quota_us with 50000,  I tested a program
,which doesn't use io, the result of test didn't show the setting of
 cpu.shares  work. Example :
i set the cpu.shares 128  in one container and the other 1024 and i run the
program in the two container concurrently. The time of the program cost is
almost the same.
Kernel version 2.6.32-431.
cpu cores - 2

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20150105/cfd6eac5/attachment.html>


More information about the lxc-devel mailing list