Re: [BUG] Paravirtual time accounting / IRQ time accounting

2014-03-22 Thread Rik van Riel
On 03/22/2014 03:15 AM, lwch...@cs.hku.hk wrote: > I observe that sometimes irq_time only includes "part" of steal_time. > > Like you said, irq_time is in dozens-of-microseconds. In VMs, as all > devices seen are virtual ones, irq_time seems to be not as desired > as it is in physical hosts. >

Re: [BUG] Paravirtual time accounting / IRQ time accounting

2014-03-22 Thread Mike Galbraith
On Sat, 2014-03-22 at 14:47 +0800, lwch...@cs.hku.hk wrote: > I checked the source code again. I forgot to mention that I commented out > steal_ticks() in my experiments (sorry): Oh well, it wasn't a _complete_ waste of time. I now have a gaggle of cute little alien boxen to dissect should I

Re: [BUG] Paravirtual time accounting / IRQ time accounting

2014-03-22 Thread lwcheng
Quoting Rik van Riel : On 03/20/2014 11:01 AM, Glauber Costa wrote: On Wed, Mar 19, 2014 at 6:42 AM, wrote: [src/kernel/sched/core.c] static void update_rq_clock_task(struct rq *rq, s64 delta) { ... ... #ifdef CONFIG_IRQ_TIME_ACCOUNTING irq_delta =

Re: [BUG] Paravirtual time accounting / IRQ time accounting

2014-03-22 Thread lwcheng
Quoting Mike Galbraith : On Thu, 2014-03-20 at 12:01 -0300, Glauber Costa wrote: On Wed, Mar 19, 2014 at 6:42 AM, wrote: > In consolidated environments, when there are multiple virtual machines (VMs) > running on one CPU core, timekeeping will be a problem to the guest OS. > Here, I

Re: [BUG] Paravirtual time accounting / IRQ time accounting

2014-03-22 Thread lwcheng
Quoting Mike Galbraith umgwanakikb...@gmail.com: On Thu, 2014-03-20 at 12:01 -0300, Glauber Costa wrote: On Wed, Mar 19, 2014 at 6:42 AM, lwch...@cs.hku.hk wrote: In consolidated environments, when there are multiple virtual machines (VMs) running on one CPU core, timekeeping will be a

Re: [BUG] Paravirtual time accounting / IRQ time accounting

2014-03-22 Thread lwcheng
Quoting Rik van Riel r...@redhat.com: On 03/20/2014 11:01 AM, Glauber Costa wrote: On Wed, Mar 19, 2014 at 6:42 AM, lwch...@cs.hku.hk wrote: [src/kernel/sched/core.c] static void update_rq_clock_task(struct rq *rq, s64 delta) { ... ... #ifdef CONFIG_IRQ_TIME_ACCOUNTING

Re: [BUG] Paravirtual time accounting / IRQ time accounting

2014-03-22 Thread Mike Galbraith
On Sat, 2014-03-22 at 14:47 +0800, lwch...@cs.hku.hk wrote: I checked the source code again. I forgot to mention that I commented out steal_ticks() in my experiments (sorry): Oh well, it wasn't a _complete_ waste of time. I now have a gaggle of cute little alien boxen to dissect should I ever

Re: [BUG] Paravirtual time accounting / IRQ time accounting

2014-03-22 Thread Rik van Riel
On 03/22/2014 03:15 AM, lwch...@cs.hku.hk wrote: I observe that sometimes irq_time only includes part of steal_time. Like you said, irq_time is in dozens-of-microseconds. In VMs, as all devices seen are virtual ones, irq_time seems to be not as desired as it is in physical hosts. A quick

Re: [BUG] Paravirtual time accounting / IRQ time accounting

2014-03-21 Thread Rik van Riel
On 03/20/2014 11:01 AM, Glauber Costa wrote: > On Wed, Mar 19, 2014 at 6:42 AM, wrote: >> >> [src/kernel/sched/core.c] >> static void update_rq_clock_task(struct rq *rq, s64 delta) >> { >> ... ... >> #ifdef CONFIG_IRQ_TIME_ACCOUNTING >> irq_delta = irq_time_read(cpu_of(rq))

Re: [BUG] Paravirtual time accounting / IRQ time accounting

2014-03-21 Thread Rik van Riel
On 03/20/2014 11:01 AM, Glauber Costa wrote: On Wed, Mar 19, 2014 at 6:42 AM, lwch...@cs.hku.hk wrote: [src/kernel/sched/core.c] static void update_rq_clock_task(struct rq *rq, s64 delta) { ... ... #ifdef CONFIG_IRQ_TIME_ACCOUNTING irq_delta =

Re: [BUG] Paravirtual time accounting / IRQ time accounting

2014-03-20 Thread Mike Galbraith
On Thu, 2014-03-20 at 12:01 -0300, Glauber Costa wrote: > On Wed, Mar 19, 2014 at 6:42 AM, wrote: > > In consolidated environments, when there are multiple virtual machines (VMs) > > running on one CPU core, timekeeping will be a problem to the guest OS. > > Here, I report my findings about

Re: [BUG] Paravirtual time accounting / IRQ time accounting

2014-03-20 Thread Glauber Costa
On Wed, Mar 19, 2014 at 6:42 AM, wrote: > In consolidated environments, when there are multiple virtual machines (VMs) > running on one CPU core, timekeeping will be a problem to the guest OS. > Here, I report my findings about Linux process scheduler. > > > Description > > Linux

Re: [BUG] Paravirtual time accounting / IRQ time accounting

2014-03-20 Thread Glauber Costa
On Wed, Mar 19, 2014 at 6:42 AM, lwch...@cs.hku.hk wrote: In consolidated environments, when there are multiple virtual machines (VMs) running on one CPU core, timekeeping will be a problem to the guest OS. Here, I report my findings about Linux process scheduler. Description

Re: [BUG] Paravirtual time accounting / IRQ time accounting

2014-03-20 Thread Mike Galbraith
On Thu, 2014-03-20 at 12:01 -0300, Glauber Costa wrote: On Wed, Mar 19, 2014 at 6:42 AM, lwch...@cs.hku.hk wrote: In consolidated environments, when there are multiple virtual machines (VMs) running on one CPU core, timekeeping will be a problem to the guest OS. Here, I report my findings

[BUG] Paravirtual time accounting / IRQ time accounting

2014-03-19 Thread lwcheng
In consolidated environments, when there are multiple virtual machines (VMs) running on one CPU core, timekeeping will be a problem to the guest OS. Here, I report my findings about Linux process scheduler. Description Linux CFS relies on rq->clock_task to charge each task,

[BUG] Paravirtual time accounting / IRQ time accounting

2014-03-19 Thread lwcheng
In consolidated environments, when there are multiple virtual machines (VMs) running on one CPU core, timekeeping will be a problem to the guest OS. Here, I report my findings about Linux process scheduler. Description Linux CFS relies on rq-clock_task to charge each task,