From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751770Ab0EHHgA (ORCPT ); Sat, 8 May 2010 03:36:00 -0400 Received: from mail-pz0-f204.google.com ([209.85.222.204]:59299 "EHLO mail-pz0-f204.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751215Ab0EHHf7 (ORCPT ); Sat, 8 May 2010 03:35:59 -0400 Message-ID: <4BE51391.3080104@vflare.org> Date: Sat, 08 May 2010 13:02:33 +0530 From: Nitin Gupta Reply-To: ngupta@vflare.org User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-2.fc11 Thunderbird/3.0.4 MIME-Version: 1.0 To: Pekka Enberg CC: Andrew Morton , Greg KH , Linus Torvalds , Hugh Dickins , Cyp , Minchan Kim , Al Viro , Christoph Hellwig , Jens Axboe , Andi Kleen , driverdev , linux-kernel Subject: Re: [PATCH 0/3] ramzswap: Eliminate stale data from compressed memory (v2) References: <1273217107-2023-1-git-send-email-ngupta@vflare.org> <20100507155504.10532b3e.akpm@linux-foundation.org> <4BE504AD.4030807@cs.helsinki.fi> <4BE50B71.4020202@vflare.org> <4BE5120B.10408@cs.helsinki.fi> In-Reply-To: <4BE5120B.10408@cs.helsinki.fi> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/08/2010 12:56 PM, Pekka Enberg wrote: > Nitin Gupta wrote: >> Oops, missed this part: >> >> On 05/08/2010 11:59 AM, Pekka Enberg wrote: >>> Andrew Morton wrote: >>>> I've completely forgotten why we need this xvmalloc thing and I don't >>>> recall whether we decided it would be a good thing to have as a generic >>>> facility and of course it's all unexplained and undocumented. I won't >>>> be looking at it today, for this reason. >>> We need it because the slab allocator is not a good fit for this special >>> purpose driver due to fragmentation. Nitin, you had a nice web page >>> showing all the relevant numbers but I can't find it anymore. >>> >> >> xvmalloc performance numbers: >> http://code.google.com/p/compcache/wiki/xvMalloc >> http://code.google.com/p/compcache/wiki/xvMallocPerformance > > I don't see the xvmalloc vs. kmalloc fragmentation numbers there. I > thought you had some? > TLSF vs kmalloc (SLUB): http://code.google.com/p/compcache/wiki/AllocatorsComparison By design, xvmalloc is very similar to TLSF. In fact, xvmalloc has less metadata overhead than TLSF. So, we will surely get similar results for xvmalloc vs kmalloc comparison too. Thanks, Nitin