From owner-freebsd-stable@FreeBSD.ORG Mon Feb 21 08:38:36 2011 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 A80EB106566B for ; Mon, 21 Feb 2011 08:38:36 +0000 (UTC) (envelope-from ykirill@yahoo.com) Received: from nm9-vm0.bullet.mail.ne1.yahoo.com (nm9-vm0.bullet.mail.ne1.yahoo.com [98.138.91.67]) by mx1.freebsd.org (Postfix) with SMTP id 65EA08FC0A for ; Mon, 21 Feb 2011 08:38:36 +0000 (UTC) Received: from [98.138.90.57] by nm9.bullet.mail.ne1.yahoo.com with NNFMP; 21 Feb 2011 08:38:36 -0000 Received: from [98.138.89.163] by tm10.bullet.mail.ne1.yahoo.com with NNFMP; 21 Feb 2011 08:38:35 -0000 Received: from [127.0.0.1] by omp1019.mail.ne1.yahoo.com with NNFMP; 21 Feb 2011 08:38:35 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 984061.9189.bm@omp1019.mail.ne1.yahoo.com Received: (qmail 45227 invoked by uid 60001); 21 Feb 2011 08:38:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1298277515; bh=Qla3ge/9aVL47+ie+8XBUQB4974xWV6FLstlFvJSie4=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=SwyIm1K7TZmDZLgUYz7ZPSLx1oqKKW4lDWCbdpg8iv02KkIt5ZB/E7bbgf/kCXv7ZzWRs4fjPT28jCsPoxSBcXwByyjtuyX/K3wkK6zAnOn/dfIrNDu2DU1NXUjgycIh/YByrHWwc9xIbCCGukW4T04PUqqZYD8CszEbhuT7C0w= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=qtPWSxOummg4vKSTj/GNSE9OTSC88mKohJ31iWZ/o+XVAlFzKVJL51Jb1PtxN5CKU37R/hjWpREAYmxmoq+XX12bChVdqmjG7HYzTufVDJvtdwwvD9n6ezNy3r1vhzsc7zqGfuSzduvs+qi2IwSb0agm9s/SWAlYh3ZdXKdhj8Q=; Message-ID: <850225.44477.qm@web120517.mail.ne1.yahoo.com> X-YMail-OSG: UXzuPfMVM1lMwj.7ftAEwExCU.exBPx.f02NyD_UbygvQ_k P77XyHW.8A.IqXX2NRa80rVT7JSbd_QcIal51Ed8Nd98nAaNZIlx8w7cB3WV bLv0Kz7cLkVbAS6dA7DcoX3J_ML8QgAabfXZkqFQoEceNizfMpkT7tcxHBS9 47EP5AO55AK9R3wkS6tHPVvh5D84WxaJCLGW.Ar8pT0hmS8iFXZ7DGOjCzKC yjRSCLP7kjT.PsFEUJe070bNLr2FcmBmRjjPkzlzTkiT_hv0RZvETislXq1f v4wRZIvk7N4Y.AQF2ZGHxIho- Received: from [212.74.229.232] by web120517.mail.ne1.yahoo.com via HTTP; Mon, 21 Feb 2011 00:38:35 PST X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.109.292656 Date: Mon, 21 Feb 2011 00:38:35 -0800 (PST) From: Kirill Yelizarov To: freebsd-stable@freebsd.org In-Reply-To: <2058422254.149547.1298224963499.JavaMail.root@erie.cs.uoguelph.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: NFS client over udp 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: Mon, 21 Feb 2011 08:38:36 -0000 --- On Sun, 2/20/11, Rick Macklem wrote: > From: Rick Macklem > Subject: Re: NFS client over udp > To: "Kirill Yelizarov" > Cc: freebsd-stable@freebsd.org > Date: Sunday, February 20, 2011, 9:02 PM > > --- On Fri, 2/18/11, Kirill > Yelizarov > > > > On Fri, Feb 18, 2011 at 05:27:00AM > > > > -0800, Kirill Yelizarov wrote: > > > > > I have a reproducible memory leak when > using nfs > > > > client with an old > > > > > nfs server > > > > and mbufs used > > 8193/1722/9915 mbufs in use (current/cache/total) > > 8192/1264/9456/25600 mbuf clusters in use > (current/cache/total/max) > > 8192/605 mbuf+clusters out of packet secondary zone in > use > > (current/cache) > > 0/768/768/12800 4k (page size) jumbo clusters in use > > (current/cache/total/max) > > 0/0/0/6400 9k jumbo clusters in use > (current/cache/total/max) > > 0/0/0/3200 16k jumbo clusters in use > (current/cache/total/max) > > 18432K/6030K/24462K bytes allocated to network > (current/cache/total) > > 0/0/0 requests for mbufs denied > (mbufs/clusters/mbuf+clusters) > > 0/0/0 requests for jumbo clusters denied (4k/9k/16k) > > 0/0/0 sfbufs in use (current/peak/max) > > 0 requests for sfbufs denied > > 0 requests for sfbufs delayed > > 0 requests for I/O initiated by sendfile > > 0 calls to protocol drain routines > > > > Kirill > > > You could try the attached patch. It fixes the only places > in the > client side krpc over udp that seems mights cause a leak. I > have no > idea if it will help, since these cases should rarely, if > ever, > happen in practice. > > Please let us know if you have the chance to try the patch > and > whether or not it helped. > > rick > Rick, i tried your patch. Fortunately it didn't help me. There are no warnings on console and memory is climbing up during syncs and not freed later. I'll try to switch to tcp this evening. Thanks for help Kirill