Re: [PATCH 0/4] Finer granularity and task/cgroup irq time accounting

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Tuesday, August 24, 2010 - 4:49 am

On Tue, 2010-08-24 at 17:08 +0530, Balbir Singh wrote:


I'm still not sure what you want them for, but if its for wanting to
know wth the system is up to, simply account them on their own, and not
include them in any task stats.

That is, keep the existing hi/si interface and improve upon that, but
also subtract those times from the task execution times.

That way, if a cpu is like 80% hogged by IRQ action, you'll not see a
100% busy task, but only a 20%.

At that point you can also feed the IRQ time back into
sched_rt_avg_update() (which strictly speaking isn't rt but !fair), and
the load-balancer will automagically try and move tasks away from that
cpu.

If you really want to account (and possibly control) all the work
belonging to a particular group you'll have to make sure work does
indeed stay within the group -- which is where per-cgroup workqueue
threads and per-cgroup softirq threads etc. come into play.

Lumping all work together and then trying to extract something again is
silly.

And hardirq time really is system time, not cgroup or task time.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/4] Finer granularity and task/cgroup irq time acc ..., Venkatesh Pallipadi, (Mon Jul 19, 4:57 pm)
[PATCH 1/4] sched: Track and export per task [hard|soft]ir ..., Venkatesh Pallipadi, (Mon Jul 19, 4:57 pm)
[PATCH 2/4] x86: Add IRQ_TIME_ACCOUNTING, finer accounting ..., Venkatesh Pallipadi, (Mon Jul 19, 4:57 pm)
[PATCH 3/4] sched: Generalize cpuacct usage tracking makin ..., Venkatesh Pallipadi, (Mon Jul 19, 4:57 pm)
[PATCH 4/4] sched: Export irq times through cpuacct cgroup, Venkatesh Pallipadi, (Mon Jul 19, 4:57 pm)
Re: [PATCH 0/4] Finer granularity and task/cgroup irq time ..., Martin Schwidefsky, (Tue Jul 20, 12:55 am)
Re: [PATCH 0/4] Finer granularity and task/cgroup irq time ..., Venkatesh Pallipadi, (Tue Jul 20, 9:55 am)
Re: [PATCH 0/4] Finer granularity and task/cgroup irq time ..., Martin Schwidefsky, (Thu Jul 22, 4:12 am)
Re: [PATCH 0/4] Finer granularity and task/cgroup irq time ..., Venkatesh Pallipadi, (Thu Jul 22, 7:12 pm)
Re: [PATCH 0/4] Finer granularity and task/cgroup irq time ..., Venkatesh Pallipadi, (Mon Aug 23, 5:56 pm)
Re: [PATCH 0/4] Finer granularity and task/cgroup irq time ..., Peter Zijlstra, (Tue Aug 24, 4:49 am)
Re: [PATCH 0/4] Finer granularity and task/cgroup irq time ..., Martin Schwidefsky, (Tue Aug 24, 5:06 am)
Re: [PATCH 0/4] Finer granularity and task/cgroup irq time ..., Venkatesh Pallipadi, (Tue Aug 24, 12:20 pm)
Re: [PATCH 0/4] Finer granularity and task/cgroup irq time ..., Venkatesh Pallipadi, (Tue Aug 24, 7:02 pm)
Re: [PATCH 0/4] Finer granularity and task/cgroup irq time ..., Martin Schwidefsky, (Wed Aug 25, 12:20 am)