From: Dan Magenheimer <dan.magenheimer@oracle.com>
To: Nitin Gupta <nitingupta910@gmail.com>
Cc: Diwaker Gupta <dgupta@cs.ucsd.edu>,
kurt.hackel@oracle.com,
"Xen-Devel (E-mail)" <xen-devel@lists.xensource.com>,
Keir Fraser <keir.fraser@eu.citrix.com>
Subject: RE: [RFC] Replacing Xen's xmalloc engine and(?) API
Date: Sun, 12 Oct 2008 11:03:56 -0700 (PDT) [thread overview]
Message-ID: <b1ab7bf7-8a72-49ef-a912-88a5cfbc7557@default> (raw)
In-Reply-To: <4cefeab80810121044j44687af3s78574b41c7a9ab04@mail.gmail.com>
Hi Nitin --
Excellent! Your xvMalloc looks even better! I'll read the
code and try it (tomorrow).
Keir, is a "GNU Lesser GPL Version 3" license OK for Xen?
Thanks,
Dan
> -----Original Message-----
> From: Nitin Gupta [mailto:nitingupta910@gmail.com]
> Sent: Sunday, October 12, 2008 11:45 AM
> To: Dan Magenheimer
> Cc: Keir Fraser; Xen-Devel (E-mail); Diwaker Gupta; Kurt Hackel
> Subject: Re: [Xen-devel] [RFC] Replacing Xen's xmalloc engine
> and(?) API
>
>
> On Sun, Oct 12, 2008 at 11:01 PM, Dan Magenheimer
> <dan.magenheimer@oracle.com> wrote:
> >
> > I'm no slab/slub expert but I think the interface only works
> > well with fixed-size objects and when several of the fixed-size
> > objects can be crammed into a single page. I have a large set
> > of objects that are essentially random in size (but all less
> > than or equal to a page).
> >
>
> Using slab for your use case, which requires lot of allocations for
> near page-sized objects, is really bad idea. For memory compression
> project (compcache) I had very similar requirement. So, I tested
> kmalloc which uses slabs of various sizes to allocate various sizes.
> As expected its space efficiency was horrible. At least for compcache
> workload it used ~40% more memory than TLSF. Please refer:
> http://code.google.com/p/compcache/wiki/AllocatorsComparison
>
> Regarding non-standard TLSF interface, it should be quite simple to
> have wrappers around TLSF to have standard malloc/free API.
>
> Also I recently completed draft implementation of a new allocator -
> xvMalloc (based on TLSF) that is specifically suited for allocation
> behavior of compcache (I think "difference engine" project has almost
> same requirements).
> http://code.google.com/p/compcache/wiki/xvMalloc
>
> Nitin
>
next prev parent reply other threads:[~2008-10-12 18:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4cefeab80810121044j44687af3s78574b41c7a9ab04@mail.gmail.com>
2008-10-12 17:55 ` [RFC] Replacing Xen's xmalloc engine and(?) API Keir Fraser
2008-10-12 18:03 ` Dan Magenheimer [this message]
2008-10-12 18:34 ` Keir Fraser
2008-10-11 21:44 Dan Magenheimer
2008-10-11 22:12 ` Stefan de Konink
2008-10-11 22:59 ` Dan Magenheimer
2008-10-12 9:16 ` Keir Fraser
2008-10-12 10:25 ` Keir Fraser
2008-10-12 16:28 ` Dan Magenheimer
2008-10-12 16:47 ` Keir Fraser
2008-10-12 17:31 ` Dan Magenheimer
2008-10-12 17:42 ` Keir Fraser
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=b1ab7bf7-8a72-49ef-a912-88a5cfbc7557@default \
--to=dan.magenheimer@oracle.com \
--cc=dgupta@cs.ucsd.edu \
--cc=keir.fraser@eu.citrix.com \
--cc=kurt.hackel@oracle.com \
--cc=nitingupta910@gmail.com \
--cc=xen-devel@lists.xensource.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.