Re: [patch] sched: schedstat needs a diet

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Mathieu Desnoyers <mathieu.desnoyers@...>
Cc: Peter Zijlstra <peterz@...>, Ingo Molnar <mingo@...>, Linux Kernel Mailing List <linux-kernel@...>
Date: Thursday, October 18, 2007 - 6:57 pm

On 10/18/07, Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> wrote:

Maybe my wording was ambiguous, I meant to reduce cache line pollution
when accessing these schedstat fields.

With unsigned long, on x86_64, schedstat consumes 288 bytes for each
sched_domain and 128 bytes in struct rq.  On a extremely small system
that has a couple of CPU sockets with one level of numa node, there
will be 704 bytes per CPU for schedstat.  Given the sparseness of
them, we are probably talking about 11-12 cache line eviction on
several heavily used scheduler functions.  Reduce cache line pollution
is the primary goal, actual memory consumption isn't really a concern.

- Ken
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch] sched: schedstat needs a diet, Ken Chen, (Tue Oct 16, 4:37 pm)
Re: [patch] sched: schedstat needs a diet, Ingo Molnar, (Wed Oct 17, 3:23 am)
Re: [patch] sched: schedstat needs a diet, Peter Zijlstra, (Wed Oct 17, 5:29 am)
Re: [patch] sched: schedstat needs a diet, Mathieu Desnoyers, (Thu Oct 18, 6:19 pm)
Re: [patch] sched: schedstat needs a diet, Ken Chen, (Thu Oct 18, 6:57 pm)
Re: [patch] sched: schedstat needs a diet , Rick Lindsley, (Wed Oct 31, 5:06 am)
Re: [patch] sched: schedstat needs a diet, Mathieu Desnoyers, (Thu Oct 18, 7:13 pm)