Re: [PATCH] lightnvm: change rrpc slab creation/destruction time

2015-12-08 Thread Matias Bjørling
On 12/08/2015 12:36 PM, Wenwei Tao wrote: Hi Matias In my understanding kmem_cache_create only allocate and setup some basic structures, the actual slab memory is allocated from buddy system when we use these slabs. Do you think the memory consumed by these structures is a issue compared to the

Re: [PATCH] lightnvm: change rrpc slab creation/destruction time

2015-12-08 Thread Wenwei Tao
Hi Matias In my understanding kmem_cache_create only allocate and setup some basic structures, the actual slab memory is allocated from buddy system when we use these slabs. Do you think the memory consumed by these structures is a issue compared to the lock contention and slab status check in rr

[PATCH] lightnvm: change rrpc slab creation/destruction time

2015-12-07 Thread Wenwei Tao
create rrpc slabs during rrpc module init, thus eliminate the lock contention and slab status check in rrpc_core_init. And destroy them when rrpc exit. Signed-off-by: Wenwei Tao --- drivers/lightnvm/rrpc.c | 54 ++--- 1 file changed, 33 insertions(+),