From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 8 21:01:49 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CEB4106568F for ; Tue, 8 Sep 2009 21:01:49 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id BDFCE8FC13 for ; Tue, 8 Sep 2009 21:01:48 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.50) id 1Ml7ox-00056T-Fz for freebsd-hackers@freebsd.org; Tue, 08 Sep 2009 23:01:47 +0200 Received: from 93-138-19-116.adsl.net.t-com.hr ([93.138.19.116]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Sep 2009 23:01:47 +0200 Received: from ivoras by 93-138-19-116.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Sep 2009 23:01:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Tue, 08 Sep 2009 23:00:58 +0200 Lines: 54 Message-ID: References: <4AA4E7A7.60503@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigF560D7BCDCFD4CBFF39C050C" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 93-138-19-116.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <4AA4E7A7.60503@gmail.com> X-Enigmail-Version: 0.96.0 Sender: news Subject: Re: Kernel panic caused by fork X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Sep 2009 21:01:49 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF560D7BCDCFD4CBFF39C050C Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Ivan Radovanovic wrote: > I was testing FreeBSD's behavior when running many threads at the same > time (and I find it performs excellent) when I wanted to test how syste= m > will behave towards program that spawns itself too many times. I wrote = a > very simple program >=20 > #include > #include >=20 > int main() { > while(1) > fork(); > return 0; > } A simple fork bomb. Hmm, it should just crash and if it does crash it's a regression. I've "tested" fork bombs on 7-STABLE and early 8-CURRENT and they were behaving as expected - stopped at the maxproc limit. I don't currently have spare 7.x stable machines but I have just run it on 8-BETA2 one and the maxproc limit still works, though as expected the console is almost unusable for anything except switching (i.e. processes don't get to receive input very often). A lot of them are in "locked" state with "*vm ob" as state/channel name. I couldn't clean the system from the fork bomb with "killall" as root. Can you describe your machine? My is an Atom-based (slow) netbook with 1 GB RAM. --------------enigF560D7BCDCFD4CBFF39C050C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqmxhAACgkQldnAQVacBcjzUwCfeBvJ/Kd6zFakn6qP9BNBH9TS 1i4An09wFsbLJ7vgoyQjZ4n+sx6oBGZG =uppB -----END PGP SIGNATURE----- --------------enigF560D7BCDCFD4CBFF39C050C--