Re: [rfc][patch] dynamic data structure switching

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Peter Zijlstra <peterz@...>
Cc: Linux Kernel Mailing List <linux-kernel@...>, David Miller <davem@...>, Paul McKenney <paulmck@...>, Ingo Molnar <mingo@...>
Date: Monday, September 10, 2007 - 9:39 am

On Mon, Sep 10, 2007 at 01:55:52PM +0200, Peter Zijlstra wrote:

Yeah, it isn't the best this way. One thing that could be done is to
fine grain the write-side seqlock (eg. take it once per object moved,
or have multiple seqlocks eg. per bucket). It would need some careful
measurement to see what we can get away with.


 
Yeah, I didn't want to document the API yet because it is to horrible :)
In the case of the dynamic pid hash, this mutex serialises resizers, and
so after you take the lock, you can check whether the hash still needs
resizing, for example (and can also do a trylock instead of a lock).


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[rfc][patch] dynamic data structure switching, Nick Piggin, (Sun Sep 2, 2:27 pm)
Re: [rfc][patch] dynamic data structure switching, Peter Zijlstra, (Mon Sep 10, 7:55 am)
Re: [rfc][patch] dynamic data structure switching, Nick Piggin, (Mon Sep 10, 9:39 am)
Re: [rfc][patch] dynamic data structure switching, Nick Piggin, (Sun Sep 2, 2:36 pm)