Re: xmalloc: Unable to allocate 4536 bytes!

From: Dancer <dancer@dont-contact.us>
Date: Wed, 08 Apr 1998 18:15:41 +1000

Mart Norman wrote:
>
> Hi!
>
> I keep getting messages like this:
>
> Apr 8 10:15:58 cache2 squid[8172]: xmalloc: Unable to allocate 4536 bytes!
> Apr 8 10:17:05 cache2 /kernel: pid 8172 (squid), uid 65534: exited on signal 6
> Apr 8 10:17:16 cache2 squid[8293]: Starting Squid Cache version 1.NOVM.20 for i386-unknown-free
> bsd2.2.5...
> Apr 8 10:17:17 cache2 squid[8293]: Ready to serve requests.
> Apr 8 10:19:35 cache2 squid[8293]: xmalloc: Unable to allocate 8192 bytes!
> Apr 8 10:20:54 cache2 /kernel: pid 8293 (squid), uid 65534: exited on signal 6
> Apr 8 10:21:06 cache2 squid[8361]: Starting Squid Cache version 1.NOVM.20 for i386-unknown-free
> bsd2.2.5...
> Apr 8 10:21:07 cache2 squid[8361]: Ready to serve requests.
>
> and it makes squid practically unusable. Does anybody know what can cause
> it?
>
> squid runs on P200 64M RAM, 6GB HDD from which 5GB for cache and OS
> is FreeBSD 2.2.5
>
> I understand if it runs out of RAM but as far as I understand it should
> use then swap, which I have 300M configured and I've never seen it's been
> more used than 10-15%

FreeBSD has a kernel tweakable which limits the maximum data-segment
size of a process. I think that's probably what's biting you. Check back
through the mailing list archives. There's a message there that details
what to look for and change. I think the kernel default limits a process
to 32MB.

D
Received on Wed Apr 08 1998 - 01:29:00 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:39:37 MST