diff --git a/rootfs/etc/services.d/home-assistant/run b/rootfs/etc/services.d/home-assistant/run index 4fcbcce417a15e..40ec07c1543163 100644 --- a/rootfs/etc/services.d/home-assistant/run +++ b/rootfs/etc/services.d/home-assistant/run @@ -8,5 +8,6 @@ cd /config || bashio::exit.nok "Can't find config folder!" # Enable mimalloc for Home Assistant Core, unless disabled if [[ -z "${DISABLE_JEMALLOC+x}" ]]; then export LD_PRELOAD="/usr/local/lib/libjemalloc.so.2" + export MALLOC_CONF="background_thread:true,metadata_thp:auto,dirty_decay_ms:20000,muzzy_decay_ms:20000" fi exec python3 -m homeassistant --config /config