From owner-freebsd-stable@FreeBSD.ORG Tue Feb 22 10:14:43 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 6A7231065674 for ; Tue, 22 Feb 2011 10:14:43 +0000 (UTC) (envelope-from ykirill@yahoo.com) Received: from nm11.bullet.mail.sp2.yahoo.com (nm11.bullet.mail.sp2.yahoo.com [98.139.91.81]) by mx1.freebsd.org (Postfix) with SMTP id 479118FC17 for ; Tue, 22 Feb 2011 10:14:43 +0000 (UTC) Received: from [98.139.91.69] by nm11.bullet.mail.sp2.yahoo.com with NNFMP; 22 Feb 2011 10:00:53 -0000 Received: from [98.139.91.54] by tm9.bullet.mail.sp2.yahoo.com with NNFMP; 22 Feb 2011 10:00:53 -0000 Received: from [127.0.0.1] by omp1054.mail.sp2.yahoo.com with NNFMP; 22 Feb 2011 10:00:53 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 323575.3474.bm@omp1054.mail.sp2.yahoo.com Received: (qmail 82030 invoked by uid 60001); 22 Feb 2011 10:00:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1298368852; bh=xdwYpuK2XDnV/PH3BsHnRW3Tb8lTW5qIfo4C9cUeQjE=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=EJmSQWm0O7M+Hq2LlJu5UmFserVN1IEkjT8nEIxgMLaHynDr+aD42eq/VVaxfW1Nr8WjkBqe9rhVBac13g9H1dLCZfnNvwp2+yrHb2l2zpIFhqFjxtT1pLRrP8cEjy2mdy10jDtcbw/Fl7faMNppccecrvZi0quH7i75ly+lYf0= 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=RsLMirHtzh8Ps4cqG6ziEAuEE00QswfZ8QEIpPGoJZ59Eqpiu8tq1VXn9yhFmPOt2GctXF1GN9KIyhtzqLHkRqZlkKEdE+FCJXxT7N/QLBgAeEbQordKlHs3DetQ3dQ8J+sPQJsgQZoDEqTQZvVJ7zMgXiqs2fxDJ6cSnrxSYs4=; Message-ID: <926100.70850.qm@web120520.mail.ne1.yahoo.com> X-YMail-OSG: njQ3iykVM1nxSfhktC.lz7eytOZLgS0IJIFCZ1DPHYyHhKE sjorew0cPZ7Ur0MfaPYTL364xNzYgWfAHcZhDgTcrsi.odXW5maxWFb.nHvj ywhyxEnFjIpoMdJd8xHZFSvLBM6xMwIMBJ5e53sTmUchiKRS7MkuYJ81Fau. Sgtt..lJrXUthTJbSaTNYTHSrhtTHGwsPYYFUJE52X7yluEmvvYhexKx_Rjh YogKqf_dNfprY803g6XRx.iV04Ndq87L0dR_fbYQSuzAVuUiS9sRXlxNemn8 Ei.0gxrHqZFc00exQPCoQCE0- Received: from [212.74.229.232] by web120520.mail.ne1.yahoo.com via HTTP; Tue, 22 Feb 2011 02:00:52 PST X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.109.292656 Date: Tue, 22 Feb 2011 02:00:52 -0800 (PST) From: Kirill Yelizarov To: freebsd-stable@freebsd.org In-Reply-To: <1257594558.173363.1298329850374.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: Tue, 22 Feb 2011 10:14:43 -0000 --- On Tue, 2/22/11, Rick Macklem wrote: > From: Rick Macklem > Subject: Re: NFS client over udp > To: "Kirill Yelizarov" > Cc: freebsd-stable@freebsd.org > Date: Tuesday, February 22, 2011, 2:10 AM > > --- 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 > > > I'll assume that's unfortunately;-) Since the two cases > patched probably > never happen, I'm not surprised. > > The only other thing I can think of that you could try is > switching to > the experimental client. This would identify if the bug is > in the regular > client or somewhere further down in the rpc transport. > > The mount command would look something like: > # mount -t newnfs -o nfsv3,udp : > > I added options NFSCL to my kernel and tried to mount. mount shows everything is ok: 192.168.0.35:/home on /mnt (newnfs) but when i try to cd /mnt i get permission denied my export allow root and everything is done as root. What am i doing wrong? Kirill