search for: 08_glibc

Displaying 2 results from an estimated 2 matches for "08_glibc".

2017 Aug 12
3
Help to create bugzilla account
Strange because in my all my experiments calling malloc.trim always helped - memory reported by top decreased to the level it supposed to be. Do you have in mind case when calling malloc.trim won't do anything? Also shouldn't MALLOC_TRIM_THRESHOLD_ env variable has impact on malloc.trim calls? At the moment seems any value is ignored... 12 ???. 2017 ?. 6:09 ?? ???????????? "Simon
2017 Aug 12
0
Help to create bugzilla account
...ire thread is really about tuning of the malloc in glibc and should ideally be addressed upstream. There has been some discussion of this in other contexts, e.g. Python at https://nuald.blogspot.com/2013/06/memory-reclaiming-in-python.html and emacs at http://notes.secretsauce.net/notes/2016/04/08_glibc-malloc-inefficiency.html As the Python posts poitns out, it is possible to use alternate malloc implementations, either rebuilding R to use them or using LD_PRELOAD. On Ubuntu for example, you can have R use jemalloc with sudo apt-get install libjemalloc1 env LD_PRELOAD=/usr/lib/x86_64-linux-gnu/...