The output of my program is as below:<div><br><div><div>hp180:/tmp # ./syl </div><div>Max priority is 99, min priority is 1</div><div>process 15952 policy is : 2 priority is : 33</div><div><br></div><div>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.</div>
<div><br></div><div><br></div><div>The output of getcap cmd :</div><div><br></div><div><div>vps1:/tmp # getcap syl </div><div>syl = cap_sys_nice+ep</div></div><div><br></div><div><br></div><br><div class="gmail_quote">2012/5/16 Jianbin Ma <span dir="ltr"><<a href="mailto:fengqing24@gmail.com" target="_blank">fengqing24@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">1.How to find RLIMIT_RTPRIO value,my file /etc/security/limit.conf 's content is:<div><div><domain> <type> <item> <value></div>
<div>#</div><div><br></div><div>#* soft core 0</div>
<div>#* hard rss 10000</div><div>#@student hard nproc 20</div><div>#@faculty soft nproc 20</div><div>#@faculty hard nproc 50</div><div>
#ftp hard nproc 0</div><div>#@student - maxlogins 4</div><div><br></div><div>2 and In the host the sched_setscheduler can work.So,I think I have CAPS_SYS_NICE.</div><div>3 The policy is SCHED_RR.</div>
<div><br></div><div>THANKS<div><div class="h5"><br><br><div class="gmail_quote">2012/5/16 Jianbin Ma <span dir="ltr"><<a href="mailto:fengqing24@gmail.com" target="_blank">fengqing24@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div><br><br><div class="gmail_quote">2012/5/16 Daniel Lezcano <span dir="ltr"><<a href="mailto:daniel.lezcano@free.fr" target="_blank">daniel.lezcano@free.fr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 05/16/2012 08:58 AM, Jianbin Ma wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In the container,the system call sched_scheduler can't work,I enable the<br>
file capabilities.And the system call still can't work.<br>
</blockquote>
<br>
What is your RLIMIT_RTPRIO value in the container ?<br>
Do you have CAP_SYS_NICE ?<br>
What policy are trying to set ?<br>
<br>
Thanks<span><font color="#888888"><br>
-- Daniel<br>
<br>
</font></span></blockquote></div><br>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div>