From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756827AbbA2TKe (ORCPT ); Thu, 29 Jan 2015 14:10:34 -0500 Received: from resqmta-ch2-09v.sys.comcast.net ([69.252.207.41]:49837 "EHLO resqmta-ch2-09v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753813AbbA2TKd (ORCPT ); Thu, 29 Jan 2015 14:10:33 -0500 Date: Thu, 29 Jan 2015 13:10:31 -0600 (CST) From: Christoph Lameter X-X-Sender: cl@gentwo.org To: Vladimir Davydov cc: Andrew Morton , Joonsoo Kim , Pekka Enberg , David Rientjes , Johannes Weiner , Michal Hocko , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -mm v2 1/3] slub: never fail to shrink cache In-Reply-To: <20150129182141.GA25158@esperanza> Message-ID: References: <012683fc3a0f9fb20a288986fd63fe9f6d25e8ee.1422461573.git.vdavydov@parallels.com> <20150128135752.afcb196d6ded7c16a79ed6fd@linux-foundation.org> <20150129080726.GB11463@esperanza> <20150129161739.GE11463@esperanza> <20150129182141.GA25158@esperanza> Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 29 Jan 2015, Vladimir Davydov wrote: > > Well we have to go through the chain of partial slabs anyways so its easy > > to do the optimization at that point. > > That's true, but we can introduce a separate function that would both > release empty slabs and optimize slab placement, like the patch below > does. It would increase the code size a bit though, so I don't insist. It would also change what slabinfo -s does.