X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=Documentation%2Flockstat.txt;h=65f4c795015dead0cfde0f60381b7efcec67da9b;hb=0e9052eb98a9986ec0669d030604f7a68f6df638;hp=9cb9138f7a79bcd67bf4ac2f69741e812b5a14c2;hpb=c7e78cff6b7518212247fb20b1dc6411540dc9af;p=safe%2Fjmp%2Flinux-2.6 diff --git a/Documentation/lockstat.txt b/Documentation/lockstat.txt index 9cb9138..65f4c79 100644 --- a/Documentation/lockstat.txt +++ b/Documentation/lockstat.txt @@ -62,8 +62,20 @@ applicable). It also tracks 4 contention points per class. A contention point is a call site that had to wait on lock acquisition. + - CONFIGURATION + +Lock statistics are enabled via CONFIG_LOCK_STATS. + - USAGE +Enable collection of statistics: + +# echo 1 >/proc/sys/kernel/lock_stat + +Disable collection of statistics: + +# echo 0 >/proc/sys/kernel/lock_stat + Look at the current lock statistics: ( line numbers not part of actual output, done for clarity in the explanation