From owner-freebsd-current@FreeBSD.ORG Fri Mar 17 18:26:15 2006 Return-Path: X-Original-To: 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 AC08616A42F for ; Fri, 17 Mar 2006 18:26:15 +0000 (UTC) (envelope-from grafan@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7322D43D49 for ; Fri, 17 Mar 2006 18:26:14 +0000 (GMT) (envelope-from grafan@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so475963wxc for ; Fri, 17 Mar 2006 10:26:14 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LIilFB9Z7ebq5ql3/tCvfnKTa/9czETMIiyE2auHvQZB4NGrZDSosqNRvMJI99lrV257JxubdX+kd4mUjkksADRfJrmCW1fFMQIerIW7N6/EgG9uaP9THOxCgQGotAVH+Dn+M+1diYzN+O6LwfbyamU3HPVS4poYXi87B2GorQc= Received: by 10.70.70.1 with SMTP id s1mr2385194wxa; Fri, 17 Mar 2006 10:26:13 -0800 (PST) Received: by 10.70.126.10 with HTTP; Fri, 17 Mar 2006 10:26:13 -0800 (PST) Message-ID: <6eb82e0603171026h4bc49a08kb0bda30e171feaec@mail.gmail.com> Date: Fri, 17 Mar 2006 13:26:13 -0500 From: "Rong-En Fan" To: "Kostik Belousov" , "Mohan Srinivasan" In-Reply-To: <20060317094103.GD1203@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200603161516.27081.mi+mx@aldan.algebra.com> <20060317094103.GD1203@deviant.kiev.zoral.com.ua> Cc: current@freebsd.org Subject: Re: unkillable process stuck in "nfsaio" 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: Fri, 17 Mar 2006 18:26:15 -0000 On 3/17/06, Kostik Belousov wrote: > Just out of curiosity: > > could you, please, test this little patch: > > Index: sys/nfsclient/nfs_bio.c I have been played around with intr/nointr with this patch + some in nfs_bio.c, nfs_vnops.c. Here are the results (note that, the revision # below means the changes made in that revision), tested on RELENG_6 as of yesterday, i386, SMP. kernel is built w= ith INVARIANT on. * nfs_vnops.c 1.262, nfs_bio.c 1.154 - intr $ dd if=3D/dev/zero of=3Db bs=3D1m count=3D50 50+0 records in 50+0 records out 52428800 bytes transferred in 4.410424 secs (11887474 bytes/sec) $ dd if=3D/dev/zero of=3Db bs=3D1m count=3D50 ^C^C^C^C^C^C^C^C^C^C7+0 records in 6+0 records out 6291456 bytes transferred in 291.017236 secs (21619 bytes/sec) (stuck in nfsaio) - nointr $ dd if=3D/dev/zero of=3Db bs=3D1m count=3D50 50+0 records in 50+0 records out 52428800 bytes transferred in 4.264193 secs (12295128 bytes/sec) $ dd if=3D/dev/zero of=3Db bs=3D1m count=3D50 ^C12+0 records in 11+0 records out 11534336 bytes transferred in 0.990210 secs (11648373 bytes/sec) * nfs_vnops.c 1.262 - intr $dd if=3D/dev/zero of=3Db bs=3D1m count=3D50 50+0 records in 50+0 records out 52428800 bytes transferred in 4.238704 secs (12369064 bytes/sec) $ dd if=3D/dev/zero of=3Db bs=3D1m count=3D50 ^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C ^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^Ccc^C^C^C^C15+0 records in 14+0 records out 14680064 bytes transferred in 677.578696 secs (21665 bytes/sec) (stuck in nfsaio) - nointr $ dd if=3D/dev/zero of=3Db bs=3D1m count=3D50 50+0 records in 50+0 records out 52428800 bytes transferred in 4.255155 secs (12321244 bytes/sec) $ dd if=3D/dev/zero of=3Db bs=3D1m count=3D50 ^C11+0 records in 10+0 records out 10485760 bytes transferred in 0.899381 secs (11658864 bytes/sec) * nfs_vnops.c 1.262, nfs_bio.c (remove slpflag =3D 0) - intr $ dd if=3D/dev/zero of=3Db bs=3D1m count=3D50 50+0 records in 50+0 records out 52428800 bytes transferred in 4.245185 secs (12350181 bytes/sec) $ dd if=3D/dev/zero of=3Db bs=3D1m count=3D50 ^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C (top's state is changing between CPU0, CPU1, RUN, *Giant) (11 minutes passed, I reboot this box) - nointr $ dd if=3D/dev/zero of=3Db bs=3D1m count=3D50 50+0 records in 50+0 records out 52428800 bytes transferred in 4.454680 secs (11769375 bytes/sec) $ dd if=3D/dev/zero of=3Db bs=3D1m count=3D50 ^C17+0 records in 16+0 records out 16777216 bytes transferred in 1.458180 secs (11505587 bytes/sec) * nfs_vnops.c 1.262, nfs_bio.c 1.154 (remove slpflags =3D 0) - intr $ dd if=3D/dev/zero of=3Db bs=3D1m count=3D50 50+0 records in 50+0 records out 52428800 bytes transferred in 4.386083 secs (11953445 bytes/sec) $ dd if=3D/dev/zero of=3Db bs=3D1m count=3D50 ^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C (top's state is changing between CPU0, CPU1, RUN, *Giant) (44 minutes passwd, I rebooted) - noitntr $ dd if=3D/dev/zero of=3Db bs=3D1m count=3D50 50+0 records in 50+0 records out 52428800 bytes transferred in 4.370959 secs (11994805 bytes/sec) $ dd if=3D/dev/zero of=3Db bs=3D1m count=3D50 ^C25+0 records in 24+0 records out 25165824 bytes transferred in 2.122789 secs (11855076 bytes/sec) Looks like that the changes to nfs_vnops.c last Nov by ps@, ^C can really s= top the process, but it take too much time :( Hope this helps, Rong-En Fan