From owner-cvs-src-old@FreeBSD.ORG Mon Jan 25 12:12:28 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C9871065694 for ; Mon, 25 Jan 2010 12:12:28 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 1E4F78FC22 for ; Mon, 25 Jan 2010 12:12:28 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o0PCCSXh038767 for ; Mon, 25 Jan 2010 12:12:28 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o0PCCRGP038766 for cvs-src-old@freebsd.org; Mon, 25 Jan 2010 12:12:27 GMT (envelope-from attilio@repoman.freebsd.org) Message-Id: <201001251212.o0PCCRGP038766@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to attilio@repoman.freebsd.org using -f From: Attilio Rao Date: Mon, 25 Jan 2010 12:05:51 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src UPDATING src/share/man/man9 sleepqueue.9 src/sys/conf NOTES options src/sys/kern kern_clock.c subr_sleepqueue.c subr_turnstile.c src/sys/sys proc.h sleepqueue.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2010 12:12:28 -0000 attilio 2010-01-25 12:05:51 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) . UPDATING share/man/man9 sleepqueue.9 sys/conf NOTES options sys/kern kern_clock.c subr_sleepqueue.c subr_turnstile.c sys/sys proc.h sleepqueue.h Log: SVN rev 202966 on 2010-01-25 12:05:51Z by attilio MFC r201879: Introduce the new kernel thread called "deadlock resolver". It is used in order to seek within the threads state and heuristically understand if there is any deadlock happening. In order to implement it, the sq_type in sleepqueues is mandatory and not only compiled along with INVARIANTS option. Additively, a new sleepqueue function, sleepq_type() is added, returning the type of the sleepqueue linked to a wchan. Three new sysctls are added in order to configure the thread: debug.deadlkres.slptime_threshold debug.deadlkres.blktime_threshold debug.deadlkres.sleepfreq rappresenting the thresholds for sleep and block time that will lead to a deadlock matching (when exceeded), while the sleepfreq rappresents the number of seconds between 2 consecutive thread runnings. In order to enable the deadlock resolver thread recompile your kernel with the option DEADLKRES. Sponsored by: Sandvine Incorporated Revision Changes Path 1.632.2.10 +5 -0 src/UPDATING 1.17.2.4 +10 -1 src/share/man/man9/sleepqueue.9 1.1553.2.7 +5 -0 src/sys/conf/NOTES 1.687.2.6 +1 -0 src/sys/conf/options 1.211.2.2 +121 -1 src/sys/kern/kern_clock.c 1.64.2.3 +25 -3 src/sys/kern/subr_sleepqueue.c 1.175.2.2 +2 -0 src/sys/kern/subr_turnstile.c 1.535.2.6 +1 -0 src/sys/sys/proc.h 1.17.2.3 +1 -0 src/sys/sys/sleepqueue.h