kern/64971: A squid process larger than 3G

Kris Kennaway kris at obsecurity.org
Wed Mar 31 18:00:40 PST 2004


The following reply was made to PR kern/64971; it has been noted by GNATS.

From: Kris Kennaway <kris at obsecurity.org>
To: Wei-Kai Wu <wkwu at csie.nctu.edu.tw>
Cc: FreeBSD-gnats-submit at 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--


More information about the freebsd-bugs mailing list