From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755992AbbA2B6c (ORCPT ); Wed, 28 Jan 2015 20:58:32 -0500 Received: from mx2.parallels.com ([199.115.105.18]:34928 "EHLO mx2.parallels.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759570AbbA2Bzp (ORCPT ); Wed, 28 Jan 2015 20:55:45 -0500 Date: Wed, 28 Jan 2015 20:32:21 +0300 From: Vladimir Davydov To: Christoph Lameter CC: Andrew Morton , Joonsoo Kim , Pekka Enberg , David Rientjes , Johannes Weiner , Michal Hocko , , Subject: Re: [PATCH -mm v2 1/3] slub: never fail to shrink cache Message-ID: <20150128173221.GA16011@esperanza> References: <012683fc3a0f9fb20a288986fd63fe9f6d25e8ee.1422461573.git.vdavydov@parallels.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 28, 2015 at 10:37:09AM -0600, Christoph Lameter wrote: > On Wed, 28 Jan 2015, Vladimir Davydov wrote: > > > + /* We do not keep full slabs on the list */ > > + BUG_ON(free <= 0); > > Well sorry we do actually keep a number of empty slabs on the partial > lists. See the min_partial field in struct kmem_cache. It's not about empty slabs, it's about full slabs: free == 0 means slab is full. Thanks, Vladimir From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by kanga.kvack.org (Postfix) with ESMTP id E93076B0038 for ; Wed, 28 Jan 2015 12:32:35 -0500 (EST) Received: by mail-pa0-f45.google.com with SMTP id et14so27765397pad.4 for ; Wed, 28 Jan 2015 09:32:35 -0800 (PST) Received: from mx2.parallels.com (mx2.parallels.com. [199.115.105.18]) by mx.google.com with ESMTPS id oc3si6564632pbb.130.2015.01.28.09.32.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Jan 2015 09:32:35 -0800 (PST) Date: Wed, 28 Jan 2015 20:32:21 +0300 From: Vladimir Davydov Subject: Re: [PATCH -mm v2 1/3] slub: never fail to shrink cache Message-ID: <20150128173221.GA16011@esperanza> References: <012683fc3a0f9fb20a288986fd63fe9f6d25e8ee.1422461573.git.vdavydov@parallels.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Christoph Lameter Cc: Andrew Morton , Joonsoo Kim , Pekka Enberg , David Rientjes , Johannes Weiner , Michal Hocko , linux-mm@kvack.org, linux-kernel@vger.kernel.org On Wed, Jan 28, 2015 at 10:37:09AM -0600, Christoph Lameter wrote: > On Wed, 28 Jan 2015, Vladimir Davydov wrote: > > > + /* We do not keep full slabs on the list */ > > + BUG_ON(free <= 0); > > Well sorry we do actually keep a number of empty slabs on the partial > lists. See the min_partial field in struct kmem_cache. It's not about empty slabs, it's about full slabs: free == 0 means slab is full. Thanks, Vladimir -- 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