📑 Table of Contents

libumem is a memory allocator userspace library used to manage memory allocation,[1][2] 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

edit

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).[3]

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). [4] This slab allocator is designed for systems with many threads and many CPUs. Memory allocation with naive allocators can be a serious bottleneck.

See also

edit

Sources

edit
  1. ^ "Proceedings of the 2001 USENIX Annual Technical Conference" (PDF). The USENIX Association. 2001.
  2. ^ "github / omniti-labs / portableumem". github.com. 27 Jun 2010. Retrieved 2020-08-04.
  3. ^ "Memory Leak Detection with libumem". Archived from the original on 2013-10-23. Retrieved 2013-10-22.
  4. ^ "Adam Leventhal's Weblog". Archived from the original on 2017-03-25.

📚 Artikel Terkait di Wikipedia

Valgrind

of memory debugging tools Dynamic program analysis Pin DynamoRIO VOGL Libumem AddressSanitizer "authors". valgrind.org. Archived from the original on

C dynamic memory allocation

Virtual 8086 mode x86 memory segmentation Allocator dlmalloc Hoard jemalloc libumem mimalloc ptmalloc Manual means Static memory allocation C dynamic memory

Hexspeak

resumed too frequently. 0xBADDCAFE 3135097598 ("bad cafe") is used by Libumem to indicate uninitialized memory area. 0xBEEFBABE 3203381950 ("beef babe")

Memory debugger

Runtime libcwd Linux (gcc) Free/open source C, C++ Compile-time override libumem Solaris Bundled with Solaris Link-time override Memwatch Any (programming