From owner-freebsd-stable@FreeBSD.ORG Fri Apr 27 04:37:21 2012 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72A0E106564A for ; Fri, 27 Apr 2012 04:37:21 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper-int.allbsd.org [IPv6:2001:2f0:104:e002::2]) by mx1.freebsd.org (Postfix) with ESMTP id F3BFC8FC0C for ; Fri, 27 Apr 2012 04:37:19 +0000 (UTC) Received: from alph.allbsd.org (p4242-ipbf1504funabasi.chiba.ocn.ne.jp [118.7.211.242]) (authenticated bits=128) by mail.allbsd.org (8.14.4/8.14.4) with ESMTP id q3R4aRIJ059823; Fri, 27 Apr 2012 13:36:39 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [IPv6:::1]) (authenticated bits=0) by alph.allbsd.org (8.14.4/8.14.4) with ESMTP id q3R4aNTN028319; Fri, 27 Apr 2012 13:36:25 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Fri, 27 Apr 2012 13:35:56 +0900 (JST) Message-Id: <20120427.133556.1957776674947898933.hrs@allbsd.org> To: rmacklem@uoguelph.ca From: Hiroki Sato In-Reply-To: <1527622626.3418715.1335445225510.JavaMail.root@erie.cs.uoguelph.ca> References: <1527622626.3418715.1335445225510.JavaMail.root@erie.cs.uoguelph.ca> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.4.50 on Emacs 23.4 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Fri_Apr_27_13_35_56_2012_748)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.3 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.3 (mail.allbsd.org [133.31.130.32]); Fri, 27 Apr 2012 13:36:46 +0900 (JST) X-Spam-Status: No, score=-104.1 required=13.0 tests=BAYES_00, CONTENT_TYPE_PRESENT,RCVD_IN_RP_RNBL,SPF_SOFTFAIL,USER_IN_WHITELIST autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on gatekeeper.allbsd.org Cc: freebsd-stable@FreeBSD.org, killing@multiplay.co.uk, ob@e-Gitt.NET Subject: Re: 9-STABLE, ZFS, NFS, ggatec - suspected memory leak X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2012 04:37:21 -0000 ----Security_Multipart(Fri_Apr_27_13_35_56_2012_748)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Rick Macklem wrote in <1527622626.3418715.1335445225510.JavaMail.root@erie.cs.uoguelph.ca>: rm> Steven Hartland wrote: rm> > ---- Original Message ----- rm> > From: "Rick Macklem" rm> > > At a glance, it looks to me like 8.x is affected. Note that the rm> > > bug only affects the new NFS server (the experimental one for 8.x) rm> > > when exporting ZFS volumes. (UFS exported volumes don't leak) rm> > > rm> > > If you are running a server that might be affected, just: rm> > > # vmstat -z | fgrep -i namei rm> > > on the server and see if the 3rd number shown is increasing. rm> > rm> > Many thanks Rick wasnt aware we had anything experimental enabled rm> > but I think that would be a yes looking at these number:- rm> > rm> > vmstat -z | fgrep -i namei rm> > NAMEI: 1024, 0, 1, 1483, 25285086096, 0 rm> > vmstat -z | fgrep -i namei rm> > NAMEI: 1024, 0, 0, 1484, 25285945725, 0 rm> > rm> ^ rm> I don't think so, since the 3rd number (USED) is 0 here. rm> If that # is increasing over time, you have the leak. You are rm> probably running the old (default in 8.x) NFS server. Just a report, I confirmed it affected 8.x servers running newnfs. Actually I have been suffered from memory starvation symptom on that server (24GB RAM) for a long time and watching vmstat -z periodically. It stopped working once a week. I investigated the vmstat log again and found the amount of NAMEI leak was 11,543,956 (about 11GB!) just before the locked-up. After applying the patch, the leak disappeared. Thank you for fixing it! -- Hiroki ----Security_Multipart(Fri_Apr_27_13_35_56_2012_748)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEABECAAYFAk+aIiwACgkQTyzT2CeTzy377gCfVED8ax2Dp5yK+aPFngbjTnuy +eYAniQh3lwH6VoTqFE5LeZA7jv/fY7z =OSLV -----END PGP SIGNATURE----- ----Security_Multipart(Fri_Apr_27_13_35_56_2012_748)----