Search squid archive

Re: worse performance with cache_dir on

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

 



I have an ATA ST3250310AS, which I believe is 7200 RPM.
My current drive is as follows:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda5              4956284   1483764   3216688  32% /
/dev/sda3              4956316    305608   4394876   7% /var
/dev/sda2            226042032    191956 214182472   1% /home
/dev/sda1                77749     17117     56618  24% /boot
tmpfs                   475284         0    475284   0% /dev/shm

My current squid.conf shows:
auth_param basic realm ProxyPlayer proxy server
auth_param basic credentialsttl 2 hours
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd
authenticate_cache_garbage_interval 1 hour
authenticate_ip_ttl 2 hours


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
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
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 Safe_ports port 1863         # MSN messenger
acl ncsa_users proxy_auth REQUIRED
acl maxuser max_user_ip -s 2
acl CONNECT method CONNECT

http_access allow ncsa_users
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny to_localhost
http_access deny maxuser
http_access allow localhost
http_access deny all

icp_access allow all

http_port 8080
hierarchy_stoplist cgi-bin ?

#cache_dir ufs /var/spool/squid 100 16 256
#cache_dir ufs /home/squidcache 80000 16 256
#cache_die aufs /home/squidcache 8000 16 256

access_log /var/log/squid/access.log squid

acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY

refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern .               0       20%     4320

log_icp_queries on


--------------------------------------------------
From: "Jeff Pang" <pangj@xxxxxxxx>
Sent: Friday, August 21, 2009 3:55 PM
To: <squid-users@xxxxxxxxxxxxxxx>
Subject: Re:  worse performance with cache_dir on

use aufs instead if you are under Linux, otherwise use diskd for
cache_dir.
also a fast disk is helpful much (like a SAS disk with 15000 rpm).

2009/8/21 J Webster <webster_jack@xxxxxxxxxxx>:
What are some troubleshooting things to look for with squid performance?
I mainly use it to allow users to stream video content but when the
cache_dir is on it seems to perform worse than when off. When on the
video
pauses to buffer fairly frequently but not when the cahe_dir is off. This
shouldn't really be the case should it? Or is it the fact that it's
streaming content that might cause an issue?
My cache_dir was set to cache_dir ufs /home/squidcache 80000 16 256



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

  Powered by Linux