From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx146.postini.com [74.125.245.146]) by kanga.kvack.org (Postfix) with SMTP id 139B86B0033 for ; Wed, 4 Sep 2013 04:25:08 -0400 (EDT) Date: Wed, 4 Sep 2013 17:25:05 +0900 From: Joonsoo Kim Subject: Re: [PATCH 00/16] slab: overload struct slab over struct page to reduce memory usage Message-ID: <20130904082505.GA16355@lge.com> References: <1377161065-30552-1-git-send-email-iamjoonsoo.kim@lge.com> <00000140a6ec66e5-a4d245c0-76b6-4a8b-9cf0-d941ca9e08b0-000000@email.amazonses.com> <20130823063539.GD22605@lge.com> <5226ab2c.02092b0a.5eed.ffffd7e4SMTPIN_ADDED_BROKEN@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5226ab2c.02092b0a.5eed.ffffd7e4SMTPIN_ADDED_BROKEN@mx.google.com> Sender: owner-linux-mm@kvack.org List-ID: To: Wanpeng Li Cc: Christoph Lameter , Pekka Enberg , Andrew Morton , David Rientjes , linux-mm@kvack.org, linux-kernel@vger.kernel.org On Wed, Sep 04, 2013 at 11:38:04AM +0800, Wanpeng Li wrote: > Hi Joonsoo, > On Fri, Aug 23, 2013 at 03:35:39PM +0900, Joonsoo Kim wrote: > >On Thu, Aug 22, 2013 at 04:47:25PM +0000, Christoph Lameter wrote: > >> On Thu, 22 Aug 2013, Joonsoo Kim wrote: > > > [...] > >struct slab's free = END > >kmem_bufctl_t array: ACTIVE ACTIVE ACTIVE ACTIVE ACTIVE > > > > > > Is there a real item for END in kmem_bufctl_t array as you mentioned above? > I think the kmem_bufctl_t array doesn't include that and the last step is > not present. Yes, there is. BUFCTL_END is what I told for END. A slab is initialized in cache_init_objs() and a last step in that function is to set last entry of a free array of a slab to BUFCTL_END. This value remains in the whole life cycle of a slab. Thanks. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org