> Am 24.05.2020 um 23:38 schrieb Michael Keuter <li...@mksolutions.info>:
>
>
>
>> Am 24.05.2020 um 23:24 schrieb Lonnie Abelbeck <li...@lonnie.abelbeck.com>:
>>
>>
>>
>>> On May 24, 2020, at 3:49 PM, Michael Keuter <li...@mksolutions.info> wrote:
>>>
>>> Try running the "yes" stresstest in the container, with the above
>>> limitations.
>>
>> If I define lxc.cgroup.cpuset.cpus to 1, or 2 or 3, the "yes" stress-test
>> [1] only uses one core.
>>
>> Setting lxc.cgroup.cpuset.cpus=4 the container does not start.
>>
>> Not setting lxc.cgroup.cpuset.cpus all 4 cores are used.
>>
>> Lonnie
>>
>> [1]
>> (start test)
>> # for x in 1 2 3 4; do ( yes >/dev/null & ); done
>>
>> (stop test)
>> # killall yes
>
> ----
> From the man page:
>
> lxc-cgroup -n foo cpuset.cpus "0,3"
> assign the processors 0 and 3 to the container.
> ----
>
> I guess you define which CPU cores are allowed to use (0-3), that's why 4
> does not work :-).
>
> lxc.cgroup.cpuset.cpus=0,3 (maybe in quotes, should use core 1 and 4)
Yup, this uses CPU 2 + 4 (core 0 + 3), you define the actual cores NOT the
count!
lxc.cgroup.cpuset.cpus = 1,3
Michael
http://www.mksolutions.info
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to
pay...@krisk.org.