>
> HI,all
>
I resolved the problem ,the sched_setscheduler fails in a container is
because in its /cgoup,the parameters cpu.rt_period_us and cpu.rt_runtime_us
should be changed .If the tasks in a cgroup should be able to access CPU
resources for 4 seconds out of every 5 seconds, set cpu.rt_runtime_us to
4000000 (microseconds)and cpu.rt_period_us to 5000000(microseconds).
>
> Message: 3
> Date: Wed, 16 May 2012 09:58:26 +0200
> From: Miroslav Lednicky <miroslav.ledni...@fnusa.cz>
> Subject: Re: [Lxc-users] sched_setscheduler fails in a container
> To: lxc-users@lists.sourceforge.net
> Message-ID: <4fb35e22.60...@fnusa.cz>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> It can be the same problem as I have with siproxd.
>
>
> Dne 16.5.2012 09:25, Daniel Lezcano napsal(a):
> > 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
>
> --
> Miroslav Lednick?,
> Fakultn? nemocnice u sv. Anny v Brn?
>
>
>
> ------------------------------
>
>
>
------------------------------------------------------------------------------
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