Search squid archive

RE: squid performance epoll. 350req/sec 100% cpu

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

 



Hi Rmkml,
  This is dell pe1850. single cpu (hyperthreading). 
  Not too many diskio (as the cache is only 6gb and 512ram cache) (I have
2gb of ram, 3.2ghz cpu)
 iptables is configured.  ( I can drop this for  testing)
 Heartbeat is running (2 boxes)
 dnsserver for squid is running
 
Kind Regards
  Michal Mihalik


cat /proc/interrupts
CPU0       CPU1
  0:        157  270583168    IO-APIC-edge  timer
  1:          0          8    IO-APIC-edge  i8042
  4:          0    8027344    IO-APIC-edge  serial
  8:          0          0    IO-APIC-edge  rtc
  9:          0          0   IO-APIC-level  acpi
 12:          0         96    IO-APIC-edge  i8042
 14:          0         74    IO-APIC-edge  ide0
169:          0          0   IO-APIC-level  uhci_hcd:usb1
177:          0    6180176   IO-APIC-level  megaraid
185:          0          0   IO-APIC-level  uhci_hcd:usb2
193:          0          0   IO-APIC-level  uhci_hcd:usb3
201:          0  343508884   IO-APIC-level  eth0
209:          0         20   IO-APIC-level  ehci_hcd:usb4
217:          0  251486493   IO-APIC-level  eth1
NMI:          0          0
LOC:  270593401  270591920
ERR:          0
MIS:          0 


My squid.conf 

http_port 80
icp_port 0
hierarchy_stoplist cgi-bin ?
cache_mem 512 MB
maximum_object_size 32 MB
maximum_object_size_in_memory 48 KB
ipcache_size 1024
fqdncache_size 1024
fqdncache_size 512
cache_replacement_policy lru
memory_replacement_policy lru
cache_dir aufs /var/spool/squid 6000 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
pid_filename /var/run/squid.pid
debug_options ALL,1
redirect_rewrites_host_header off
request_body_max_size 15 MB
refresh_pattern ^http:          0       20%     4320
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
negative_ttl 1 seconds
positive_dns_ttl 15 minutes
request_timeout 30 seconds
persistent_request_timeout 10 seconds
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 lan_192 src 192.168.0.0/255.255.0.0
acl to_localhost dst 127.0.0.0/8
acl purge method PURGE
acl smeFarm dst 217.67.20.139 192.168.0.2 85.248.69.139 192.168.0.5
192.168.0.4
http_access allow purge lan_192
http_access deny purge
http_access allow manager localhost
http_access deny manager
http_access deny !http_port
http_access deny to_localhost
http_access allow smeFarm
http_access deny all
http_reply_access allow all
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_uses_host_header on
logfile_rotate 0
memory_pools_limit 100 MB
client_db off
buffered_logs on
strip_query_terms off
coredump_dir /var/spool/squid



> -----Original Message-----
> From: rmkml [mailto:rmkml@xxxxxxx] 
> Sent: Monday, March 27, 2006 5:13 PM
> To: Michal Mihalik
> Subject: Re:  squid performance epoll. 
> 350req/sec 100% cpu
> 
> Hi Michal,
> maybe send to list /proc/interrupts ?
> Regards
> Rmkml
> 
> 
> On Mon, 27 Mar 2006, Michal Mihalik wrote:
> 
> > Date: Mon, 27 Mar 2006 17:31:36 +0200
> > From: Michal Mihalik <michal.mihalik@xxxxxxxxxxxxx>
> > To: squid-users@xxxxxxxxxxxxxxx
> > Subject:  squid performance epoll. 350req/sec 100% cpu
> > 
> > Hello.
> >  I am tring to optimize squid for best possible performance.
> >  it is in production and it's doing more than 350req/sec. 
> At peaks upto
> > 500req/sec.
> >
> >  My problem is only one.  100% cpu.  :-)
> >
> >  I tried to update my debian to 2.6.16 and recompiled squid:
> >
> > Squid Cache: Version 2.5.STABLE12
> > 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,diskd,null
> > --enable-linux-netfilter --enable-arp-acl 
> --enable-removal-policies=lru,heap
> > --enable-snmp --enable-delay-pools --enable-htcp --enable-epoll
> > --enable-cache-digests --enable-underscores --enable-referer-log
> > --enable-useragent-log --enable-auth=basic,digest,ntlm --enable-carp
> > --with-large-files i386-debian-linux
> >
> > the thing I realy don't like is 25% cpu + 50% system cpu .
> >
> > why the 50% system!!!!!
> > can anyone help?
> >
> > Kind Regards
> >   Michal Mihalik
> >
> >
> 


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

  Powered by Linux