lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 17 Aug 2011 18:47:43 +0200 (CEST)
From:	Thomas Gleixner <tglx@...utronix.de>
To:	Dimitri Sivanich <sivanich@....com>
cc:	LKML <linux-kernel@...r.kernel.org>,
	Ingo Molnar <mingo@...nel.org>,
	Peter Zijlstra <peterz@...radead.org>,
	John Stultz <johnstul@...ibm.com>
Subject: Re: [PATCH] specific do_timer_cpu value for nohz off mode

On Wed, 17 Aug 2011, Dimitri Sivanich wrote:

> Reposting this, as this was posted 2 weeks ago with no replies.

It's still in my vacation backlog :)

> Jiffies updates are currently done by the tick_do_timer_cpu.  This has a
> non-deterministic value that can be any running cpu on the system.  It
> changes dynamically in nohz mode.  When nohz mode is off, it gets set to
> a more static, but still non-deterministic value.
> 
> While the nohz behavior is necessary, is there a reason why the nohz off
> case can't have a specific value, say 0 as it was on earlier kernels?

Yes, we had troubles when switching over to highres/oneshot mode when
the first cpu which did the switch did not take the do_timer duty. See
changelogs.

> If the cpu is offlined, let the value change at that time (note that the
> x86 arch disallows offlining cpu 0).
> 
> There are certain cases where this would be advantageous, especially where
> timely jiffies updates may not necessarily occur on specific processors.

Huch? How about fixing those long interrupt disabled regions instead?
And honestly jiffies update being delayed for a bit is not really a
problem.

> The following sample patch presents one way that this could be done.
> Processors wait for the selected cpu to enter high resolution mode before
> they do so.

That's a horrible hack.

> Note that this patch is not hotplug aware (however, should the
> tick_static_do_timer_cpu be offlined, the tick_do_timer_cpu simply becomes
> another cpu anyway).
> 
> Comments on this idea, or the sample patch?

I still have no idea why a random assignment is so harmful. Also if
there is really a reason to make that assignment static, what about
using a sysfs file, which lets you read out the assignment and update
it in the NOHZ off case ?

Thanks,

	tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ