Re: [PATCH] Btrfs: save preloaded extent_state's in a percpu cache V2

2011-06-21 Thread Josef Bacik
On 06/21/2011 04:20 PM, Andi Kleen wrote: > Josef Bacik writes: > >> When doing DIO tracing I noticed we were doing a ton of allocations, a lot of >> the time for extent_states. Some of the time we don't even use the >> prealloc'ed >> extent_state, it just get's free'd up. So instead create a

Re: [PATCH] Btrfs: save preloaded extent_state's in a percpu cache V2

2011-06-21 Thread Andi Kleen
Josef Bacik writes: > When doing DIO tracing I noticed we were doing a ton of allocations, a lot of > the time for extent_states. Some of the time we don't even use the > prealloc'ed > extent_state, it just get's free'd up. So instead create a per-cpu cache like > the radix tree stuff. So we

[PATCH] Btrfs: save preloaded extent_state's in a percpu cache V2

2011-06-21 Thread Josef Bacik
When doing DIO tracing I noticed we were doing a ton of allocations, a lot of the time for extent_states. Some of the time we don't even use the prealloc'ed extent_state, it just get's free'd up. So instead create a per-cpu cache like the radix tree stuff. So we will check to see if our per-cpu