*BSD News Article 83658


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news
From: Ken Bigelow <kbigelow@www.play-hookey.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: odd INN behavior
Date: Tue, 26 Nov 1996 19:06:34 +0000
Organization: Erol's Internet Services
Lines: 36
Message-ID: <329B3FBA.3AE0@www.play-hookey.com>
References: <5709o2$r7h@itchy.serv.net> <3297E882.6CE8@OntheNet.com.au>
Reply-To: kbigelow@www.play-hookey.com
NNTP-Posting-Host: kenjb05.play-hookey.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (Win16; U)

Tony Griffiths wrote:
> 
> Sean T. Lamont . wrote:
> >
> > I've been having INN behave oddly.
> >
> > Every so often, it will fail on a realloc() call, citing "cannot realloc
> > x bytes). x is usually in the range of 5-20 megabytes. This has been increasing
> > as of late, but the distressing thing is the allocation failure ; at the times
> > that it happens, there is usually 200-300 megabytes of swap available
> > on the system, and it's failing on 15M allocations?
> >
> > Has aybody seen this?
> >
> Yes, but not with INN!  In my case it was Squid (WWW cacheing proxy)
> that couldn't expand it's data segment VM.  The fix was to rebuild the
> kernel with the following options-
> 
> options         "MAXDSIZ=536870912"     #Maximum Data Segment size=512MB
> options         "DFLDSIZ=268435456"     #Default Data Segment size=256MB

Interesting. I recently added agent and referer logging to my site, and
found a few entries in agent_log that suggest that Squid is actually
being used twice or more. A typical entry showing this was:

Mozilla/3.0Gold (WinNT; I) via Squid Cache version 1.0.20 via Squid
Cache version 1.0.20 via Squid Cache version 1.0.18

If something is caching documents two or three times, it won't take long
to run out of memory!
-- 
Ken

Are you interested in   |
byte-sized education    |   http://www.play-hookey.com
over the Internet?      |