login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
2
Re: A unresponsive file system can hang all I/O in the system on linux-2.6.23-rc6 (dirty_thresh problem?)
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Randy Dunlap
Subject:
Re: A unresponsive file system can hang all I/O in the system on linux-2.6.23-rc6 (dirty_thresh problem?)
Date: Tuesday, October 2, 2007 - 8:42 am
On Tue, 02 Oct 2007 15:36:01 +0200 Peter Zijlstra wrote:
quoted text
> On Fri, 2007-09-28 at 12:16 -0700, Andrew Morton wrote: > > > (Searches for the lockstat documentation) > > > > Did we forget to do that? > > yeah,... > > /me quickly whips up something
Thanks. Just some typos noted below.
quoted text
> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> > --- > Documentation/lockstat.txt | 119 +++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 119 insertions(+) > > Index: linux-2.6/Documentation/lockstat.txt > =================================================================== > --- /dev/null > +++ linux-2.6/Documentation/lockstat.txt > @@ -0,0 +1,119 @@ > + > +LOCK STATISTICS > + > +- WHAT > + > +As the name suggests, it provides statistics on locks. > + > +- WHY > + > +Because things like lock contention can severely impact performance. > + > +- HOW > + > +Lockdep already has hooks in the lock functions and maps lock instances to > +lock classes. We build on that. The graph below shows the relation between > +the lock functions and the various hooks therein. > + > + __acquire > + | > + lock _____ > + | \ > + | __contended > + | | > + | <wait> > + | _______/ > + |/ > + | > + __acquired > + | > + . > + <hold> > + . > + | > + __release > + | > + unlock > + > +lock, unlock - the regular lock functions > +__* - the hooks > +<> - states > + > +With these hooks we provide the following statistics: > + > + con-bounces - number of lock contention that involved x-cpu data > + contentions - number of lock acquisitions that had to wait > + wait time min - shortest (non 0) time we ever had to wait for a lock
(non-0)
quoted text
> + max - longest time we ever had to wait for a lock > + total - total time we spend waiting on this lock > + acq-bounes - number of lock acquisitions that involved x-cpu data
-bounces
quoted text
> + acquisitions - number of times we took the lock > + hold time min - shortest (non 0) time we ever held the lock
(non-0)
quoted text
> + max - longest time we ever held the lock > + total - total time this lock was held > + > +From these number various other statistics can be derived, such as: > + > + hold time average = hold time total / acquisitions > + > +These numbers are gathered per lock class, per read/write state (when > +applicable). > + > +It also tracks (4) contention points per class. A contention point is a call > +site that had to wait on lock acquisition. > + > + - USAGE > + > +Look at the current lock statistics: > + > +(line numbers not part of actual output, done for clarity in the explanation below) > + > +# less /proc/lock_stat > + > +01 lock_stat version 0.2 > +02 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > +03 class name con-bounces contentions waittime-min waittime-max waittime-total acq-bounces acquisitions holdtime-min holdtime-max holdtime-total > +04 -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
...
quoted text
> +15 dcache_lock 180 [<ffffffff802c0d7e>] sys_getcwd+0x11e/0x230 > +16 dcache_lock 165 [<ffffffff802c002a>] d_alloc+0x15a/0x210 > +17 dcache_lock 33 [<ffffffff8035818d>] _atomic_dec_and_lock+0x4d/0x70 > +18 dcache_lock 1 [<ffffffff802beef8>] shrink_dcache_parent+0x18/0x130 > + > +This except shows the first two lock class statistics. Line 01 shows the output
excerpt
quoted text
> +version - each time the format changes this will be updated. Line 02-04 show > +the header with column descriptions. Lines 05-10 and 13-18 show the actual > +statistics. These statistics come in two parts; the actual stats separated by a > +short separator (line 08, 14) from the contention points. > + > +The first lock (05-10) is a read/write lock, and shows two lines above the > +short separator. The contention points don't match the column descriptors, > +they have two: contentions and [<IP>] symbol.
... --- ~Randy -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
A unresponsive file system can hang all I/O in the system ...
, Chakri n
, (Thu Sep 27, 11:32 pm)
Re: A unresponsive file system can hang all I/O in the sys ...
, Andrew Morton
, (Thu Sep 27, 11:50 pm)
Re: A unresponsive file system can hang all I/O in the sys ...
, Peter Zijlstra
, (Thu Sep 27, 11:59 pm)
Re: A unresponsive file system can hang all I/O in the sys ...
, Chakri n
, (Fri Sep 28, 1:27 am)
Re: A unresponsive file system can hang all I/O in the sys ...
, Peter Zijlstra
, (Fri Sep 28, 1:40 am)
Re: A unresponsive file system can hang all I/O in the sys ...
, Chakri n
, (Fri Sep 28, 2:01 am)
Re: A unresponsive file system can hang all I/O in the sys ...
, Peter Zijlstra
, (Fri Sep 28, 2:12 am)
Re: A unresponsive file system can hang all I/O in the sys ...
, Chakri n
, (Fri Sep 28, 2:20 am)
Re: A unresponsive file system can hang all I/O in the sys ...
, Peter Zijlstra
, (Fri Sep 28, 2:23 am)
Re: A unresponsive file system can hang all I/O in the sys ...
, Chakri n
, (Fri Sep 28, 3:36 am)
Re: A unresponsive file system can hang all I/O in the sys ...
, Jonathan Corbet
, (Fri Sep 28, 6:28 am)
Re: A unresponsive file system can hang all I/O in the sys ...
, Peter Zijlstra
, (Fri Sep 28, 6:35 am)
Re: [linux-pm] Re: A unresponsive file system can hang all ...
, Alan Stern
, (Fri Sep 28, 9:45 am)
Re: A unresponsive file system can hang all I/O in the sys ...
, Trond Myklebust
, (Fri Sep 28, 10:00 am)
Re: A unresponsive file system can hang all I/O in the sys ...
, Andrew Morton
, (Fri Sep 28, 11:04 am)
Re: A unresponsive file system can hang all I/O in the sys ...
, Peter Zijlstra
, (Fri Sep 28, 11:48 am)
Re: A unresponsive file system can hang all I/O in the sys ...
, Andrew Morton
, (Fri Sep 28, 11:49 am)
Re: A unresponsive file system can hang all I/O in the sys ...
, Trond Myklebust
, (Fri Sep 28, 12:16 pm)
Re: A unresponsive file system can hang all I/O in the sys ...
, Andrew Morton
, (Fri Sep 28, 12:16 pm)
Re: A unresponsive file system can hang all I/O in the sys ...
, Andrew Morton
, (Fri Sep 28, 12:26 pm)
Re: A unresponsive file system can hang all I/O in the sys ...
, Trond Myklebust
, (Fri Sep 28, 12:52 pm)
Re: A unresponsive file system can hang all I/O in the sys ...
, Andrew Morton
, (Fri Sep 28, 1:10 pm)
Re: A unresponsive file system can hang all I/O in the sys ...
, Daniel Phillips
, (Fri Sep 28, 1:24 pm)
Re: A unresponsive file system can hang all I/O in the sys ...
, Trond Myklebust
, (Fri Sep 28, 1:32 pm)
Re: A unresponsive file system can hang all I/O in the sys ...
, Andrew Morton
, (Fri Sep 28, 1:43 pm)
Re: A unresponsive file system can hang all I/O in the sys ...
, Chakri n
, (Fri Sep 28, 2:36 pm)
Re: A unresponsive file system can hang all I/O in the sys ...
, Chakri n
, (Fri Sep 28, 4:33 pm)
Re: A unresponsive file system can hang all I/O in the sys ...
, Daniel Phillips
, (Fri Sep 28, 5:46 pm)
Re: A unresponsive file system can hang all I/O in the sys ...
, Daniel Phillips
, (Fri Sep 28, 6:27 pm)
KDB?
, Daniel Phillips
, (Fri Sep 28, 6:51 pm)
Re: A unresponsive file system can hang all I/O in the sys ...
, Fengguang Wu
, (Sat Sep 29, 4:04 am)
Re: A unresponsive file system can hang all I/O in the sys ...
, Peter Zijlstra
, (Sat Sep 29, 4:48 am)
Re: A unresponsive file system can hang all I/O in the sys ...
, Fengguang Wu
, (Sat Sep 29, 5:28 am)
Re: A unresponsive file system can hang all I/O in the sys ...
, Peter Zijlstra
, (Sat Sep 29, 7:43 am)
Re: A unresponsive file system can hang all I/O in the sys ...
, Chuck Ebbert
, (Mon Oct 1, 8:57 am)
[PATCH] writeback: avoid possible balance_dirty_pages() lo ...
, Fengguang Wu
, (Mon Oct 1, 7:00 pm)
Re: [PATCH] writeback: avoid possible balance_dirty_pages( ...
, Andrew Morton
, (Mon Oct 1, 7:14 pm)
Re: [PATCH] writeback: avoid possible balance_dirty_pages( ...
, Fengguang Wu
, (Tue Oct 2, 5:13 am)
Re: A unresponsive file system can hang all I/O in the sys ...
, Peter Zijlstra
, (Tue Oct 2, 6:36 am)
Re: A unresponsive file system can hang all I/O in the sys ...
, Randy Dunlap
, (Tue Oct 2, 8:42 am)
[PATCH] lockstat: documentation
, Peter Zijlstra
, (Wed Oct 3, 2:28 am)
Re: [PATCH] lockstat: documentation
, Ingo Molnar
, (Wed Oct 3, 2:35 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Mel Gorman
Re: [PATCH 1/4] vmstat: remove zone->lock from walk_zones_in_node
Guenter Roeck
Re: [lm-sensors] Location for thermal drivers
David Woodhouse
Re: RFC: Moving firmware blobs out of the kernel.
Siddha, Suresh B
Re: [PATCH 2.6.21 review I] [11/25] x86: default to physical mode on hotplug CPU k...
Peter Zijlstra
Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)
git-commits-head
:
Linux Kernel Mailing List
[MIPS] Fix potential latency problem due to non-atomic cpu_wait.
Linux Kernel Mailing List
USB: rename USB_SPEED_VARIABLE to USB_SPEED_WIRELESS
Linux Kernel Mailing List
lib/vsprintf.c: fix bug omitting minus sign of numbers (module_param)
Linux Kernel Mailing List
[Bluetooth] Initiate authentication during connection establishment
Linux Kernel Mailing List
[POWERPC] 4xx: Add ppc40x_defconfig
linux-netdev
:
MERCEDES
Your mail id has won 950,000.00 in the MERCEDES Benz Online Promo.for claims send:
David Miller
Re: [PATCH] xen/netfront: do not mark packets of length < MSS as GSO
David Miller
Re: skb_segment() questions
Shan Wei
[RFC PATCH net-next 2/5]IPv6:netfilter: Send an ICMPv6 "Fragment Reassembly Timeou...
Stanislaw Gruszka
[PATCH 1/4] bnx2x: use smp_mb() to keep ordering of read write operations
git
:
Nicolas Sebrecht
git-svn died of signal 11 (was "3 failures on test t9100 (svn)")
Junio C Hamano
Re: [PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
Martin Langhoff
Re: [PATCH] GIT commit statistics.
Alexandre Julliard
[PATCH] gitweb: Put back shortlog instead of graphiclog in the project list.
Josh Triplett
[PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
openbsd-misc
:
Taisto Qvist XX
Re: AMD GEODE LX-800 just works with kernel from install42.iso and kernelpanics wi...
Nico Meijer
Re: gOS Develop Kit with VIA pc-1 Processor Platform VIA C7-D
Andreas Bihlmaier
Re: jetway board sensors (Fintek F71805F)
admin
Drive a 2009 car from R799p/m
Antti Harri
Re: how to create a sha256 hash
Colocation donated by:
Syndicate