Re: [Qemu-devel] [PATCH] configure: Add support for jemalloc

2015-09-07 Thread Paolo Bonzini
On 19/06/2015 12:56, Alexandre Derumier wrote: > This adds "--enable-jemalloc" and "--disable-jemalloc" to allow linking > to jemalloc memory allocator. > > We have already tcmalloc support, > but it seem to not working well with a lot of iothreads/disks. > > The main problem is that tcmalloc u

Re: [Qemu-devel] [PATCH] configure: Add support for jemalloc

2015-06-23 Thread Alexandre DERUMIER
>>You can try using or modifying this systemtap script: Thanks, I'll check this. If it can help, I have done a small top of qemu libc vs jemalloc vs tcmalloc libc-2.19.so - started --- PID USER PR NIVIRTRESSHR S %CPU %MEM TIME+ COMMAND 5294 root

Re: [Qemu-devel] [PATCH] configure: Add support for jemalloc

2015-06-23 Thread Paolo Bonzini
On 23/06/2015 10:22, Alexandre DERUMIER wrote: > > What is the peak memory usage of jemalloc and tcmalloc? > > I'll try to use an heap profiling to see. > Don't known if "perf" can give me the info easily without profiling ? You can try using or modifying this systemtap script: https://sourcew

Re: [Qemu-devel] [PATCH] configure: Add support for jemalloc

2015-06-23 Thread Alexandre DERUMIER
Hi Paolo, >>What is the peak memory usage of jemalloc and tcmalloc? I'll try to use an heap profiling to see. Don't known if "perf" can give me the info easily without profiling ? - Mail original - De: "pbonzini" À: "aderumier" , "qemu-devel" Envoyé: Mardi 23 Juin 2015 09:57:19 Objet

Re: [Qemu-devel] [PATCH] configure: Add support for jemalloc

2015-06-23 Thread Paolo Bonzini
On 19/06/2015 12:56, Alexandre Derumier wrote: > This adds "--enable-jemalloc" and "--disable-jemalloc" to allow linking > to jemalloc memory allocator. > > We have already tcmalloc support, > but it seem to not working well with a lot of iothreads/disks. > > The main problem is that tcmalloc u

Re: [Qemu-devel] [PATCH] configure: Add support for jemalloc

2015-06-22 Thread Fam Zheng
On Fri, 06/19 12:56, Alexandre Derumier wrote: > This adds "--enable-jemalloc" and "--disable-jemalloc" to allow linking > to jemalloc memory allocator. > > We have already tcmalloc support, > but it seem to not working well with a lot of iothreads/disks. > > The main problem is that tcmalloc use

Re: [Qemu-devel] [PATCH] configure: Add support for jemalloc

2015-06-19 Thread Alexandre DERUMIER
@cc Fam Zheng , as he's the author of tcmalloc support patch - Mail original - De: "aderumier" À: "qemu-devel" Cc: "aderumier" Envoyé: Vendredi 19 Juin 2015 12:56:58 Objet: [PATCH] configure: Add support for jemalloc This adds "--enable-jemalloc" and "--disable-jemalloc" to allow link

[Qemu-devel] [PATCH] configure: Add support for jemalloc

2015-06-19 Thread Alexandre Derumier
This adds "--enable-jemalloc" and "--disable-jemalloc" to allow linking to jemalloc memory allocator. We have already tcmalloc support, but it seem to not working well with a lot of iothreads/disks. The main problem is that tcmalloc use a shared thread cache of 16MB by default. With more threads,