RE: [squid-users] cache/mem ratio ok but swap grows

From: Stuart Clark <[email protected]>
Date: Fri, 18 Apr 2003 08:34:18 +1000

Henrik or others,

I really want to enlarge my storage from 28 gig to 50 gig but are unsure
whether the memory figures I'm getting at the moment will let me.

Can I go to 50 gig without locking up?

Top sorted by mem usage.

I'm running RedHat 7.3

Machine config, squid.conf and mrtg below.

Kind Regards

Stuart Clark (RHCE)

7:21am up 34 days, 22:38, 2 users, load average: 0.15, 0.09, 0.02
42 processes: 39 sleeping, 3 running, 0 zombie, 0 stopped
CPU states: 0.3% user, 1.1% system, 0.0% nice, 98.4% idle

  PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
 3708 squid 15 0 279M 216M 180M R 0.7 43.0 170:51 squid
26473 named 18 0 11168 10M 3368 S 0.0 2.0 0:00 named
26475 named 15 0 11168 10M 3368 S 0.0 2.0 0:00 named
26476 named 15 0 11168 10M 3368 S 0.0 2.0 28:49 named
26477 named 15 0 11168 10M 3368 S 0.0 2.0 0:37 named
26478 named 15 0 11168 10M 3368 S 0.0 2.0 3:49 named
19704 root 15 0 1316 1116 1068 S 0.0 0.2 0:00 bash
19703 root 15 0 1300 1040 1040 R 0.0 0.2 0:00 sshd
 1127 mail 15 0 1184 1032 976 S 0.0 0.2 0:08 exim
25192 root 15 0 984 984 792 R 0.5 0.1 0:00 top
 1281 root 15 0 1260 888 888 S 0.0 0.1 0:00 bash
 3706 root 17 0 976 808 808 S 0.0 0.1 0:00 squid
 1107 root 15 0 828 748 676 S 0.0 0.1 1:29 xinetd
 1074 root 16 0 820 636 636 S 0.0 0.1 0:06 sshd
 1210 root 16 0 836 616 616 S 0.0 0.1 0:00 login
 1147 root 15 0 612 568 528 S 0.0 0.1 0:00 crond
  826 root 15 0 572 524 484 S 0.0 0.1 0:31 syslogd
 1204 root 15 0 544 512 496 S 0.0 0.0 0:03 rhnsd
 1184 daemon 15 0 544 492 492 S 0.0 0.0 0:00 atd
    1 root 15 0 472 436 412 S 0.0 0.0 0:04 init
  972 root 15 0 468 412 412 S 0.0 0.0 0:00 apmd
  831 root 15 0 432 372 372 S 0.0 0.0 0:00 klogd
 1211 root 16 0 392 340 340 S 0.0 0.0 0:00 mingetty
 1212 root 16 0 392 340 340 S 0.0 0.0 0:00 mingetty
 1213 root 16 0 396 340 340 S 0.0 0.0 0:00 mingetty
 1214 root 16 0 396 340 340 S 0.0 0.0 0:00 mingetty
 1215 root 16 0 396 340 340 S 0.0 0.0 0:00 mingetty
 3709 squid 15 0 324 304 276 S 0.0 0.0 0:59 unlinkd

You can see it here on my extensive mrtg graphs at

http://mrtg.spacelink.com.au/cache_server.html

Username: squidusers

Password: cache

> > Machine Specifications
> >
> > Celeron 1.2 GHZ
> > 512 RAM
> > 1 x scsi 4 GIG (ext3)
> > 1 x ATA100 70 GIG (ext3)
> > Redhat 7.3
> > squid-2.4.STABLE6-6.7.3.rpm
> > bind-9.2.1-1.7x.2
> > vmlinuz-2.4.18-26.7.x
> > Swap space 1 gig
> > Total size of cache storage 28gig
> >
>
> > My squid box is running about 55 gig of traffic per month
> >
> > The CPU runs at 2% or less
> >
> > [root@proxy root]# cat /etc/squid/squid.conf | grep -v ^# | grep -v
> > ^$
> >
> > http_port 3128
> > hierarchy_stoplist cgi-bin ?
> > acl QUERY urlpath_regex cgi-bin ?
> > no_cache deny QUERY
> > cache_mem 32 MB
> > cache_swap_low 35
> > cache_swap_high 40
> > maximum_object_size 10000 KB
> > maximum_object_size_in_memory 8 KB
> > cache_dir ufs /cache 4800 16 256
> > cache_dir ufs /cache3 73000 16 256
> > cache_access_log /var/log/squid/access.log
> > acl PURGE method PURGE
> > acl snmppublic snmp_community public
> > acl taz src XXX.XXX.XXX.XXX/255.255.255.255
> > acl spacelink src XXX.XXX.XXX.XXX/255.255.255.0
> > acl all src 0.0.0.0/0.0.0.0
> > acl manager proto cache_object
> > acl localhost src 127.0.0.1/255.255.255.255
> > acl SSL_ports port 443 563
> > acl Safe_ports port 80 # http
> > acl Safe_ports port 21 # ftp
> > acl Safe_ports port 443 563 # https, snews
> > acl Safe_ports port 70 # gopher
> > acl Safe_ports port 210 # wais
> > acl Safe_ports port 1025-65535 # unregistered ports
> > acl Safe_ports port 280 # http-mgmt
> > acl Safe_ports port 488 # gss-http
> > acl Safe_ports port 591 # filemaker
> > acl Safe_ports port 777 # multiling http
> > acl CONNECT method CONNECT
> > http_access allow spacelink
> > http_access allow PURGE localhost
> > http_access allow manager localhost
> > http_access deny manager
> > http_access deny !Safe_ports
> > http_access deny CONNECT !SSL_ports
> > http_access allow localhost
> > http_access deny PURGE
> > http_access deny all
> > icp_access allow all
> > httpd_accel_host virtual
> > httpd_accel_port 80
> > httpd_accel_with_proxy on
> > httpd_accel_uses_host_header on
> > snmp_port 3401
> > snmp_access allow snmppublic taz
> > snmp_incoming_address 0.0.0.0
> > snmp_outgoing_address 255.255.255.255

-----Original Message-----
From: Henrik Nordstrom [mailto:hno@squid-cache.org]
Sent: Friday, 18 April 2003 7:26 AM
To: Stuart Clark; squid-users@squid-cache.org
Subject: Re: [squid-users] cache/mem ratio ok but swap grows

On Thursday 17 April 2003 16.02, Stuart Clark wrote:
> So if the amount of memory used by squid is calculated as squid
> needs it why is my swap and ram growing with my current spec's?

What does Squid say about it's memory usage?

What OS are you running on?

-- 
Donations welcome if you consider my Free Squid support helpful.
https://www.paypal.com/xclick/business=hno%40squid-cache.org
If you need commercial Squid support or cost effective Squid or
firewall appliances please refer to MARA Systems AB, Sweden
http://www.marasystems.com/, [email protected]
Received on Thu Apr 17 2003 - 16:34:35 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:15:01 MST