STINNER Victor added the comment: > Test with jemalloc using the shell script "python.jemalloc": > --- > #!/bin/sh > LD_PRELOAD=/usr/lib64/libjemalloc.so /home/haypo/prog/python/default/python > "$@" > ---
"perf.py -m" doesn't work with such bash script, but it works using exec: --- #!/bin/sh LD_PRELOAD=/usr/lib64/libjemalloc.so exec /home/haypo/prog/python/default/python "$@" --- > Memory consumption: python3 -u perf.py -m ../default/python ../default/python.jemalloc Hum, it looks like jemalloc uses *more* memory than libc memory allocators. I don't know if it's a known Report on Linux smithers 4.3.3-300.fc23.x86_64 #1 SMP Tue Jan 5 23:31:01 UTC 2016 x86_64 x86_64 Total CPU cores: 8 ### 2to3 ### Mem max: 43088.000 -> 43776.000: 1.0160x larger ### chameleon_v2 ### Mem max: 367028.000 -> 626324.000: 1.7065x larger ### django_v3 ### Mem max: 23824.000 -> 25120.000: 1.0544x larger ### fastpickle ### Mem max: 8696.000 -> 9712.000: 1.1168x larger ### fastunpickle ### Mem max: 8708.000 -> 9696.000: 1.1135x larger ### json_dump_v2 ### Mem max: 10488.000 -> 11556.000: 1.1018x larger ### json_load ### Mem max: 8444.000 -> 9396.000: 1.1127x larger ### nbody ### Mem max: 7392.000 -> 8416.000: 1.1385x larger ### regex_v8 ### Mem max: 12760.000 -> 13576.000: 1.0639x larger ### tornado_http ### Mem max: 28196.000 -> 29920.000: 1.0611x larger ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26249> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com