Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756574AbbLHN0X (ORCPT ); Tue, 8 Dec 2015 08:26:23 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:33775 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756374AbbLHN0V (ORCPT ); Tue, 8 Dec 2015 08:26:21 -0500 Subject: Re: [PATCH] lightnvm: change rrpc slab creation/destruction time To: Wenwei Tao , =?UTF-8?Q?Matias_Bj=c3=b8rling?= References: <1449490577-30574-1-git-send-email-ww.tao0320@gmail.com> Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org From: =?UTF-8?Q?Matias_Bj=c3=b8rling?= Organization: Paletta Message-ID: <5666DA7A.3020100@bjorling.me> Date: Tue, 8 Dec 2015 14:26:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 827 Lines: 19 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 lock contention and slab status check in > rrpc_core_init,or you have any other concerns ? The rrpc_core_init is only run at registration time and isn't in a critical path. So I rather not initialize something until we really it. ps. it is custom not to top post :) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/