Install
1 | apt-get install libtool |
Run
1 | ceph tell osd.1 heap start_profiler |
Then you can find files in dir /var/log/ceph
such as osd.1.profile.0001.heap
Text display
1 | # pprof --text /usr/bin/ceph-osd /var/log/ceph/osd.1.profile.0001.heap |
Comparing Profiles
1 | # pprof --text /usr/bin/ceph-osd --base=osd.1.profile.0002.heap osd.1.profile.0001.heap |
References
http://docs.ceph.com/docs/master/rados/troubleshooting/memory-profiling/
http://google-perftools.googlecode.com/svn/trunk/doc/heapprofile.html
https://gperftools.googlecode.com/svn/trunk/doc/cpuprofile.html