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 <fengqin...@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 <fengqin...@gmail.com>
>
>>
>>
>> 2012/5/16 Daniel Lezcano <daniel.lezc...@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
>>>
>>>
>>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to