Date: Tue, 08 Sep 2009 23:00:58 +0200 From: Ivan Voras <ivoras@freebsd.org> To: freebsd-hackers@freebsd.org Subject: Re: Kernel panic caused by fork Message-ID: <h86gn2$ghr$1@ger.gmane.org> In-Reply-To: <4AA4E7A7.60503@gmail.com> References: <4AA4E7A7.60503@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <sys/types.h> > #include <unistd.h> >=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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?h86gn2$ghr$1>