Re: Re: Error from xmalloc

From: <>
Date: Mon, 14 Apr 1997 16:09:40 +0200 (MESZ)

> >I'd installed squid-1.1.8 on a HP-UX B.10.20 E 9000/871 Box. The RAM-Size is
> >512 MB. After I had increased the default value of cache_mem to 120 MB I found
> >the following message neerly three times a hour:
> >Apr 11 11:58:30 d370-hrz squid[4577]: xmalloc: Unable to allocate 4096 bytes!
> >Apr 11 12:30:42 d370-hrz squid[5108]: xcalloc: Unable to allocate 4096
> you probably need to tune the kernel parameters maxdsiz and maxssiz.
> while you're at it, you probably also want to touch maxfiles. also,
> hpux has a dictator approach to buffer-cache management. you probably
> want to change the bufpages setting too.
> all these are from memory, and applied in the days of HP-UX 9.xx. i'm
> sure they apply equally to hpux10 though.
> maxdsiz is the maximum data size, probably should be set to amount of swap
> maxssiz is the maximum stack size.
> maxfiles is the number of file descriptors per process
> i always went on bufpages = 0.1 * RAM(mb) * 256
The parameter maxdsize (=67108864) seems to be responible for the restarts. The
amount of memory which has already been allocated by the squid process grows
until it reaches the value of maxdsize. Nevertheless if I choose 52 MB for
cache_mem (cache_mem_low 90, cache_mem_high 93) squid shows the same behavior.
Though I would expect that squid throw away "in-memory object data" when 46 MB
of memory have been allocated. (The same happens if I choose the default value
(8MB). The size still grows, but less rapidly.) Maybe this is a bug in HP-UX


    Frank Heckes
Received on Mon Apr 14 1997 - 07:22:37 MDT

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