On Tue, Oct 30, 2018 at 5:36 PM Will Zhao <zhao6305@xxxxxxxxx> wrote: > > Hi: > I was trying to figure out how to imporve rgw performance , and I > found std::locale comsuming a lot of cpu . Is this normal ? which part > of rgw is using this? Will, probably you could lower the log level and try again? i guess that it's our logging subsystem who is creating/destroying std::locale. also, what version of Ceph are you testing? > > 18.99% libstdc++.so.6.0.19 [.] std::use_facet<std::ctype<char> > > > 18.59% [kernel] [k] native_queued_spin_lock_slowpath > > 8.32% libstdc++.so.6.0.19 [.] std::locale::locale > > 5.72% libstdc++.so.6.0.19 [.] std::locale::~locale > > 2.49% libstdc++.so.6.0.19 [.] std::num_put<char, > std::ostreambuf_iterator<char, std::char_traits<char> > > >::_M_insert_int<long> > > 2.36% libstdc++.so.6.0.19 [.] std::has_facet<std::num_put<char, > std::ostreambuf_iterator<char, std::char_traits<char> > > > > > 2.22% libstdc++.so.6.0.19 [.] std::use_facet<std::num_put<char, > std::ostreambuf_iterator<char, std::char_traits<char> > > > > > 2.00% libstdc++.so.6.0.19 [.] std::has_facet<std::num_get<char, > std::istreambuf_iterator<char, std::char_traits<char> > > > > > 1.79% libstdc++.so.6.0.19 [.] std::use_facet<std::num_get<char, > std::istreambuf_iterator<char, std::char_traits<char> > > > > > 1.47% libstdc++.so.6.0.19 [.] std::num_put<char, > std::ostreambuf_iterator<char, std::char_traits<char> > > >::_M_insert_int<unsigned long> -- Regards Kefu Chai