[squid-users] Newbie question.. Please help

From: Nivlesh Chandra <NChandra001@dont-contact.us>
Date: Thu, 5 Apr 2001 11:02:36 +1200

I have just installed squid on Linux RedHat version 7.0. The config for the
machine is
Pentium III 800 Mhz
64 Mb Ram
10 Gb Hd (using 4GB for squid cache)

After installing squid and going through the faq for squid I still cannot
figure out why it is so slow... I mean when I download a page and if I
redownload it from another machine that points to the proxy ... there is a
significant delay in retrieving the page.
went through the client manager and found out that squid is doing a lot of
paging. The FAQ states that the ratio pagefaults/http requests should be
between 0.0 - 0.1 or at most 0.0 - 0.2 but mine is 13 ... which is terrible
.. the reason I guess squid is so sluggish... can someone please help me
since I am in dire need of some serious help.. would really appreciate your
help.

installed squid with the following parameters

http_port 0.0.0.0:3128
icp_port 0
tcp_outgoing_address 255.255.255.255
udp_incoming_address 0.0.0.0
udp_outgoing_address 255.255.255.255
icp_query_timeout 0
maximum_icp_query_timeout 2000
mcast_icp_query_timeout 2000
dead_peer_timeout 10 seconds
hierarchy_stoplist cgi-bin
hierarchy_stoplist ?
no_cache Deny QUERY
cache_mem 33554432 bytes
cache_swap_low 95
cache_swap_high 100
maximum_object_size 4194304 bytes
minimum_object_size 0 bytes
ipcache_size 8192
ipcache_low 90
ipcache_high 95
fqdncache_size 1024
cache_dir ufs /var/spool/squid/cache 4096 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
emulate_httpd_log off
mime_table /etc/squid/mime.conf
log_mime_hdrs off
pid_filename /var/run/squid.pid
debug_options ALL,1
log_fqdn off
client_netmask 255.255.255.255
ftp_user squid@undpenergy.gov.fj
ftp_list_width 32
ftp_passive on
unlinkd_program /usr/lib/squid/unlinkd
pinger_program /usr/lib/squid/pinger
redirect_children 5
redirect_rewrites_host_header on
authenticate_children 5
authenticate_ttl 3600
authenticate_ip_ttl 0
wais_relay_port 0
request_header_max_size 10240 bytes
request_body_max_size 1048576 bytes
reply_body_max_size 0 bytes
refresh_pattern ^ftp: 1440 20% 10080

refresh_pattern ^gopher: 1440 0% 1440

refresh_pattern . 0 20% 4320

replacement_policy LFUDA
reference_age 7776000 seconds
quick_abort_min 16 KB
quick_abort_max 16 KB
quick_abort_pct 95
negative_ttl 300 seconds
positive_dns_ttl 21600 seconds
negative_dns_ttl 300 seconds
range_offset_limit 0 bytes
connect_timeout 120 seconds
peer_connect_timeout 30 seconds
siteselect_timeout 4 seconds
read_timeout 900 seconds
request_timeout 10 seconds
client_lifetime 86400 seconds
half_closed_clients off
pconn_timeout 120 seconds
ident_timeout 10 seconds
shutdown_lifetime 30 seconds
acl QUERY urlpath_regex cgi-bin
acl QUERY urlpath_regex \?
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1
acl SSL_ports port 443
acl SSL_ports port 563
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443
acl Safe_ports port 563
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 0
acl Safe_ports port 0
acl Safe_ports port 488
acl Safe_ports port 0
acl Safe_ports port 0
acl Safe_ports port 591
acl Safe_ports port 0
acl Safe_ports port 0
acl Safe_ports port 777
acl Safe_ports port 0
acl Safe_ports port 0
acl Safe_ports port 0
acl CONNECT method CONNECT
acl undpenergy src 10.1.120.0/255.255.255.0
acl itcusers src 10.1.85.0/255.255.255.0
http_access Allow manager localhost
http_access Deny manager
http_access Deny !Safe_ports
http_access Deny CONNECT !SSL_ports
http_access Allow undpenergy
http_access Allow itcusers
http_access Allow localhost
http_access Deny all
icp_access Allow all
miss_access Allow all
proxy_auth_realm Squid proxy-caching web server
ident_lookup_access Deny all
cache_mgr root@undpenergy.gov.fj
cache_effective_user squid
cache_effective_group squid
announce_period 31536000 seconds
announce_host tracker.ircache.net
announce_port 3131
httpd_accel_port 80
httpd_accel_with_proxy off
httpd_accel_uses_host_header off
logfile_rotate 0
append_domain .undpenergy.gov.fj
tcp_recv_bufsize 0 bytes
err_html_text
memory_pools off
memory_pools_limit 0 bytes
forwarded_for on
log_icp_queries on
icp_hit_stale off
minimum_direct_hops 4
cachemgr_passwd none all
store_avg_object_size 13 KB
store_objects_per_bucket 50
client_db on
netdb_low 900
netdb_high 1000
netdb_ping_period 300 seconds
query_icmp off
test_reachability off
buffered_logs on
reload_into_ims off
icon_directory /usr/lib/squid/icons
error_directory /etc/squid/errors
minimum_retry_timeout 5 seconds
maximum_single_addr_tries 3
snmp_port 3401
snmp_access Deny all
snmp_incoming_address 0.0.0.0
snmp_outgoing_address 255.255.255.255
as_whois_server whois.ra.net
wccp_router 0.0.0.0
wccp_version 4
wccp_incoming_address 0.0.0.0
wccp_outgoing_address 255.255.255.255
delay_pools 0
delay_initial_bucket_level 50
incoming_icp_average 6
incoming_http_average 4
min_icp_poll_cnt 8
min_http_poll_cnt 8
max_open_disk_fds 0
offline_mode off
uri_whitespace strip
prefer_direct on
strip_query_terms on
redirector_bypass off
ignore_unknown_nameservers on
client_persistent_connections on
server_persistent_connections on

output from Cache Manager (info)Squid Object Cache: Version 2.3.STABLE4
Start Time: Mon, 02 Apr 2001 17:58:49 GMT
Current Time: Wed, 04 Apr 2001 20:42:58 GMT
Connection information for squid:
        Number of clients accessing cache: 7
        Number of HTTP requests received: 5235
        Number of ICP messages received: 0
        Number of ICP messages sent: 0
        Number of queued ICP replies: 0
        Request failure ratio: 0.00%
        HTTP requests per minute: 1.7
        ICP messages per minute: 0.0
        Select loop called: 301353 times, 606.097 ms avg
Cache information for squid:
        Request Hit Ratios: 5min: 0.0%, 60min: 48.1%
        Byte Hit Ratios: 5min: 100.0%, 60min: 12.7%
        Storage Swap size: 7596 KB
        Storage Mem size: 3540 KB
        Storage Replacement Threshold: 0.000000
        Mean Object Size: 5.27 KB
        Requests given to unlinkd: 135
Median Service Times (seconds) 5 min 60 min:
        HTTP Requests (All): 0.00000 0.17711
        Cache Misses: 0.00000 10.77596
        Cache Hits: 0.00000 0.00000
        Near Hits: 0.00000 8.68295
        Not-Modified Replies: 0.00000 0.04776
        DNS Lookups: 0.00000 3.65658
        ICP Queries: 0.00000 0.00000
Resource usage for squid:
        UP Time: 182649.002 seconds
        CPU Time: 41.160 seconds
        CPU Usage: 0.02%
        CPU Usage, 5 minute avg: 0.00%
        CPU Usage, 60 minute avg: 0.05%
        Maximum Resident Size: 0 KB
        Page faults with physical i/o: 69531
Memory usage for squid via mallinfo():
        Total space in arena: 7857 KB
        Ordinary blocks: 6878 KB 551 blks
        Small blocks: 0 KB 0 blks
        Holding blocks: 176 KB 1 blks
        Free Small blocks: 0 KB
        Free Ordinary blocks: 979 KB
        Total in use: 7054 KB 90%
        Total free: 979 KB 12%
Memory accounted for:
        Total accounted: 4224 KB
File descriptor usage for squid:
        Maximum number of file descriptors: 1024
        Largest file desc currently in use: 9
        Number of file desc currently in use: 10
        Files queued for open: 0
        Available number of file descriptors: 1014
        Reserved number of file descriptors: 100
        Store Disk files open: 0
Internal Data Structures:
          1449 StoreEntries
           807 StoreEntries with MemObjects
           806 Hot Object Cache Items
          1442 Filemap bits set
          1442 on-disk objects
Received on Wed Apr 04 2001 - 17:35:31 MDT

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