From owner-freebsd-bugs@FreeBSD.ORG Wed Mar 31 18:00:40 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E73616A4CE for ; Wed, 31 Mar 2004 18:00:40 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 795BD43D2D for ; Wed, 31 Mar 2004 18:00:40 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i3120ebv065382 for ; Wed, 31 Mar 2004 18:00:40 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i3120e8s065381; Wed, 31 Mar 2004 18:00:40 -0800 (PST) (envelope-from gnats) Date: Wed, 31 Mar 2004 18:00:40 -0800 (PST) Message-Id: <200404010200.i3120e8s065381@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Kris Kennaway Subject: Re: kern/64971: A squid process larger than 3G X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Kris Kennaway List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Apr 2004 02:00:40 -0000 The following reply was made to PR kern/64971; it has been noted by GNATS. From: Kris Kennaway To: Wei-Kai Wu Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: kern/64971: A squid process larger than 3G Date: Wed, 31 Mar 2004 17:53:17 -0800 --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 31, 2004 at 02:44:41PM +0800, Wei-Kai Wu wrote: > >Description: > When running squid allocated more than 3G memory, the squid will crash. > I have tuned the kernel with MAXDSIZ=3D(3072UL*1024*1024) and KVA_PAGES= =3D192. >=20 > If I enlarged the MAXDSIZ > 3072, the system cannot boot with error messa= ge: > (after loading kernel, running init) > init in malloc(): error: recursive call > init in malloc(): error: recursive call > ... What you described is not squid crashing, but init. It sounds like you've adjusted the kernel parameters inappropriately, and that's what you need to fix. I don't know the solution off-hand, but check the mailing list archives for extensive discussion on how to tune kernel parameters for large-memory configurations. Be aware that what you're trying to do may be impossible - i.e. if you really need 3GB of RAM for squid, it sounds like it's being heavily used, and may therefore also require a lot of kernel memory to manage the network resources.q If you need more than 1GB of kernel memory, you're out of luck with only 4GB total. Kris --0OAP2g/MAC+5xKAE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAa3YMWry0BWjoQKURAjr8AJ91AE1Gi7WkMULAF6lBkccodZ2SHACdHjCK KUhhNEUw7enwqu7eCsaChX8= =PBO6 -----END PGP SIGNATURE----- --0OAP2g/MAC+5xKAE--