Search Shortcut cmd + k | ctrl + k
Search cmd+k ctrl+k
0.10 (stable)
jemalloc Extension

The jemalloc extension replaces the system’s memory allocator with jemalloc. Unlike other DuckDB extensions, the jemalloc extension is statically linked and cannot be installed or loaded during runtime.

Operating System Support

The availability of the jemalloc extension depends on the operating system.

Linux

The Linux version of DuckDB ships with the jemalloc extension by default.

DuckDB v0.10.1 introduced a change: on ARM64 architecture, DuckDB is shipped without jemalloc, while on x86_64 (AMD64) architectures, it is shipped with jemalloc.

To disable the jemalloc extension, build DuckDB from source and set the SKIP_EXTENSIONS flag as follows:

GEN=ninja SKIP_EXTENSIONS="jemalloc" make

macOS

The macOS version of DuckDB does not ship with the jemalloc extension but can be built from source to include it:

GEN=ninja BUILD_JEMALLOC=1 make

Windows

On Windows, this extension is not available.

GitHub

The jemalloc extension is part of the main DuckDB repository.

About this page

Last modified: 2024-04-15