All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [PATCH 0/2] Selectable heap allocators
@ 2006-10-20 18:13 Jan Kiszka
  2006-10-20 23:56 ` Philippe Gerum
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kiszka @ 2006-10-20 18:13 UTC (permalink / raw)
  To: xenomai-core, Miguel Angel Masmano Tello

[-- Attachment #1: Type: text/plain, Size: 1481 bytes --]

Hi,

here comes a patch series for an idea I have in mind for quite some
time: break up the nucleus heap layer so that it can support different
allocation schemes. Motivated was this idea by the great TLSF allocator
by Miguel Masmano et al.

I once played with TLSF in userspace as a malloc replacement for RT
apps, and I wondered if we shouldn't make use of it as well in the
nucleus. It's most beautiful property is its strict O(1) complexity in
my eyes, but it seems to provide even more qualities: less
fragmentation, less overhead, maybe even better performance.

I haven't done any thorough analysis on those advantages (I'm counting
on Miguel and others to prove them ;) ), only stability tests over the
last weeks and a simple comparisons of the overhead. With 8 user-space
tasks, a few mutexes, 8 RTDM sockets, and likely some other stuff
allocated I get e.g. these usage numbers:

bsdalloc:
size=524288:used=17720:pagesz=512

tlsfalloc:
size=524288:used=14036:pagesz=512


This patch series now first tries to abstract a common interface for
heap allocators. Those allocators can be statically selected at compile
time. As the second step it adds latest TLSF version 2.2.0 as an
alternative to BSD. Default remains BSD for now.

TLSF is currently limited to 32-bit archs, but 64-bit support is on the
roadmap according to Miguel. He kindly helped me with preparing the TLSF
patch for Xenomai usage. Thanks to him at this point!

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-10-21 16:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-20 18:13 [Xenomai-core] [PATCH 0/2] Selectable heap allocators Jan Kiszka
2006-10-20 23:56 ` Philippe Gerum
2006-10-21 16:35   ` Jan Kiszka

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.