Hi, Please wait out for the patch which supports jemalloc build.
That should see the tcmalloc issues disappear. Please see the thread http://comments.gmane.org/gmane.comp.file-systems.ceph.devel/22260 for further information With regards, Shishir -----Original Message----- From: ceph-devel-ow...@vger.kernel.org [mailto:ceph-devel-ow...@vger.kernel.org] On Behalf Of ??? Sent: Friday, December 12, 2014 2:15 PM To: ceph-devel@vger.kernel.org Subject: the cpu optimize in ceph hi, cephers: Now, I want to reduce the cpu usage rate by osd in full ssd cluster. In my test case, ceph run out of cpu, the cpu idle is about 10%. The cpu in my cluster is Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz. Can you give me some suggestion? Thanks. There are the cpu usage rate by perf tools. + 5.46% ceph-osd libtcmalloc.so.4.1.0 [.] 0x0000000000017dea + 2.45% ceph-osd libtcmalloc.so.4.1.0 [.] tcmalloc::ThreadCache::ReleaseToCentralCache(tcmalloc::ThreadCache::FreeList*, unsigned long, int) + 1.81% ceph-osd libc-2.12.so [.] memcpy + 1.75% ceph-osd libpthread-2.12.so [.] pthread_mutex_trylock + 1.66% ceph-osd [kernel.kallsyms] [k] _raw_spin_lock + 1.49% ceph-osd libtcmalloc.so.4.1.0 [.] operator delete(void*) + 1.47% ceph-osd libpthread-2.12.so [.] pthread_mutex_unlock + 1.14% ceph-osd libstdc++.so.6.0.13 [.] std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) + 1.13% ceph-osd libc-2.12.so [.] _IO_vfscanf + 1.10% ceph-osd ceph-osd [.] ceph::buffer::ptr::release() + 1.09% ceph-osd libc-2.12.so [.] vfprintf + 1.00% ceph-osd [kernel.kallsyms] [k] page_fault + 0.96% ceph-osd ceph-osd [.] ceph::buffer::list::append(char const*, unsigned int) + 0.94% ceph-osd ceph-osd [.] Mutex::Lock(bool) + 0.91% ceph-osd libstdc++.so.6.0.13 [.] 0x000000000008095f + 0.90% ceph-osd libstdc++.so.6.0.13 [.] std::string::compare(std::string const&) const+ 0.88% ceph-osd [vdso] [.] 0x0000000000000a08+ 0.87% ceph-osd ceph-osd [.] __gnu_cxx::__enable_if<std::__is_char<char>::__value, bool>::__type std::operator==<char>(std::basic_string<char, std::char_traits<char>, std::alloca+ 0.86% ceph-osd libstdc++.so.6.0.13 [.] std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()+ 0.76% ceph-osd [kernel.kallsyms] [k] system_call+ 0.75% ceph-osd libstdc++.so.6.0.13 [.] std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<cha + 0.73% ceph-osd libstdc++.so.6.0.13 [.] std::basic_streambuf<char, std::char_traits<char> >::xsputn(char const*, long) + 0.73% ceph-osd ceph-osd [.] ceph::buffer::ptr::ptr(ceph::buffer::ptr const&) + 0.71% ceph-osd [kernel.kallsyms] [k] try_to_wake_up + 0.70% ceph-osd ceph-osd [.] std::less<ghobject_t>::operator()(ghobject_t const&, ghobject_t const&) const + 0.67% ceph-osd [kernel.kallsyms] [k] copy_user_enhanced_fast_string + 0.63% ceph-osd libc-2.12.so [.] __strlen_sse42 + 0.61% ceph-osd [kernel.kallsyms] [k] update_curr + 0.60% ceph-osd libstdc++.so.6.0.13 [.] std::ostreambuf_iterator<char, std::char_traits<char> > std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::_M_insert_int<l + 0.58% ceph-osd libtcmalloc.so.4.1.0 [.] operator new(unsigned long) + 0.58% ceph-osd libtcmalloc.so.4.1.0 [.] tcmalloc::CentralFreeList::FetchFromSpans() + 0.55% ceph-osd ceph-osd [.] ceph::buffer::ptr::append(char const*, unsigned int) + 0.55% ceph-osd libstdc++.so.6.0.13 [.] std::ostream& std::ostream::_M_insert<long>(long) + 0.53% ceph-osd ceph-osd [.] ceph::log::Log::flush() -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ________________________________ PLEASE NOTE: The information contained in this electronic mail message is intended only for the use of the designated recipient(s) named above. If the reader of this message is not the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender by telephone or e-mail (as shown above) immediately and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).