From owner-freebsd-stable@FreeBSD.ORG Wed May 11 03:48:32 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 613B016A4CE for ; Wed, 11 May 2005 03:48:32 +0000 (GMT) Received: from natco8.natcotech.com (natco8.natcotech.com [205.167.142.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id D187C43D49 for ; Wed, 11 May 2005 03:48:31 +0000 (GMT) (envelope-from smartweb@leadhill.net) Received: from localhost (int10.natcotech.com [192.168.1.10]) by natco8.natcotech.com (Postfix) with ESMTP id 1B3012981FE for ; Tue, 10 May 2005 22:48:31 -0500 (CDT) Received: from natco8.natcotech.com ([192.168.1.8]) by localhost (natco10 [192.168.1.9]) (amavisd-new, port 10024) with LMTP id 10659-01-16 for ; Tue, 10 May 2005 22:48:31 -0500 (CDT) Received: from ibm.nlcc.us (ldhl-ras1-dial-12-28-24-127.natcotech.com [12.28.24.127]) by natco8.natcotech.com (Postfix) with ESMTP id 8583E2981CD for ; Tue, 10 May 2005 22:48:30 -0500 (CDT) Received: (qmail 15621 invoked by uid 89); 11 May 2005 03:48:30 -0000 Received: from unknown (HELO ?192.168.0.2?) (billy@192.168.0.2) by ibm.nlcc.us with SMTP; 11 May 2005 03:48:30 -0000 Message-ID: <4281808D.9090303@leadhill.net> Date: Tue, 10 May 2005 22:48:29 -0500 From: Billy Newsom User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <4280353B.8050306@leadhill.net> <42803B66.3070200@alumni.rice.edu> <428044C2.80208@leadhill.net> <428052CB.2000704@alumni.rice.edu> <428132B0.4060104@nlcc.us> <20050510231040.GA4494@falcon.midgard.homeip.net> In-Reply-To: <20050510231040.GA4494@falcon.midgard.homeip.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at natco9.natcotech.com Subject: Re: nfs bug & df: Can I lock up my kernel and overflow this buffer? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2005 03:48:32 -0000 Erik Trulsson wrote: > Note that mount(8) (as well as mount_nfs(8)) says about the -o flag > that "Options are specified with a -o flag followed by a comma > separated string of options." > > If you try writing it as the manpage says, i.e. like > > mount -o -s,-x=2,-T dell:/nfs /dellbak > > it should work fine. I felt pretty confident I had tried something of this sort, and of course now that you say all of that, it works for me. I probably didn't use the hyphens, nor the equals sign, etc. > It works fine on the commandline, you just got the syntax for the > commandline wrong. > >>But what I did discover is that if I mount the same nfs resource >>multiple times, I get multiple, identical mounts (using fstab options, >>or commandline, either one). I have to umount each one serially. How >>is this a feature? > > > It is a feature in that the system does exactly what you asked it to > do. This is usually less painful than systems that try to guess what > you actually meant. > > >> What good does it do me if I mount the same nfs >>drive to the same place n times? > > > None that I can think of, which doesn't mean that there is no use for > it. > > >>Won't that eventually cause a deadlock >>as n increases beyond a few hundred or thousand? -- especially when the >>NFS server goes down? > > > Probably not a deadlock, but possible a resource starvation - so don't > do that. Which leads me to a test. I am going to try and take a server down this way and see what resources I can max out or overflow by mounting and re-mounting the same thing over and over. I'll write a shell script with an infinite loop, and run it on an old server of mine. Then maybe I'll pull its LAN cable (virtually and actually) and see what happens. Perhaps I'll cross-post the results to the hackers list if I get some interesting results. BN