From owner-freebsd-questions Sat May 12 16:11:42 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ramstind.gtf.ol.no (ramstind.gtf.ol.no [128.39.174.16]) by hub.freebsd.org (Postfix) with ESMTP id C0B5D37B424; Sat, 12 May 2001 16:11:35 -0700 (PDT) (envelope-from trond@ramstind.gtf.ol.no) Received: from localhost (trond@localhost) by ramstind.gtf.ol.no (8.9.3/8.9.3) with ESMTP id BAA63047; Sun, 13 May 2001 01:10:43 +0200 (CEST) (envelope-from trond@ramstind.gtf.ol.no) Date: Sun, 13 May 2001 01:10:43 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= To: Valentin Nechayev Cc: David Xu , , Subject: Re: kenel panic, vm_map_entry_create: kernel resources exhausted In-Reply-To: <20010513000051.A44618@iv.nn.kiev.ua> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 13 May 2001, Valentin Nechayev wrote: > Wed, May 09, 2001 at 12:27:33, bsddiy (David Xu) wrote about "kenel panic, vm_map_entry_create: kernel resources exhausted": > > > I am using FreeBSD 4.3-STABLE, my machine has 64 RAM. > > I can use a fork bomb to crash kernel under some conditions, > > fork bomb program is: > > > > #include > > int main() > > { > > while(1) > > { > > if (fork() == 0) > > break; > > } > > return 0; > > } > > > > when kernel panic, it prints: vm_map_entry_create: kernel resources > > exhausted, > > then after some seconds, it reboots. > > [snip] Have you looked at /etc/login.conf? The stock values in this file were quite reasonable in 2.2.8, but in 3.x and onwards the values are set to unlimited for almost all parameters in the default class. I'm not an expert on this matter, and I don't know if changing the /etc/login.conf file will help, but I think the old values for the default class should be put back. PS! Don't forget to run cap_mkdb /etc/login.conf after editing. -- ---------------------------------------------------------------------- Trond Endrestøl | trond@ramstind.gtf.ol.no Patron of The Art of Computer Programming| FreeBSD 3.5-S & Pine 4.31 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message