From 9b9f681589a2278dd3bf783d5dd118b5e1997d63 Mon Sep 17 00:00:00 2001 From: Konstantin Antselovich Date: Tue, 2 Jun 2020 16:10:39 -0700 Subject: [PATCH] Document DISABLE_JEMALLOC environmental variable, (#13655) Co-authored-by: Franck Nijhof --- source/_docs/installation/docker.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/_docs/installation/docker.markdown b/source/_docs/installation/docker.markdown index ca0c2384ff1..36ce048670a 100644 --- a/source/_docs/installation/docker.markdown +++ b/source/_docs/installation/docker.markdown @@ -288,3 +288,11 @@ or in a `docker-compose.yml` file: On Mac, USB devices are [not passed through](https://github.com/docker/for-mac/issues/900) by default. Follow the instructions in [Using USB with Docker for Mac](https://dev.to/rubberduck/using-usb-with-docker-for-mac-3fdd) by Christopher McClellan if your device is not showing up. + +## Optimizations + +The Home Assistant Container is using an alternative memory allocation library [jemalloc](http://jemalloc.net/) for better memory management and Python runtime speedup. + +As Jemalloc can cause issues on certain hardware, it can be disabled by passing the environment variable `DISABLE_JEMALLOC` with any value, for example: `-e "JEMALLOC_DISABLE=true"`. + +The error message `: Unsupported system page size` is one known indicator.