From owner-freebsd-stable@FreeBSD.ORG Mon Feb 18 21:11:26 2008 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 9FE5A16A420 for ; Mon, 18 Feb 2008 21:11:26 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail15.syd.optusnet.com.au (mail15.syd.optusnet.com.au [211.29.132.196]) by mx1.freebsd.org (Postfix) with ESMTP id 3D0DE13C4DB for ; Mon, 18 Feb 2008 21:11:26 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mail15.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m1ILB7qj009708 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 19 Feb 2008 08:11:08 +1100 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.1) with ESMTP id m1ILB6pj055067; Tue, 19 Feb 2008 08:11:06 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m1ILB6gK055066; Tue, 19 Feb 2008 08:11:06 +1100 (EST) (envelope-from peter) Date: Tue, 19 Feb 2008 08:11:06 +1100 From: Peter Jeremy To: Jim Bryant Message-ID: <20080218211106.GA55016@server.vk2pj.dyndns.org> References: <47B90868.7000900@electron-tube.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IJpNTDwzlM2Ie8A6" Content-Disposition: inline In-Reply-To: <47B90868.7000900@electron-tube.net> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-stable@freebsd.org Subject: Re: How to take down a system to the point of requiring a newfs with one line of C (userland) 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, 18 Feb 2008 21:11:26 -0000 --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [CC list trimmed] On Sun, Feb 17, 2008 at 10:24:08PM -0600, Jim Bryant wrote: >How to repeat the problem: > Compile and run the following as instructed: > >#include >#include > >int main(int argc, char **argv) { int i; char buf[1024]; bzero(buf, 1024);= =20 >for(i =3D 0; i < 10000; i++) { sprintf(buf, "touch %s%05d\n", argv[1], i);= =20 >system((const char *)buf);} return(0);} > >/* pass a top-level mountpoint directory name of a mounted filesystem, wit= h=20 >a trailing slash to the above as argv[1], and run. > >This will create 10,000 zero-length files in the specified directory. > >umount that filesystem. > >perform a shitload of sync's to make sure everything outstanding is flushe= d=20 >to disk on all filesystems. > >mount the target filesystem (preferably from a vty or serial console to=20 >catch the messages when it panics, which it will as soon as the mount is= =20 >attempted). >*/ FreeBSD pjfbsd6.alcatel.com.au 6.3-STABLE FreeBSD 6.3-STABLE #4: Wed Jan 23= 08:21:27 EST 2008 root@pjfbsd6.alcatel.com.au:/var/obj/usr/src/sys/pjf= bsd6 i386 I have been unable to reproduce the problem as described with or without softupdates, even when I run the filesystem out of inodes. I have also tried filling '/'=C3=A4 and rebooting to no avail. That said, I did run into a bug where, for some time after deleting the files from a soft-updates partition, 'df' would report that the inodes were freed but attempting to create a new file would fail with ENOSPC. --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --IJpNTDwzlM2Ie8A6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHufRq/opHv/APuIcRAnMXAJwMiw8ELN36bz7MTRWac7vOyGubngCgwmfE Wcwr3bQlf9N8adqPNsZ8gh8= =Rd2N -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6--