aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/Makefile
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-10-16 11:09:50 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-10-16 11:09:50 +0100
commit9736b76d829b2dba07e9941978bdf132fa118e18 (patch)
tree9b4537fff9c068bb123d1c8fe606cce22e1e0c86 /xen/common/Makefile
parent261aa81d0588107b3ce9fdac2d18b164b0359a26 (diff)
downloadxen-9736b76d829b2dba07e9941978bdf132fa118e18.tar.gz
xen-9736b76d829b2dba07e9941978bdf132fa118e18.tar.bz2
xen-9736b76d829b2dba07e9941978bdf132fa118e18.zip
xmalloc: use tlsf algorithm
This patch replaces the Xen xmalloc engine with tlsf, an allocation engine that is both more space efficient and time-bounded, especially for allocation sizes between PAGE_SIZE/2 and PAGE_SIZE. The file xmalloc.c is deprecated but not yet deleted. A simple changein common/Makefile will change back to the legacy xmalloc/xfree if needed for testing. Code adapted from Nitin Gupta's tlsf-kmod, rev 229, found here: http://code.google.com/p/compcache/source/browse/trunk/sub-projects/allocat= ors/tlsf-kmod with description and performance details here: http://code.google.com/p/compcache/wiki/TLSFAllocator (new Xen code uses 4K=3DPAGE_SIZE for the region size) For detailed info on tlsf, see: http://rtportal.upv.es/rtmalloc/ Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/common/Makefile')
-rw-r--r--xen/common/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/Makefile b/xen/common/Makefile
index e190a55014..5190d789dc 100644
--- a/xen/common/Makefile
+++ b/xen/common/Makefile
@@ -25,7 +25,7 @@ obj-y += timer.o
obj-y += trace.o
obj-y += version.o
obj-y += vsprintf.o
-obj-y += xmalloc.o
+obj-y += xmalloc_tlsf.o
obj-y += rcupdate.o
obj-$(perfc) += perfc.o