Re: [squid-users] Memory usage (I know it's been up before.. tricky business)

From: Martin Svensson <martinsvensson99@dont-contact.us>
Date: Wed, 21 Apr 2004 00:42:22 -0700 (PDT)

--- Denis Vlasenko
<vda@port.imtp.ilyichevsk.odessa.ua> wrote:
> On Wednesday 21 April 2004 09:16, Martin Svensson
> wrote:
> > Hey all squid gurus!
> >
> > We have a cache to which 6000-7000 clients are
> > connecting to (2.5STABLE5). On a typical day we
> are
> > handling 70-100 requests/sec and 8-11Mbit in
> network
> > usage.
> >
> > The problem I am experiencing is that the machine
> > starts to swap (performance is still good though).
> We
> > have a cache of 90GB, 3GB of memory and cache_mem
> is
> > set to 128MB. We are caching quite large files to
> > speed up frequent downloads (up to 100MB files).
> >
> > Acccording to the FAQ, this setup should use:
> > 90GB cache = 900MB
> > cache_mem = +128MB
> > Add. mem = +20MB
> > Total recommended: 1048MB x 2 = 2096MB.
> >
> > I still have 1GB left of memory. No other memory
> > intense applications are running on this server
> and
> > still it swaps out as much as 600-700MB before I
> > manually restart the cache. It's running on RHEL
> 3.0.
> >
> > Any hints are appreciated. If more info is needed,
> > just let me know. I just don't see the reason to
> why
> > it swaps out so much.
>
> /proc/meminfo, top, etc?

/proc/meminfo
---------------
        total: used: free: shared: buffers:
cached:
Mem: 3169054720 3149389824 19664896 0
728629248 1696555008
Swap: 1428824064 205070336 1223753728
MemTotal: 3094780 kB
MemFree: 19204 kB
MemShared: 0 kB
Buffers: 711552 kB
Cached: 1477108 kB
SwapCached: 179684 kB
Active: 2348472 kB
ActiveAnon: 694016 kB
ActiveCache: 1654456 kB
Inact_dirty: 562748 kB
Inact_laundry: 14012 kB
Inact_clean: 14308 kB
Inact_target: 587908 kB
HighTotal: 2228200 kB
HighFree: 1780 kB
LowTotal: 866580 kB
LowFree: 17424 kB
SwapTotal: 1395336 kB
SwapFree: 1195072 kB
HugePages_Total: 0
HugePages_Free: 0
Hugepagesize: 2048 kB
-----------
free
-----------
             total used free shared
buffers cached
Mem: 3094780 3073364 21416 0
 708812 1477084
-/+ buffers/cache: 887468 2207312
Swap: 1395336 200264 1195072
-----------

The buffer/cache is utilizing quite a lot of memory,
but I always thought they were using spare memory in
some way for it's allocation. Perhaps this isn't the
case?

Thanks!
//M

        
                
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash
Received on Wed Apr 21 2004 - 01:42:27 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Apr 30 2004 - 12:00:02 MDT