Checking for kernel lock contention in OEL 5.5
Dude!Aug 28 2010 — edited Aug 28 2010Is there a lockstat utility for Enterprise Linux 5? Or how could I check for kernel lock contention?
I found a lockstat rpm for RHEL and Centos 4 at http://packages.sw.be/lockstat/, but I could not find it in the distribution of version 5?
The rpm package installs, but the command "lockstat on" shows /proc/lockmeter: No such file or directory
I found an interesting document named "Linux Kernel Lock Profiling with LockStat" at:
http://dolavim.us/blog/2007/11/06/linux-kernel-lock-profiling-with-lockstat/
The document outlines the use of /proc/lock_stat, which is a text file - not using a "lockstat" utility.
From what I understand, I have to rebuild the kernel with "CONFIG_LOCK_STAT=y", or wait for kernel 2.6.24 to be released?
Do I have to build a custom kernel to check for lock contention, or are there perhaps other options?
Thanks!
Edited by: Markus Waldorf on Aug 28, 2010 8:55 PM