[squid-users] Re: slow browsing in centos 6.3 with squid 3 !!

From: Ahmad <ahmed.zaeem_at_netstream.ps>
Date: Sat, 23 Feb 2013 05:26:09 -0800 (PST)

Hi mr Amos ,
ive installed libcap2 already in centos 6.3
[root_at_squid ~]# yum install libcap
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: ftp.hosteurope.de
 * extras: ftp.hosteurope.de
 * updates: ftp.hosteurope.de
base
| 3.7 kB 00:00
extras
| 3.5 kB 00:00
updates
| 3.5 kB 00:00
Setting up Install Process
Package libcap-2.16-5.5.el6.x86_64 already installed and latest version
Nothing to do
[root_at_squid ~]#

==================================
do u mean i need to set option while comoiling squid ??

i have another question :
i have alot of errors after i loaded about 1000 users with 130 M to squid :
here is it from cache.log

#############################
{Accept: */*
Content-Type: application/x-www-form-urlencoded
2013/02/23 08:20:29.001| WARNING: HTTP header contains NULL characters
{Accept: */*
Content-Type: application/x-www-form-urlencoded}
NULL
{Accept: */*
Content-Type: application/x-www-form-urlencoded
2013/02/23 08:20:30.001| WARNING: Closing client x.x.x.x connection due to
lifetime timeout
2013/02/23 08:20:30.001| http://www.bing.com/
2013/02/23 08:20:30.001| WARNING: HTTP header contains NULL characters
{Accept: */*
Content-Type: application/x-www-form-urlencoded}
NULL
{Accept: */*
Content-Type: application/x-www-form-urlencoded
2013/02/23 08:20:30.001| WARNING: HTTP header contains NULL characters
{Accept: */*
Content-Type: application/x-www-form-urlencoded}
NULL
{Accept: */*
Content-Type: application/x-www-form-urlencoded
2013/02/23 08:20:30.001| WARNING: HTTP header contains NULL characters
{Accept: */*
Content-Type: application/x-www-form-urlencoded}
NULL
{Accept: */*
Content-Type: application/x-www-form-urlencoded
2013/02/23 08:20:30.001| WARNING: HTTP header contains NULL characters
{Accept: */*
Content-Type: application/x-www-form-urlencoded}
NULL
{Accept: */*
Content-Type: application/x-www-form-urlencoded
2013/02/23 08:20:30.001| WARNING: HTTP header contains NULL characters
{Accept: */*
Content-Type: application/x-www-form-urlencoded}
NULL
{Accept: */*
Content-Type: application/x-www-form-urlencoded
2013/02/23 08:20:30.001| WARNING: HTTP header contains NULL characters
{Accept: */*
Content-Type: application/x-www-form-urlencoded}
NULL
{Accept: */*
Content-Type: application/x-www-form-urlencoded
2013/02/23 08:20:30.001| WARNING: HTTP header contains NULL characters
{Accept: */*
Content-Type: application/x-www-form-urlencoded}
NULL
{Accept: */*
Content-Type: application/x-www-form-urlencoded
2013/02/23 08:20:30.001| WARNING: HTTP header contains NULL characters
{Accept: */*
Content-Type: application/x-www-form-urlencoded}
NULL
{Accept: */*
Content-Type: application/x-www-form-urlencoded
2013/02/23 08:20:30.001| WARNING: HTTP header contains NULL characters
{Accept: */*
Content-Type: application/x-www-form-urlencoded}
NULL
{Accept: */*
Content-Type: application/x-www-form-urlencoded
2013/02/23 08:20:30.001| WARNING: HTTP header contains NULL characters
{Accept: */*
Content-Type: application/x-www-form-urlencoded}
NULL
{Accept: */*
Content-Type: application/x-www-form-urlencoded
2013/02/23 08:20:31.001| WARNING: Closing client x.x.x.x connection due to
lifetime timeout
2013/02/23 08:20:31.001| http://www.bing.com/
2013/02/23 08:20:31.001| WARNING: HTTP header contains NULL characters
{Accept: */*
Content-Type: application/x-www-form-urlencoded}
NULL
{Accept: */*
Content-Type: application/x-www-form-urlencoded
2013/02/23 08:20:31.001| WARNING: HTTP header contains NULL characters
{Accept: */*
Content-Type: application/x-www-form-urlencoded}
NULL
{Accept: */*
Content-Type: application/x-www-form-urlencoded
2013/02/23 08:20:31.001| WARNING: HTTP header contains NULL characters
{Accept: */*
Content-Type: application/x-www-form-urlencoded}
NULL
{Accept: */*
Content-Type: application/x-www-form-urlencoded
2013/02/23 08:20:31.001| WARNING: HTTP header contains NULL characters
{Accept: */*
Content-Type: application/x-www-form-urlencoded}
NULL
{Accept: */*
Content-Type: application/x-www-form-urlencoded
2013/02/23 08:20:31.001| WARNING: HTTP header contains NULL characters
{Accept: */*
Content-Type: application/x-www-form-urlencoded}
NULL
{Accept: */*
Content-Type: application/x-www-form-urlencoded
2013/02/23 08:20:31.001| WARNING: HTTP header contains NULL characters
{Accept: */*
Content-Type: application/x-www-form-urlencoded}
NULL
{Accept: */*
Content-Type: application/x-www-form-urlencoded
2013/02/23 08:20:31.001| WARNING: HTTP header contains NULL characters
{Accept: */*
Content-Type: application/x-www-form-urlencoded}
NULL
{Accept: */*
Content-Type: application/x-www-form-urlencoded
2013/02/23 08:20:31.001| WARNING: HTTP header contains NULL characters
{Accept: */*
Content-Type: application/x-www-form-urlencoded}
NULL
{Accept: */*
################################################
here is my squid.conf file after some preparing :
[root_at_squid ~]# cat /etc/squid/squid.conf | less
#
#
#
#
###################
acl all src all
acl manager proto cache_object
acl localnet src 192.168.1.0/24 x.x.0.0/16 x.x.0.0/16
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 590 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
#Default:\
visible_hostname squid
coredump_dir /var/spool/squid
####squidguard###################
redirect_program /usr/local/bin/squidGuard -c
/usr/local/squidGuard/squidGuard.conf
redirect_children 300
cache_effective_user squid
cache_effective_group squid
##############################
#Recommended minimum configuration:
#
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access allow localnet
http_access deny manager
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports
# And finally deny all other access to this proxy
http_access deny all
#Allow ICP queries from everyone
icp_access allow all
hierarchy_stoplist cgi-bin ?
#####################
#######################################
access_log /var/log/squid/access.log
cache_dir aufs /cache1 500000 32 256
cache_dir aufs /cache2 500000 32 256
cache_dir aufs /cache3 500000 32 256
cache_mem 2000 MB
#access_log none
#cache_store_log none
##########################
http_port 127.0.0.1:3128
http_port x.x.x.x:65000
http_port 3128
http_port 3129 tproxy
########### Performance Related Config:
hierarchy_stoplist cgi-bin ?
forwarded_for off
half_closed_clients off
relaxed_header_parser on
reload_into_ims on
quick_abort_min 0 KB
quick_abort_max 0 KB
client_lifetime 15 minutes
read_timeout 5 minutes
request_timeout 1 minutes
ie_refresh on
vary_ignore_expire on
##########################################
maximum_object_size_in_memory 64 KB
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
###########################################
ipcache_size 2048
ipcache_low 98
ipcache_high 99
memory_pools off
pipeline_prefetch on
############################################
httpd_suppress_version_string on
server_persistent_connections on
client_persistent_connections on
pconn_timeout 2 minutes
persistent_request_timeout 1 minute
###########################################
#### drx
#via off
visible_hostname squid
#memory_cache_shared off
########### WCCP2 Config:
wccp2_router x.x.x.x
wccp_version 2
wccp2_forwarding_method 2
wccp2_return_method 2
#wccp2_assignment_method mask
wccp2_service dynamic 80
wccp2_service_info 80 protocol=tcp flags=src_ip_hash priority=240 ports=80
wccp2_service dynamic 90
wccp2_service_info 90 protocol=tcp flags=dst_ip_hash,ports_source
priority=240 ports=80
##########################################
###########################################
#default option
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
#################################################
hierarchy_stoplist cgi-bin ?
forwarded_for on
half_closed_clients off
#persistent_request_timeout 2 minutes
max_filedescriptors 65536
max_open_disk_fds 65536
relaxed_header_parser on
reload_into_ims on
client_lifetime 15 minutes
read_timeout 5 minutes
request_timeout 1 minutes
#extension_methods NICK
ie_refresh on
ignore_expect_100 on
vary_ignore_expire on
###############################
################################
httpd_suppress_version_string on
server_persistent_connections on
client_persistent_connections on
pconn_timeout 2 minutes
persistent_request_timeout 1 minute
shutdown_lifetime 20 seconds
#############################
cache_swap_low 98
cache_swap_high 99
cache_replacement_policy heap LFUDA
#request_header_max_size 2048 KB
#minimum_object_size 512 bytes
#maximum_object_size 5 GB
minimum_object_size 0
maximum_object_size 135128 kB
negative_ttl 0 seconds
###############################
fstab file :
[root_at_squid ~]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Thu Feb 21 10:05:33 2013
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=7e8424aa-d3a7-4132-9bed-a40ac8400bb3 / ext4
defaults 1 1
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0

/dev/sdb /cache1 ext4 noatime,barrier=0,data=writeback,commit=100 0 2
/dev/sdd /cache2 ext4 noatime,barrier=0,data=writeback,commit=100 0 2
/dev/sde /cache3 ext4 noatime,barrier=0,data=writeback,commit=100 0 2

=============================

also i note that there is a low speed in writing on my harddrives !!!!
[root_at_squid ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 165G 145G 12G 93% /
tmpfs 16G 0 16G 0% /dev/shm
/dev/sdb 550G 1.2G 521G 1% /cache1
/dev/sdd 550G 1.2G 521G 1% /cache2
/dev/sde 550G 1.3G 521G 1% /cache3
[root_at_squid ~]#

with it help !

with my best regards

--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/slow-browsing-in-centos-6-3-with-squid-3-tp4658635p4658661.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Sat Feb 23 2013 - 13:26:12 MST

This archive was generated by hypermail 2.2.0 : Sun Feb 24 2013 - 12:00:05 MST