Document DISABLE_JEMALLOC environmental variable, (#13655)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Konstantin Antselovich 2020-06-02 16:10:39 -07:00 committed by GitHub
parent a6e8b30163
commit 9b9f681589
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
</div>
## 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 `<jemalloc>: Unsupported system page size` is one known indicator.