Libumem


title: "Libumem" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["opensolaris", "solaris-software"] topic_path: "general/opensolaris" source: "https://en.wikipedia.org/wiki/Libumem" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0

libumem is a memory allocator userspace library used to manage memory allocation, and may be used to detect memory management bugs in applications. It is based on the Slab allocator concept. Libumem is available as a standard part of Solaris from Solaris 9 Update 3 onwards.

Functions

Functions in this library provide fast, scalable object-caching memory allocation with multithreaded application support. In addition to the standard malloc(3C) family of functions and the more flexible umem_alloc(3MALLOC) family, libumem provides powerful object-caching services as described in umem_cache_create(3MALLOC).

Getting started with libumem is easy; just set LD_PRELOAD to "libumem.so" and any program executed will use libumem's malloc(3C) and free(3C) (or new and delete). This slab allocator is designed for systems with many threads and many CPUs. Memory allocation with naive allocators can be a serious bottleneck.

Sources

References

  1. (2001). "Proceedings of the 2001 USENIX Annual Technical Conference". The USENIX Association.
  2. (27 Jun 2010). "github / omniti-labs / portableumem". github.com.
  3. "Memory Leak Detection with libumem".
  4. "Adam Leventhal's Weblog".

::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::

opensolarissolaris-software