qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alexandre DERUMIER <aderumier@odiso.com>
To: pbonzini <pbonzini@redhat.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] configure: Add support for jemalloc
Date: Tue, 23 Jun 2015 11:10:47 +0200 (CEST)	[thread overview]
Message-ID: <1291996315.586735.1435050647679.JavaMail.zimbra@oxygem.tv> (raw)
In-Reply-To: <55891F5F.7000607@redhat.com>

>>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  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND  
 5294 root      20   0 26.953g 596744  18468 S   1.0  0.2   0:16.81 qemu  

fio running (200kiops)
----------------------
   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                                                                                  
  5294 root      20   0 30.373g 633300  18552 S  2053  0.2   9:37.03 qemu   


jemalloc
--------
started
--------
   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                                                                                  
  1789 root      20   0 11.640g 609224  18812 S   1.0  0.2   0:21.03 qemu  

fio running (300kiops)
----------------------
   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                                                                                  
  1789 root      20   0 12.868g 684924  19144 S  2689  0.3   4:57.96 qemu   




tcmalloc (16MB)
---------------
started
-------
   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                                                                                  
  1789 root      20   0 11.640g 609224  18812 S   1.0  0.2   0:21.03 qemu  

fio running (65k iops)
-------------------
   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                                                                                  
  6900 root      20   0 10.925g 643624  18432 S  1125  0.2   4:18.51 qemu    


tcmalloc (256MB)
---------------
started
-------
   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND   
 10640 root      20   0 10.117g 584524  18236 S   0.7  0.2   0:16.28 qemu

fio running  (200k iops)
-----------------------
   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                                                                                  
 10640 root      20   0 10.983g 685136  18984 S  2566  0.3  12:34.73 qemu  


----- Mail original -----
De: "pbonzini" <pbonzini@redhat.com>
À: "aderumier" <aderumier@odiso.com>
Cc: "qemu-devel" <qemu-devel@nongnu.org>
Envoyé: Mardi 23 Juin 2015 10:57:03
Objet: Re: [PATCH] configure: Add support for jemalloc

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://sourceware.org/systemtap/examples/process/proctop.stp 

Paolo 

  reply	other threads:[~2015-06-23  9:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-19 10:56 [Qemu-devel] [PATCH] configure: Add support for jemalloc Alexandre Derumier
2015-06-20  5:55 ` Alexandre DERUMIER
2015-06-23  1:52 ` Fam Zheng
2015-06-23  7:57 ` Paolo Bonzini
2015-06-23  8:22   ` Alexandre DERUMIER
2015-06-23  8:57     ` Paolo Bonzini
2015-06-23  9:10       ` Alexandre DERUMIER [this message]
2015-09-07 20:36 ` Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1291996315.586735.1435050647679.JavaMail.zimbra@oxygem.tv \
    --to=aderumier@odiso.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).