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] [day] [month] [year] [list]
Message-ID: <20080819174118.GD6724@linux.vnet.ibm.com>
Date:	Tue, 19 Aug 2008 10:41:18 -0700
From:	"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
To:	Manfred Spraul <manfred@...orfullife.com>
Cc:	mingo@...e.hu, linux-kernel@...r.kernel.org,
	akpm@...ux-foundation.org, oleg@...sign.ru, dipankar@...ibm.com,
	rostedt@...dmis.org, dvhltc@...ibm.com, niv@...ibm.com
Subject: Re: nohz_cpu_mask question (was: Re: [PATCH tip/core/rcu] classic
	RCU locking and memory-barrier cleanups)

On Tue, Aug 19, 2008 at 07:16:32PM +0200, Manfred Spraul wrote:
> Hi all,
>
> can someone explain me nohz_cpu_mask?
>
> If I understand it correctly, it merely means that this cpu does not take 
> timer interrupts, correct?
> The cpu can still take "real" interupts, e.g. a nic interrupt. The cpu 
> could also do softirq processing.

Yep, that is correct.

> Is that correct? Ingo?
>
> If nohz cpus can take normal interrupts, then it would be wrong to exclude 
> these cpus from the mask of cpus that must pass a quiescent cycle - a 
> softirq could hold on a pointers.

That is indeed the approach that preemptable RCU takes, and
I am considering making classic RCU also take this approach.
The main advantage is that sleeping CPUs need not be awakened
unless it is participating directly in the RCU grace period (as in
it has some callbacks).  See rcu_irq_enter() and rcu_irq_exit() in
kernel/rcupreempt.c as well as rcu_enter_nohz() and rcu_exit_nohz()
in include/linux/rcupreempt.h.  And http://lwn.net/Articles/279077/
for the proof of correctness.  ;-)

Instead, classic RCU prevents any CPU from going into nohz mode in the
first place if RCU is waiting on it.  I am not completely confident
in this algorithm, which is one reason that I am looking to switch to
the preemptable RCU approach.  The other reason is power efficiency --
after all, why bother waking up a CPU just to have it tell RCU that it
is sitting idle?

							Thanx, Paul
--
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