Re: [patch 3/3] sched: move sched_avg_update() to update_cpu_load()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Monday, August 16, 2010 - 1:00 am

On Fri, 2010-08-13 at 12:45 -0700, Suresh Siddha wrote:

Right, but I think it doesn't need to, as its never accessed cross CPU
(except maybe for /proc/sched_debug, and who cares about that).

The (other) odd case is NO_HZ idle balancing, but there the actual CPU
won't be updating the fields, so the remote CPU doing NO_HZ idle
balancing should be good to touch it.


Right, except it breaks things a bit, at the very least you really need
that update right before reading it, otherwise you can end up with >100%
fractions, which are odd indeed ;-)


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

Messages in current thread:
Re: [patch 3/3] sched: move sched_avg_update() to update_c ..., Peter Zijlstra, (Mon Aug 16, 1:00 am)
[tip:sched/urgent] x86, tsc, sched: Recompute cyc2ns_offse ..., tip-bot for Suresh S ..., (Fri Aug 20, 7:16 am)
[tip:sched/urgent] sched: Move sched_avg_update() to updat ..., tip-bot for Suresh S ..., (Thu Sep 9, 12:45 pm)