c++ - CentOS: spin lock consuming high CPU while running a multi-threaded application -
c++ - CentOS: spin lock consuming high CPU while running a multi-threaded application -
i'm running multi-threaded application written in c++ on cent-os machine. "top" command output showing application eating of cpu , it's eating scheme cpu (not user cpu). thought of running "perf top" command, shows:
76.02% [kernal] [k] _spin_lock 1.87% libc-2.12.so [.] _init_free 1.55% [kernal] [k] futex_wake 1.48% libc-2.12.so [.] _init_malloc 1.37% libc-2.12.so [.] malloc 0.77% [kernal] [k] __audit_syscall_exit 0.76% libc-2.12.so [.] __lll_lock_wait_private 0.59% libc-2.12.so [.] free i'm not sure why it's eating high scheme cpu. application running fine on other linux machines ubuntu os, looks me it's related centos.
application written in c++, there around 250 active threads @ time of high scheme cpu. applications create lots of malloc/free calls.
operating system: linux-2.6.32-358.18.1.el6.x86_64-x86_64-with-centos-6.4-final libc version: 2.12 no of cores in machine: 16
c++ linux centos spinlock futex
Comments
Post a Comment