Andi Kleen wrote:
On Fri, Jun 17, 2005 at 06:35:16PM +1000, Nick Piggin wrote:
William Lee Irwin III wrote:
I'd feel far more comfortable with this if the lockbit resided in the
page. Also, compare it to akpm's solution.
akpm's solution is alright. They perform similarly on the workload in
question. Of course, the bitlock will scale quite a lot better if you
pushed it and will automatically be localised per device and have NUMA
locality, etc.
The buffer head is not necessarily NUMA local though - there is
some chance that a BH from a different node is reused.
True, but compared to a hash which is almost guaranteed *not* to
be in local memory for any medium to large NUMA system :)
Though I guess on many, it is basically luck that you would get
an IO submitted on the same node that takes the completion
interrupt.
However, on really huge systems like SGI's, they often tend to
lock down devices and jobs quite tightly to nodes so I think
it has some merit.
--
SUSE Labs, Novell Inc.
Send instant messages to your online friends http://au.messenger.yahoo.com