Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935631Ab0GPFqa (ORCPT ); Fri, 16 Jul 2010 01:46:30 -0400 Received: from mail-qy0-f181.google.com ([209.85.216.181]:37641 "EHLO mail-qy0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753504Ab0GPFq3 convert rfc822-to-8bit (ORCPT ); Fri, 16 Jul 2010 01:46:29 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=pKHeFxkfV/u8couREZMWujHsSVB2HpIea9XvFG+gZXJUgBrcsF16Ry1i5oTSV0EGQ2 kuQG39u+5muAxHlBu9Bch2KzLL96dOhbQ80c/Nq3fQRmsDCdVH1Viyj/VQUVXHZ5GtHb hc78K3H8FhSEcu/qxUB4UxNlCMpVNcCCsk5BA= MIME-Version: 1.0 In-Reply-To: References: <1278756333-6850-1-git-send-email-lliubbo@gmail.com> <1279058027.936.236.camel@calx> Date: Fri, 16 Jul 2010 13:46:28 +0800 Message-ID: Subject: Re: [PATCH] slob_free:free objects to their own list From: Bob Liu To: Pekka Enberg Cc: Matt Mackall , akpm@linux-foundation.org, linux-mm@kvack.org, hannes@cmpxchg.org, LKML , Mel Gorman Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2259 Lines: 74 On Wed, Jul 14, 2010 at 5:07 PM, Pekka Enberg wrote: > On Wed, Jul 14, 2010 at 12:53 AM, Matt Mackall wrote: >> On Tue, 2010-07-13 at 20:52 +0300, Pekka Enberg wrote: >>> Hi Bob, >>> >>> [ Please CC me on SLOB patches. You can use the 'scripts/get_maintainer.pl' >>>   script to figure out automatically who to CC on your patches. ] >>> >>> On Sat, Jul 10, 2010 at 1:05 PM, Bob Liu wrote: >>> > slob has alloced smaller objects from their own list in reduce >>> > overall external fragmentation and increase repeatability, >>> > free to their own list also. >>> > >>> > Signed-off-by: Bob Liu >>> >>> The patch looks sane to me. Matt, does it look OK to you as well? >> >> Yep, this should be a marginal improvement. >> >> Acked-by: Matt Mackall > > Great! Bob, if you could provide the /proc/meminfo numbers for the > patch description, I'd be more than happy to merge this. > Hi, Pekka Sorry for the wrong cc and later reply. This is /proc/meminfo result in my test machine: without this patch: === MemTotal: 1030720 kB MemFree: 750012 kB Buffers: 15496 kB Cached: 160396 kB SwapCached: 0 kB Active: 105024 kB Inactive: 145604 kB Active(anon): 74816 kB Inactive(anon): 2180 kB Active(file): 30208 kB Inactive(file): 143424 kB Unevictable: 16 kB .... with this patch: === MemTotal: 1030720 kB MemFree: 751908 kB Buffers: 15492 kB Cached: 160280 kB SwapCached: 0 kB Active: 102720 kB Inactive: 146140 kB Active(anon): 73168 kB Inactive(anon): 2180 kB Active(file): 29552 kB Inactive(file): 143960 kB Unevictable: 16 kB ... The result show only very small improverment! And when i tested it on a embeded system with 64MB, I found this path is never called while kernel booting. Thanks for the kindly review. -- Regards, --Bob -- 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/