Re: [Xen-devel] [BUG] Linux process vruntime accounting in Xen

2016-05-20 Thread Juergen Gross
On 18/05/16 18:14, Juergen Gross wrote: > On 18/05/16 18:09, Tony S wrote: >> On Wed, May 18, 2016 at 8:57 AM, Dario Faggioli >> wrote: >>> On Wed, 2016-05-18 at 14:24 +0200, Juergen Gross wrote: On 17/05/16 11:33, George Dunlap wrote: >> Looks like

Re: [Xen-devel] [BUG] Linux process vruntime accounting in Xen

2016-05-18 Thread Juergen Gross
On 18/05/16 18:09, Tony S wrote: > On Wed, May 18, 2016 at 8:57 AM, Dario Faggioli > wrote: >> On Wed, 2016-05-18 at 14:24 +0200, Juergen Gross wrote: >>> On 17/05/16 11:33, George Dunlap wrote: > Looks like CONFIG_PARAVIRT_TIME_ACCOUNTING is used for adjusting

Re: [Xen-devel] [BUG] Linux process vruntime accounting in Xen

2016-05-18 Thread Tony S
On Wed, May 18, 2016 at 8:57 AM, Dario Faggioli wrote: > On Wed, 2016-05-18 at 14:24 +0200, Juergen Gross wrote: >> On 17/05/16 11:33, George Dunlap wrote: >> > > Looks like CONFIG_PARAVIRT_TIME_ACCOUNTING is used for adjusting >> > > process >> > > times. KVM uses it

Re: [Xen-devel] [BUG] Linux process vruntime accounting in Xen

2016-05-18 Thread Dario Faggioli
On Wed, 2016-05-18 at 14:24 +0200, Juergen Gross wrote: > On 17/05/16 11:33, George Dunlap wrote: > > > Looks like CONFIG_PARAVIRT_TIME_ACCOUNTING is used for adjusting > > > process > > > times. KVM uses it but Xen doesn't. > > Is someone on the Linux side going to put this on their to-do list >

Re: [Xen-devel] [BUG] Linux process vruntime accounting in Xen

2016-05-18 Thread Juergen Gross
On 17/05/16 11:33, George Dunlap wrote: > On Mon, May 16, 2016 at 11:33 PM, Boris Ostrovsky > wrote: >> On 05/16/2016 05:38 PM, Tony S wrote: >>> The issue behind it is that the process execution calculation(e.g., >>> delta_exec) in virtualized environment should not

Re: [Xen-devel] [BUG] Linux process vruntime accounting in Xen

2016-05-17 Thread Juergen Gross
On 17/05/16 11:33, George Dunlap wrote: > On Mon, May 16, 2016 at 11:33 PM, Boris Ostrovsky > wrote: >> On 05/16/2016 05:38 PM, Tony S wrote: >>> The issue behind it is that the process execution calculation(e.g., >>> delta_exec) in virtualized environment should not

Re: [Xen-devel] [BUG] Linux process vruntime accounting in Xen

2016-05-17 Thread George Dunlap
On Mon, May 16, 2016 at 11:33 PM, Boris Ostrovsky wrote: > On 05/16/2016 05:38 PM, Tony S wrote: >> The issue behind it is that the process execution calculation(e.g., >> delta_exec) in virtualized environment should not be calculated as it >> did in physical

Re: [Xen-devel] [BUG] Linux process vruntime accounting in Xen

2016-05-16 Thread Tony S
On Mon, May 16, 2016 at 3:38 PM, Tony S wrote: > On Mon, May 16, 2016 at 5:37 AM, Dario Faggioli > wrote: >> [Adding George again, and a few Linux/Xen folks] >> >> On Sat, 2016-05-14 at 18:25 -0600, Tony S wrote: >>> In virtualized environments,

Re: [Xen-devel] [BUG] Linux process vruntime accounting in Xen

2016-05-16 Thread Boris Ostrovsky
On 05/16/2016 05:38 PM, Tony S wrote: > The issue behind it is that the process execution calculation(e.g., > delta_exec) in virtualized environment should not be calculated as it > did in physical enviroment. > > Here are two solutions to fix it: > > 1) Based on the

Re: [Xen-devel] [BUG] Linux process vruntime accounting in Xen

2016-05-16 Thread Tony S
On Mon, May 16, 2016 at 5:37 AM, Dario Faggioli wrote: > [Adding George again, and a few Linux/Xen folks] > > On Sat, 2016-05-14 at 18:25 -0600, Tony S wrote: >> In virtualized environments, sometimes we need to limit the CPU >> resources to a virtual machine(VM). For

Re: [Xen-devel] [BUG] Linux process vruntime accounting in Xen

2016-05-16 Thread Dario Faggioli
[Adding George again, and a few Linux/Xen folks] On Sat, 2016-05-14 at 18:25 -0600, Tony S wrote: > In virtualized environments, sometimes we need to limit the CPU > resources to a virtual machine(VM). For example in Xen, we use > $ xl sched-credit -d 1 -c 50 > > to limit the CPU resource of dom

[Xen-devel] [BUG] Linux process vruntime accounting in Xen

2016-05-14 Thread Tony S
In virtualized environments, sometimes we need to limit the CPU resources to a virtual machine(VM). For example in Xen, we use $ xl sched-credit -d 1 -c 50 to limit the CPU resource of dom 1 as half of one physical CPU core. If the VM CPU resource is capped, the process inside the VM will have a