linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Nitin Gupta" <nitingupta910@gmail.com>
To: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: [PATCH 3/6] compcache: TLSF Allocator interface
Date: Thu, 3 Apr 2008 22:53:43 +0530	[thread overview]
Message-ID: <4cefeab80804031023m10924d6n9e21f6cb792f5d76@mail.gmail.com> (raw)
In-Reply-To: <1206385013.6437.140.camel@lappy>

On Tue, Mar 25, 2008 at 12:26 AM, Peter Zijlstra <a.p.zijlstra@chello.nl> wrote:

>  Yeah, it also suffers from a horrible coding style, can use excessive
>  amounts of vmalloc space, isn't hooked into the reclaim process as an
>  allocator should be and has a severe lack of per-cpu data making it a
>  pretty big bottleneck on anything with more than a few cores.
>
>  Now, it might be needed, might work better, and the scalability issue
>  might not be a problem when used for swap, but still, you don't treat
>  any of these points in your changelog.
>


I will add these points to changelog.
This project is meant for small systems only. So, scalability is not an issue.


>  FWIW, please split up the patches in a sane way. This series looks like
>  it wants to be 2 or 3 patches. The first introducing all of TLSF (this
>  split per file is horrible). The second doing all of the block device,
>  and a possible last doing documentation and such.
>

Ok. I will resend with better splitting.


>  Also, how bad was kmalloc() compared to this TLSF, we need numbers :-)
>
>

I have posted performance numbers at:
http://code.google.com/p/compcache/wiki/AllocatorsComparison

Data Summary:

Peak Memory Usage:

    * Ideal: 24947 KB
    * TLSF: 25377 KB
    * KMalloc(SLUB): 36483 KB

So, KMalloc uses ~43% more memory than TLSF!


- Nitin

      parent reply	other threads:[~2008-04-03 17:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-24 15:04 Nitin Gupta
2008-03-24 16:56 ` Peter Zijlstra
2008-03-24 17:34   ` Nitin Gupta
2008-03-24 18:56     ` Peter Zijlstra
2008-03-24 19:10       ` Nitin Gupta
2008-04-03 17:23       ` Nitin Gupta [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4cefeab80804031023m10924d6n9e21f6cb792f5d76@mail.gmail.com \
    --to=nitingupta910@gmail.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox