Daily Archives: December 11, 2013

Profiling CPU usage of a ceph command (gperftools)

After compiling Ceph from sources with: ./configure –with-debug CFLAGS=’-g’ CXXFLAGS=’-g’ The crushtool test mode is used to profile the crush implementation with: LD_PRELOAD=/usr/lib/libprofiler.so.0 \ CPUPROFILE=crush.prof src/crushtool \ -i src/test/cli/crushtool/one-hundered-devices.crushmap \ –test –show-bad-mappings as instructed in the cpu profiler documentation. The … Continue reading

Posted in ceph | Leave a comment