From owner-freebsd-hackers Thu Apr 8 0:32:20 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from ewok.creative.net.au (ewok.creative.net.au [203.30.44.41]) by hub.freebsd.org (Postfix) with SMTP id C21DA15910 for ; Thu, 8 Apr 1999 00:32:13 -0700 (PDT) (envelope-from adrian@freebsd.org) Received: (qmail 5270 invoked by uid 1008); 8 Apr 1999 07:13:30 -0000 Message-ID: <19990408071330.5268.qmail@ewok.creative.net.au> From: adrian@freebsd.org To: freebsd-hackers@freebsd.org Cc: Markus Stumpf Subject: Re: squid and FreeBSD (was: Re: Nice FreeBSD mention) In-reply-to: Your message of "Thu, 08 Apr 1999 00:18:50 MST." <199904080718.AAA09117@apollo.backplane.com> Date: Thu, 08 Apr 1999 15:13:29 +0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Matthew Dillon writes: > >:"top" says >: >: PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND >: 8542 root 2 -15 204M 177M select 60:27 0.00% 0.00% squid >: >:>From that point I would imagine that 256 MB RAM is enough to fit in >:squid and - with about 50 megs left - some other processes. > > I'm not familiar with squid. Why is it eating 204M of VM? If that > is programmable, simply reduce it to 150M. > > FreeBSD can't give over all of its physical memory to a process. It > needs memory for kernel buffers and file caching. It *especially* > needs memory for kernel buffers in a network-heavy setup. > > Turning off swap in this case will cause the machine to lockup when > it runs out of memory -- probably not what you want. > Drop your cache_mem to something really small if possible. Let the OS do the file buffering and you'll find it should swap less. If squid starts complaining the cache_mem is way way too small, its time for FreeBSD is probably paging out unused pages in squid, and since most of squids footprint will be the cache object database, on a busy squid it will result in lots of pageins, causing degraded performance. Adrian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message