From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Xin Zhao" Subject: Linux SLAB allocator issue Date: Tue, 6 Jun 2006 16:58:13 -0400 Message-ID: <4ae3c140606061358j140eec9fl45e22f8a9e673215@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from wr-out-0506.google.com ([64.233.184.232]:59211 "EHLO wr-out-0506.google.com") by vger.kernel.org with ESMTP id S1751084AbWFFU6O (ORCPT ); Tue, 6 Jun 2006 16:58:14 -0400 Received: by wr-out-0506.google.com with SMTP id 55so267915wri for ; Tue, 06 Jun 2006 13:58:13 -0700 (PDT) To: linux-kernel Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hi, I am trying to check how many slabs are used for inode_cache, but found that all slabs are added to slabs_full list, and slabs_partial is always empty. Even if the active object number does not exactly occupy all slabs. Does that mean Linux 2.6 remove the use of slabs_partial? Another question, the constructor transfered to the kmem_cache_create() function is called for every object in a slab when it is created. Is this true? Is there any way to call back a function _only once_ when a new slab is allocated? Thanks, Xin