Search squid archive

[squid-users] Memory Utilization high and Squid is slow

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

My squid proxy is very slow as compared to cacheflow which is
configured as a failover.
Also squid eats up memory ::

[root@localhost root]#  free -m
             total       used       free     shared    buffers     cached
Mem:    1001        983         18          0        108        294
-/+ buffers/cache:        580        421
Swap:         1027         28        999
[root@localhost root]#

Free memory is only 18 MB out of 1 GB

Output of TOP ::
**************
 19:45:14  up 10 days, 16:25,  3 users,  load average: 1.06, 1.11, 1.08
100 processes: 98 sleeping, 2 running, 0 zombie, 0 stopped
CPU states:  cpu    user    nice  system    irq  softirq  iowait    idle
           total   25.4%    0.0%    2.6%   0.0%     0.0%    2.2%   69.5%
           cpu00  100.0%    0.0%    0.0%   0.0%     0.0%    0.0%    0.0%
           cpu01    0.0%    0.0%    2.5%   0.0%     0.0%    0.0%   97.4%
           cpu02    1.9%    0.0%    7.7%   0.0%     0.0%    4.1%   86.0%
           cpu03    0.0%    0.0%    0.3%   0.0%     0.0%    4.7%   94.8%
Mem:  1025424k av, 1009608k used,   15816k free,       0k shrd,  116416k buff
                    496012k actv,   97432k in_d,   14492k in_c
Swap: 1052216k av,   57496k used,  994720k free                  277972k cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME  CPU COMMAND
 1653 root          25   0   600   20     4 R                  24.6   
0.0     15344m  0   cmaperfd
29173 squid       15   0  214M 210M   840 S            3.5      21.0 
11:27      2    squid
 ***********************************

The %Memory by squid is 21.0


Squid configuration is as follows::
*************
http_port 8080

hierarchy_stoplist cgi-bin ?

acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

cache_mem 330 MB

cache_swap_low 90
cache_swap_high 92

maximum_object_size 8192 KB

maximum_object_size_in_memory 32 KB

cache_replacement_policy heap LFUDA

memory_replacement_policy heap LFUDA

cache_dir ufs /var/squid/cache 8000 18 256
cache_dir ufs /usr/local/squid/var/cache 2000 5 256
7cache_store_log none


auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
refresh_pattern ^ftp:		1440	20%	10080
refresh_pattern ^gopher:	1440	0%	1440
refresh_pattern .		0	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 to_localhost dst 127.0.0.0/8
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 manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports


http_access allow all

http_reply_access allow all

icp_access allow all

cache_effective_user squid

cache_effective_group squid

visible_hostname aaa-aaa

memory_pools off

coredump_dir /usr/local/squid/var/cache
***********************

Thanks,
Rahul


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux