Re: [PATCH 08/32] nohz: Try not to give the timekeeping duty to anadaptive tickless cpu
From: Chris Metcalf
Date: Wed Mar 28 2012 - 11:51:23 EST
On 3/28/2012 4:39 AM, Peter Zijlstra wrote:
>> It would seem that the nohz patches would be much simpler if it would not
>> > require cpusets to administer. The only thing that would be needed is to
>> > have one cpu that is not subject to nohz. The logical choice is a
>> > timekeeper cpu (which is usually cpu 0). Having that configurable would be
>> > an extra bonus.
> Like Frederic has been telling, the nohz stuff adds syscall overhead, it
> needs to timestamp on kernel entry/exit etc.. Making it unconditional
> will add this overhead to everybody and this might not be acceptable.
And more generally, some kind of configuration step is important so the
kernel knows what userspace wants to have happen there. On a nohz cpu the
kernel will try to optimize for running a single task with no OS overhead.
On a default cpu the kernel will be trying to use the cpu as part of a pool
for optimizing the overall system experience, including work stealing,
background threads, etc. This could be a per-process thing, or it could be
a per-core thing, but either way, the kernel can't really guess effectively.
--
Chris Metcalf, Tilera Corp.
http://www.tilera.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/