RE: [squid-users] squid performance epoll. 350req/sec 100% cpu

From: Michal Mihalik <michal.mihalik@dont-contact.us>
Date: Mon, 27 Mar 2006 21:09:44 +0200

Thanks
  Ok I missed that one.
  Recompiled.
  And one more info. Most of the files which are cached are small. (fit
into memory)

  It looks like it didn't help but I will see better tommorw (higher load)
  I will try to learn how to use strace if it helps.

 
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-epoll --disable-poll --disable-select --enable-carp
--with-large-files i386-debian-linux

Thx
 Mike

> -----Original Message-----
> From: Mike Solomon [mailto:mas63@cornell.edu]
> Sent: Monday, March 27, 2006 8:28 PM
> To: Michal Mihalik
> Cc: squid-users@squid-cache.org
> Subject: Re: [squid-users] squid performance epoll.
> 350req/sec 100% cpu
>
> I would bet that an strace on the master pid would reveal that you
> are calling poll, not epoll.
>
> There are several postings on the list about applying the epoll
> patch, but IIRC, you need to explicitly --disable-poll --disable-
> select --enable-epoll for it to work.
>
> -Mike
>
> On Mar 27, 2006, at 9:09 AM, Michal Mihalik wrote:
>
> >>> Date: Mon, 27 Mar 2006 17:31:36 +0200
> >>> From: Michal Mihalik <michal.mihalik@petitpress.sk>
> >>> To: squid-users@squid-cache.org
> >>> Subject: [squid-users] 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
> >>>
> >>>
> >>
> >
> >
>
Received on Mon Mar 27 2006 - 12:10:05 MST

This archive was generated by hypermail pre-2.1.9 : Sat Apr 01 2006 - 12:00:04 MST