|
|
|
| Re: What is OpenVZ container scheduling granularity [message #44677 is a reply to message #44676] |
Wed, 21 December 2011 11:14   |
Kirill Korotaev Messages: 137 Registered: January 2006 |
Senior Member |
From: *parallels.com
|
|
if CPU has nothing to do since your app went to sleep (even for 1us), it will be rescheduled to another CPU. Just like for conventional tasks in Linux.
On Dec 21, 2011, at 19:50 , shule ney wrote:
> Much thanks Kirill, I really appreciate your reply! My question is:
> Suppose two containers exist on my machine which can use 0%-100% CPU, each of them has only one active process. If I sleep one container's process for 1us which makes this container has nothing to do, will the the container be scheduled off and the other container gets scheduled? Is 1us too small for container scheduling?? I want to know if this case is possible. Thanks very much.
>
> 2011/12/21 Kirill Korotaev <dev@parallels.com>
> It's floating, depends on priorities. Plus more important for latency is not granularity, but preemptiveness.
>
> Sent from my iPhonespam SPAMSPAM
>
> On 21.12.2011, at 0:34, "shule ney" <neyshule@gmail.com> wrote:
>
> > Hi all:
> > I'm eager to know what is OpenVZ container scheduling granularity, 1ms or something??? I really need information about this.
> > <ATT00001.c>
>
|
|
|
|
|
|
|
|
| Re: What is OpenVZ container scheduling granularity [message #44694 is a reply to message #44687] |
Thu, 22 December 2011 09:59  |
shule ney Messages: 17 Registered: March 2011 |
Junior Member |
From: *parallels.com
|
|
Much thanks for your help lst_hoe02[?]
2011/12/22 <lst_hoe02@kwsoft.de>
> Zitat von shule ney <neyshule@gmail.com>:
>
> Thanks very much lst_hoe02, if I'm using kernel-2.6.24 which uses CFS
>> scheduler with nanosecond *granularity, processes *across* different
>> containers/groups should also have this * *granularity all right? *
>>
>
> To my knowledge OpenVZ does not alter the scheduler, but only priorities.
> So yes it should work, but others may have more insight then me.
>
> Regards
>
> Andreas
>
>
>
|
|
|