[Lxc-users] sched_setscheduler fails in a container (was: Re: Lxc-users Digest, Vol 29, Issue 7)
Jianbin Ma
fengqing24 at gmail.com
Wed May 16 08:11:03 UTC 2012
The output of my program is as below:
hp180:/tmp # ./syl
Max priority is 99, min priority is 1
process 15952 policy is : 2 priority is : 33
which indicates the priority is not out of range.And I've also add
cap_sys_nice permission via setcap cmd. But it still not work.
The output of getcap cmd :
vps1:/tmp # getcap syl
syl = cap_sys_nice+ep
2012/5/16 Jianbin Ma <fengqing24 at gmail.com>
> 1.How to find RLIMIT_RTPRIO value,my file /etc/security/limit.conf 's
> content is:
> <domain> <type> <item> <value>
> #
>
> #* soft core 0
> #* hard rss 10000
> #@student hard nproc 20
> #@faculty soft nproc 20
> #@faculty hard nproc 50
> #ftp hard nproc 0
> #@student - maxlogins 4
>
> 2 and In the host the sched_setscheduler can work.So,I think I have
> CAPS_SYS_NICE.
> 3 The policy is SCHED_RR.
>
> THANKS
>
>
> 2012/5/16 Jianbin Ma <fengqing24 at gmail.com>
>
>>
>>
>> 2012/5/16 Daniel Lezcano <daniel.lezcano at free.fr>
>>
>>> On 05/16/2012 08:58 AM, Jianbin Ma wrote:
>>>
>>>> In the container,the system call sched_scheduler can't work,I enable the
>>>> file capabilities.And the system call still can't work.
>>>>
>>>
>>> What is your RLIMIT_RTPRIO value in the container ?
>>> Do you have CAP_SYS_NICE ?
>>> What policy are trying to set ?
>>>
>>> Thanks
>>> -- Daniel
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20120516/e472e29e/attachment.html>
More information about the lxc-users
mailing list