The base documentation for that is in the kernel source under Documentation/lockstat.txt. However due to the performance impact of all that tracing this usually is disabled in the distributions. For RHEL 6.4 there is a separate debug kernel that you need to install. Ensure that it's the default IPL/boot kernel or select in the IPL/boot menu.
SLES 11 is more difficult as this requires a kernel rebuild with CONFIG_LOCK_STATS enabled. You need to contact SUSE service to get a kernel for your system.
If you have the system up with this enabled you should do the following:
- echo 1 >/proc/sys/kernel/lock_stat
- run your workload
- cat /proc/lock_stat > /tmp/lockreport.txt
- echo 0 >/proc/sys/kernel/lock_stat
0 comments:
Post a Comment