Re: squid-users-digest Digest V96 #35

From: Peter Matthews <pjmatt@dont-contact.us>
Date: Fri, 25 Oct 1996 14:36:57 +0930 (CST)

> From: Kelly Shubert <kellysh@connect.ab.ca>
> To: squid-users@nlanr.net
> Subject: squid terminating abnormally
> Message-Id: <2.2.32.19961022193916.00736c48@206.75.40.10>
> Content-Type: text/plain; charset="us-ascii"
> MIME-Version: 1.0
>
> Sorry to duplicate, it also dumps a 67MB core
>
> I get this message appearing in my cache.log file..
>
> FATAL: xmalloc: Unable to allocate 4096 bytes!
>
> Squid version 1.1.beta8 terminates abnormally, and sporadically too! It can
> be anywhere from 2 hours to 24 hours...
>
> It looks to me like I'm running out of memory, but I've set datasize to
> unlimited and I have 128MB of ram in my P166 BSDI 2.1 Server...
>
> Any ideas? I've already compiled with the malloc.h out of FreeBSD 2.2
> and it made no difference...
>
> This happened with both 1.0.5 and the latest beta..

I had a similar problem running squid on BSDI initially. You're
right - basically, your problem is that you are running out of RAM or
haven't allocated sufficient RAM resources to your squid process.

In BSDI 2.1, I defined the following in the kernel config file:

        options "KMEMSIZE=\(16*1024*1024\)"
        options "DFLDSIZ=\(64*1024*1024\)"
        options "DFLSSIZ=\(4*1024*1024\)"
        options "MAXDSIZ=\(96*1024*1024\)"

..and then recompiled the kernel. This was for a box which is a dedicated
proxy server with 128Mb RAM.

Before I start squid, I run

        unlimit datasize
        limit maxproc 2048
        limit openfiles 4096

in the same script that starts squid.

My guess in your case is that although you may have unlimited the datasize,
your max datasize may still be too small. Try recompiling the kernel
with a greater max datasze (not sure how you'd do this with linux
offhand), or reduce the cache_mem size in squid.conf.

Cheers,

 Peter Matthews - Network Manager - pjmatt@dove.net.au
   ,- __ -,
  / \___/ /__ _ _____/ \ "To err is human - to really
 / _ / _ / _ \ |/ / -_) _ \ screw things up requires the
/.- \_,_/\___/___/\__/ -.\ root password"
       A U S T R A L I A "Carpe Carpem-Seize the Fish"
      http://dove.net.au #include <std_disclaimer.h>
Received on Thu Oct 24 1996 - 22:07:03 MDT

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