Date: Sun, 11 May 2003 15:58:32 -0700 From: Bakul Shah <bakul@bitblocks.com> To: "M. Warner Losh" <imp@bsdimp.com> Cc: current@freebsd.org Subject: Re: Interrupt latency problems Message-ID: <200305112258.h4BMwWPF029180@bitblocks.com> In-Reply-To: Your message of "Sun, 11 May 2003 13:45:04 MDT." <20030511.134504.85393710.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Is it possible to cheaply check how long a mutex was held? If it crosses some sysctl var set threshold you can increment some count and/or drop into the debugger. That is one way to find all mutex slowpokes. You can even find a distribution by incrementing an array element. Array indexed by heldtime rounded down to multiples of 10ms or so. Just an idea -- ignore it if it doesn't make sense!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305112258.h4BMwWPF029180>