CONFIG_MEM_POOL_HEAP_BACKEND

Use k_heap as the backend for k_mem_pool

Type: bool

Help

This selects a backend implementation for k_mem_pool based on the sys_heap abstraction instead of the legacy sys_mem_pool. This backend has significantly better performance and memory utilization for general purpose workloads.

Direct dependencies

KERNEL_MEM_POOL

(Includes any dependencies from ifs and menus.)

Default

  • y

Kconfig definition

At <Zephyr>/kernel/Kconfig:499

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:30

Menu path: (Top) → General Kernel Options → Other Kernel Object Options → Use Kernel Memory Pool

config MEM_POOL_HEAP_BACKEND
    bool "Use k_heap as the backend for k_mem_pool"
    default y
    depends on KERNEL_MEM_POOL
    help
      This selects a backend implementation for k_mem_pool based
      on the sys_heap abstraction instead of the legacy
      sys_mem_pool.  This backend has significantly better
      performance and memory utilization for general purpose
      workloads.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)