From owner-freebsd-current@FreeBSD.ORG Tue Nov 7 19:48:58 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5354A16A4CA; Tue, 7 Nov 2006 19:48:58 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7438843D8B; Tue, 7 Nov 2006 19:48:24 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 0AA9A46DA5; Tue, 7 Nov 2006 20:48:22 +0100 (CET) Received: from localhost (dly194.neoplus.adsl.tpnet.pl [83.24.54.194]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id B119645684; Tue, 7 Nov 2006 20:48:15 +0100 (CET) Date: Tue, 7 Nov 2006 20:48:12 +0100 From: Pawel Jakub Dawidek To: John Baldwin Message-ID: <20061107194812.GA25603@garage.freebsd.pl> References: <20061105152417.GM83118@garage.freebsd.pl> <200611071324.23525.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GvXjxJ+pjyke8COw" Content-Disposition: inline In-Reply-To: <200611071324.23525.jhb@freebsd.org> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_00,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: alc@freebsd.org, freebsd-current@freebsd.org, tegge@freebsd.org Subject: Re: VM deadlock? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Nov 2006 19:48:58 -0000 --GvXjxJ+pjyke8COw Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 07, 2006 at 01:24:22PM -0500, John Baldwin wrote: > On Sunday 05 November 2006 10:24, Pawel Jakub Dawidek wrote: > > db> sh allchain > > chain 1: > > thread 100260 (pid 90346, qmail-smtpd) blocked on lock 0xc07177e0 (sle= ep=20 > mutex) "Giant" > > thread 100133 (pid 89997, qmail-smtpd) blocked on lock 0xc0722700 (sle= ep=20 > mutex) "vm page queue mutex" > > thread 100105 (pid 4315, drwebd) is on a run queue > > chain 2: > > thread 100098 (pid 4316, qmail-smtpd) blocked on lock 0xc0722700 (slee= p=20 > mutex) "vm page queue mutex" > > thread 100105 (pid 4315, drwebd) is on a run queue > > chain 3: > > thread 100031 (pid 34, pagezero) blocked on lock 0xc0722700 (sleep=20 > mutex) "vm page queue mutex" > > thread 100105 (pid 4315, drwebd) is on a run queue > > chain 4: > > thread 100015 (pid 3, g_up) blocked on lock 0xc0722700 (sleep mutex) "= vm=20 > page queue mutex" > > thread 100105 (pid 4315, drwebd) is on a run queue > > chain 5: > > thread 100002 (pid 14, swi4: clock sio) blocked on lock 0xc072146c (sl= eep=20 > mutex) "tcp" > > thread 100000 (pid 16, swi1: net) blocked on lock 0xc0722700 (sleep=20 > mutex) "vm page queue mutex" > > thread 100105 (pid 4315, drwebd) is on a run queue > > db> sh locktree > > db> sh turnstile > >=20 > > Process drwebd (pid 4315) doesn't seem to go any further. >=20 > How about 'show allpcpu' to see which threads are running? I get some feedback from tegge@ and kib@ is willing to investigate it further. This looks more like scheduler issue, not VM issue. There are 4 CPUs. 3 are idle, one is stuck running userland process at this point. Disabling PREEMPTION seemed to help. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --GvXjxJ+pjyke8COw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFFUOL8ForvXbEpPzQRApLdAJ9xa/gC3e+cF/GjAdR83HNh2jOH9QCgpQEM ye1lsaa2aTB4VK8JvPtnoig= =Prsq -----END PGP SIGNATURE----- --GvXjxJ+pjyke8COw--