Search squid archive

Re: Tuning problem in squid

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

 



Hi,
I have done everything which is said by Kinke,
the problem has little bit rectified.
i.e. it is comparatively good but if clients are using new sites(other
than in cache) it is slow.

My squid -v is as follows

innovation@innovation:~$ squid -v
Squid Cache: Version 2.6.STABLE18
configure options:  '--prefix=/usr' '--exec_prefix=/usr'
'--bindir=/usr/sbin' '--sbindir=/usr/sbin'
'--libexecdir=/usr/lib/squid' '--sysconfdir=/etc/squid'
'--localstatedir=/var/spool/squid' '--datadir=/usr/share/squid'
'--enable-async-io' '--with-pthreads'
'--enable-storeio=ufs,aufs,coss,diskd,null' '--enable-linux-netfilter'
'--enable-arp-acl' '--enable-epoll'
'--enable-removal-policies=lru,heap' '--enable-snmp'
'--enable-delay-pools' '--enable-htcp' '--enable-cache-digests'
'--enable-underscores' '--enable-referer-log' '--enable-useragent-log'
'--enable-auth=basic,digest,ntlm' '--enable-carp'
'--enable-follow-x-forwarded-for' '--with-large-files'
'--with-maxfd=65536' 'i386-debian-linux'
'build_alias=i386-debian-linux' 'host_alias=i386-debian-linux'
'target_alias=i386-debian-linux' 'CFLAGS=-Wall -g -O2'
'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS='



Here i am  pasting my squid.conf file (ecerpt)

http_port 127.0.0.1:3128
http_port 192.168.1.6:3128 transparent
cache_effective_user proxy
cache_effective_group proxy
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
 cache_mem 48 MB
maximum_object_size 8192 KB
fqdncache_size 2048
 cache_dir ufs /var/spool/squid 1000 16 256
access_log /var/log/squid/access.log squid
debug_options ALL,1
 log_fqdn off
hosts_file /etc/hosts
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern .               0       20%     4320
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 Safe_ports port 465
acl Safe_ports port 143
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl our_networks src 192.168.1.0/24
acl ceo src 192.168.1.8
acl ceo src 192.168.1.35
acl normal_users src 192.168.1.159 192.168.1.160 192.168.1.161 192.168.1.162
acl filetype url_regex -i .exe .mp3 .vqf .tar.gz .gz .rpm .zip .rar
.avi .mpeg .mpe .mpg .qt .ram .rm .iso .raw .wav .mov .mp4 .msi
delay_pools 1
delay_class 1 2
delay_parameters 1 -1/-1 100/6000
delay_access 1 allow  filetype normal_users
http_access  allow  our_networks
http_access allow ceo
http_access allow normal_users
http_access deny !normal_users
http_access deny normal_users bannedsites
http_access allow localhost
http_access allow ceo
http_access allow our_networks
http_access deny all
http_reply_access allow all
 cache_effective_user proxy
cache_effective_group proxy
visible_hostname innovation
cache_mgr       tech_support@xxxxxxxxxxx
coredump_dir /var/spool/squid
redirector_bypass on
redirect_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf
redirect_children 10
 pipeline_prefetch on


On Fri, Jun 12, 2009 at 8:00 PM, Kinkie <gkinkie@xxxxxxxxx> wrote:
>
> On Fri, Jun 12, 2009 at 4:01 PM, Thanigairajan<methanigai@xxxxxxxxx> wrote:
> > Hi ,
> >
> > I am facing some performance issues in squid .
> >
> > i.e. I have Debian etch with squid,squidguard,shorewall.
> > Internet is  working in normal speed if clients are approx 50 .
> > If clients are approx 70 -100 it is getting very slow.
> >
> > I googled for tuning and done the following things,
> > redirect_children 10
> > cache_dir ufs /var/spool/squid 1000 16 256
>
> ufs is definitely not suited for anything but testing. Please try aufs instead.
>
> > cache_mem 48 MB
>
> 48Mb of cache_mem on a 4gb server? This could definitely be raised.
>
> > pipeline_prefetch on
> > fqdncache_size 2048
> > maximum_object_size 8192 KB
> >
> > Can you please suggest me how can i improve  much ?
> >
> > FYI : We have Leased line .so we are getting constant bandwidth.
> > We are running the server in desktop HP Compaq with 4GB RAM, Core2Duo
>
> Unless your issues can be solved by these simple hints, we need to
> have more informations, such as the output from "squid -v" and a more
> complete configuration excerpt.
>
> --
>    /kinkie



--
Thanks & Regards
MThanigairajan

The Most Certain Way To Succeed Is To Try One More Time

         -- By Edison


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

  Powered by Linux