[squid-users] Any way to stop squid from using too much memory

From: Edward <edward@dont-contact.us>
Date: Sun, 29 Apr 2001 09:28:25 -0400

Hi Henrick!

Is there any way that I can stop squid from using to much memory?

I have redhat 7.0 kernel 2.2.17, squid 2.4 Stable (lastest snapshot), 192MB, 2 9Gb UW SCSI HD (partition into 4MB partitions).

I am also using the GNU Malloc lib.

Right now my squid is at also most 100MB.

My system swap is almost : 20MB

                            TOP results:
  9:25am up 15:37, 1 user, load average: 0.26, 0.19, 0.18
55 processes: 52 sleeping, 3 running, 0 zombie, 0 stopped
CPU states: 24.0% user, 36.9% system, 0.0% nice, 39.0% idle
Mem: 191684K av, 188460K used, 3224K free, 12744K shrd, 17388K buff
Swap: 40120K av, 17736K used, 22384K free 14584K cached

                                Cachemgr.cgi
Squid Object Cache: Version 2.4.STABLE1

      Start Time: Sat, 28 Apr 2001 21:49:16 GMT
      Current Time: Sun, 29 Apr 2001 13:28:07 GMT

Connection information for squid:
        Number of clients accessing cache: 252
        Number of HTTP requests received: 243839
        Number of ICP messages received: 6743
        Number of ICP messages sent: 9332
        Number of queued ICP replies: 0
        Request failure ratio: 0.00%
        HTTP requests per minute: 259.7
        ICP messages per minute: 17.1
        Select loop called: 115751263 times, 0.487 ms avg
Cache information for squid:
        Request Hit Ratios: 5min: 55.7%, 60min: 52.0%
        Byte Hit Ratios: 5min: 34.1%, 60min: 33.5%
        Request Memory Hit Ratios: 5min: 1.5%, 60min: 2.9%
        Request Disk Hit Ratios: 5min: 27.4%, 60min: 34.1%
        Storage Swap size: 15155700 KB
        Storage Mem size: 8180 KB
        Mean Object Size: 12.55 KB
        Requests given to unlinkd: 0
Median Service Times (seconds) 5 min 60 min:
        HTTP Requests (All): 0.94847 0.94847
        Cache Misses: 2.79397 2.79397
        Cache Hits: 0.00000 0.00000
        Near Hits: 1.91442 1.91442
        Not-Modified Replies: 0.00000 0.00000
        DNS Lookups: 0.00000 0.00000
        ICP Queries: 0.00000 0.00000
Resource usage for squid:
        UP Time: 56330.701 seconds
        CPU Time: 21168.150 seconds
        CPU Usage: 37.58%
        CPU Usage, 5 minute avg: 34.26%
        CPU Usage, 60 minute avg: 37.85%
        Maximum Resident Size: 0 KB
        Page faults with physical i/o: 18303
Memory usage for squid via mstats():
        Total space in arena: 140116 KB
        Total free: 5600 KB 4%
Memory accounted for:
        Total accounted: 99520 KB
        memPoolAlloc calls: 37612796
        memPoolFree calls: 33958649
File descriptor usage for squid:
        Maximum number of file descriptors: 8192
        Largest file desc currently in use: 183
        Number of file desc currently in use: 150
        Files queued for open: 0
        Available number of file descriptors: 8042
        Reserved number of file descriptors: 100
        Store Disk files open: 0
Internal Data Structures:
        1207626 StoreEntries
          1062 StoreEntries with MemObjects
          1012 Hot Object Cache Items
        1207558 on-disk objects

Squid.conf:

http_port 200.50.68.7:3128
http_port 209.198.221.162:8080

icp_port 3130

httpd_accel_port 80

httpd_accel_host virtual

httpd_accel_with_proxy on

httpd_accel_uses_host_header on

#cache_peer proxy1.interpacket.net parent 3128 3130

query_icmp on

#tcp_outgoing_address 209.198.221.162

forwarded_for on

cache_mem 8 MB

memory_pools off

maximum_object_size 12288 KB

cache_swap_high 100

cache_swap_low 95

#store_dir_select_algorithm round-robin

ipcache_size 1024

ipcache_low 95

ipcache_high 100

dns_retransmit_interval 3 seconds

negative_ttl 1 minute

negative_dns_ttl 1 minute

dns_nameservers 200.50.68.5 200.50.68.6 205.214.192.201

redirect_children 20

refresh_pattern ^ftp: 1440 20% 10080

refresh_pattern ^gopher: 1440 0% 1440

refresh_pattern . 30 20% 4320

half_closed_clients off

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 21 443 563 70 210 1025-65535

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 manager localhost

http_access deny manager

http_access deny !Safe_ports

http_access deny CONNECT !SSL_ports

http_access allow all

icp_access allow all

miss_access allow all

cache_mgr cacher@cariaccess.com

cache_effective_user squid

cache_effective_group squid

visible_hostname cacbdscachesrvr

append_domain .cariaccess.com

wccp_router 0.0.0.0

wccp_version 4

cache_store_log none

cache_access_log /dev/null

#cache_log /dev/nullid

#cache_access_log /usr/local/squid/logs/access.log

cache_log /usr/local/squid/logs/cache.log

mime_table /usr/local/squid/etc/mime.conf

icon_directory /usr/local/squid/etc/icons

error_directory /usr/local/squid/etc/errors

prefer_direct on

cache_replacement_policy lru

memory_replacement_policy heap LFUDA

cache_dir diskd /cache0 4000 9 256 Q1=72 Q2=64

cache_dir diskd /cache1 4000 9 256 Q1=72 Q2=64

cache_dir diskd /cache2 4000 9 256 Q1=72 Q2=64

cache_dir diskd /cache3 4000 9 256 Q1=72 Q2=64

# Delay Pools

delay_pools 1

delay_class 1 2

acl wireless src 200.50.68.33-200.50.68.63

acl ASB src 200.50.68.10

delay_access 1 allow wireless

delay_access 1 allow ASB

delay_access 1 deny ALL

delay_parameters 1 25000/25000 12500/13750

Thank you very much.

Best regards,
 
Edward Millington
(Network Administrator & Senior Technical Support Technician)
Cariaccess Communications Ltd.
Wildey
St. Michael
Barbados
1-246-430-7435
Fax : 1-246-431-0170
www.cariaccess.com
Received on Sun Apr 29 2001 - 07:28:21 MDT

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