More CPU utilization during ideal state

27 views
Skip to first unread message

ashish patil

unread,
Aug 21, 2019, 1:55:02 AM8/21/19
to memcached
Hii all,


I am using the libmemcached C library for implementing the multi threaded logger, where only a single thread starts the libmemcache service
and all other threads will only post the messages on to the memcached server.
But what i have observed that during ideal state only(without posting the messages on to the server) the CPU usage is very high (approximate 15 %) which is not acceptable for my application performance.

Can you please help me finding out why it is using this much CPU  during ideal state and can you also provide any alternative for the same?

Thanks 
Ashish

Tharanga Gamaethige

unread,
Aug 21, 2019, 12:41:36 PM8/21/19
to memcached
It sounds like this is not the memcached server, but the client. Maybe you can seek help from a libmemcached forum? Not sure how actively it's maintained or used. You can always use a profiling tool like perf to find out what's going on (http://www.brendangregg.com/perf.html).  A similar bug is reported here (https://bugs.launchpad.net/libmemcached/+bug/1451184), probably you can use perf to see whether it's the same bug.
Reply all
Reply to author
Forward
0 new messages