My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
AllocatorsComparison  
Compare space-efficiency of various memory allocators.
Phase-Design
Updated Nov 20, 2011 by nitingupta910@gmail.com

Introduction

Allocators compared:

  • Ideal: No wastage - uses exactly as much space as required
  • TLSF: See TLSFAllocator
  • kmalloc: Linux kernel (2.6.25) standard allocator (SLUB)

Comparison between xvMalloc and TLSF is here. In summary, xvmalloc is ~2% more space efficient than TLSF. Also, note that space efficiency over TLSF is not the only reason to favor xvMalloc as detailed in above wiki.

This data was collected by replaying (see: SwapReplay) this data over allocator test modules. So, in effect, we replaced compcache allocator with these allocators and noted memory usage over time.

Details

Data plotted is available here

Data Summary

Peak Memory Usage:

  • Ideal: 24947 KB
  • TLSF: 25377 KB
  • kmalloc(SLUB): 36483 KB

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

Comment by project member nai....@gmail.com, Apr 5, 2008

Great Job! :)

Comment by guilintr...@gmail.com, May 23, 2009

tks.


Sign in to add a comment
Powered by Google Project Hosting