Skip to contentSkip to conversation

Incorrect accounting of irq into the running task

DISCUSSION Sadasivan Shaiju 2 participants 3 messages Jan 4, 2013 – Jan 6, 2013

lore
Share & tools
lore
#0 lore raw

Hi Venkatesh,

I have applied the following patches for the incorrect
accounting of irq into the running task .

[PATCH] x86: Add IRQ_TIME_ACCOUNTING [e82b8e4ea4f3dffe6e7939f90e78da675fcc450e]
[PATCH] sched: Add IRQ_TIME_ACCOUNTING, finer accounting of irq time [b52bfee445d315549d41eacf2fa7c156e7d153d5]

[PATCH] sched: Do not account irq time to current task [305e6835e05513406fa12820e40e4a8ecb63743c] [PATCH] sched: Export ns irqtimes through /proc/stat [abb74cefa9c682fb38ba86c17ca3c86fed6cc464]

But still the stime and utime of the process in
/proc/pid/stat is high . I think the above patches does
not update
The stime and utime values in /proc/pid/stat .

Or am I missing anything ?

Regards,
Shaiju.

#1 lore raw
Quoted 18 lines · Sadasivan Shaiju

Hi Venkatesh,

I have applied the following patches for the incorrect accounting of irq into the running task .

[PATCH] x86: Add IRQ_TIME_ACCOUNTING [e82b8e4ea4f3dffe6e7939f90e78da675fcc450e]
[PATCH] sched: Add IRQ_TIME_ACCOUNTING, finer accounting of irq time [b52bfee445d315549d41eacf2fa7c156e7d153d5]

[PATCH] sched: Do not account irq time to current task [305e6835e05513406fa12820e40e4a8ecb63743c] [PATCH] sched: Export ns irqtimes through /proc/stat [abb74cefa9c682fb38ba86c17ca3c86fed6cc464]

Quoted 6 lines

But still the stime and utime of the process in /proc/pid/stat is high. I think the above patches does not update The stime and utime values in /proc/pid/stat.

Or am I missing anything?

Just checking that you do have CONFIG_IRQ_TIME_ACCOUNTING=y in your kernel config?

Cheers,
Shaun

#2 lore raw

Hi Shaun,

-----Original Message-----
From: Shaun Ruffell [mailto:[email protected]]
Sent: Saturday, January 05, 2013 9:21 AM
To: Sadasivan Shaiju
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: Incorrect accounting of irq into the running task

Quoted 18 lines · Sadasivan Shaiju

Hi Venkatesh,

I have applied the following patches for the incorrect accounting of irq into the running task .

[PATCH] x86: Add IRQ_TIME_ACCOUNTING [e82b8e4ea4f3dffe6e7939f90e78da675fcc450e]
[PATCH] sched: Add IRQ_TIME_ACCOUNTING, finer accounting of irq time [b52bfee445d315549d41eacf2fa7c156e7d153d5]

[PATCH] sched: Do not account irq time to current task [305e6835e05513406fa12820e40e4a8ecb63743c] [PATCH] sched: Export ns irqtimes through /proc/stat [abb74cefa9c682fb38ba86c17ca3c86fed6cc464]

Quoted 6 lines

But still the stime and utime of the process in /proc/pid/stat is high. I think the above patches does not update The stime and utime values in /proc/pid/stat.

Or am I missing anything?

Just checking that you do have CONFIG_IRQ_TIME_ACCOUNTING=y in your kernel config?

Yes it is turned on .

Regards,
Shaiju.

Cheers,
Shaun