[uClinux-dev] Patches for a more memory efficient kmalloc and friends

From: David McCullough (davidm@moreton.com.au)
Date: Thu Aug 03 2000 - 01:53:36 EDT


Hi all,

I have attached a patch that gives uClinux a few options on the memory
allocation front.  Most of it should apply cleanly,  what doesn't is
probably in the Makefiles anyway.  It's still young, but I have been
running it in house for a while and its has been solid so far.

The patch includes:

* A non power of 2 kernel allocator.  I have seen gains of up to 70% more
  free memory after startup :-)

* Some extra /proc/meminfo output to tell how it's going.

* An implementation of brk/sbrk that uses the slack space at the end of
  each process.

* A malloc library that is good for apps that do lots of little
  allocations (it also uses the brk/sbrk calls).

The patch should be applied from the root of your tree with something like

	patch -p1 < kmalloc2.patch

See the attached kmalloc2.txt for some more detailed info on what it all does.
Hope someone finds this useful,  it has been doing quite well here so far :-)
Let us know if there are any problems or issues,

Cheers,
Davidm

-- 
David McCullough:  Ph: +61 7 3279 1822  Lineo (The Embedded Linux Company)
davidm@lineo.com   Fx: +61 7 3279 1820  PO Box 925, Kenmore QLD 4069, Australia



This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/

This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:19:15 EDT