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]
Message-ID: <20130206112811.GD8696@gmail.com>
Date:	Wed, 6 Feb 2013 12:28:11 +0100
From:	Ingo Molnar <mingo@...nel.org>
To:	Alex Shi <alex.shi@...el.com>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Andrew Morton <akpm@...ux-foundation.org>
Cc:	torvalds@...ux-foundation.org, paul.gortmaker@...driver.com,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] rwsem: steal writing sem for better performance


* Alex Shi <alex.shi@...el.com> wrote:

> On 02/05/2013 10:58 PM, Ingo Molnar wrote:
> > 
> > * Alex Shi <alex.shi@...el.com> wrote:
> > 
> >> Commit 5a50508 change to rwsem from mutex, that cause aim7 
> >> fork_test dropped 50%. Yuanhan liu does a good analysis, 
> >> find it caused by strict sequential writing. Ingo suggest 
> >> stealing sem writing from front task in waiting queue. 
> >> https://lkml.org/lkml/2013/1/29/84 So has this patch.
> >>
> >> In this patch, I just allow writing steal happen when the 
> >> first waiter is also writer. Then the performance fully 
> >> recovered.
> > 
> > All the aim7 fork_test performance regression is recovered?
> 
> Sure. 100% recovered on my NHM EP, NHM EX, SNB EP 2S and 4S 
> machines.

That's totally awesome!

Linus, Andrew, what is your thinking about the patch and about 
the timing of the patch?

It looks correct and straightforward to me, but rwsem races 
tended to be tricky to find and fix in the past...

We are in -rc7 territory which is a bit late for fundamental 
locking changes.

OTOH this is a regression fix, and not a small one.

I'll queue it up optimistically in an urgent branch for the time 
being, to see what happens with a few days of testing ... If 
there's any problems with it then it's clearly ineligible.

Thanks,

	Ingo
--
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