Re: [squid-users] squid cpu problem

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 01 Apr 2014 10:34:31 +1300

On 2014-04-01 02:10, a.afach wrote:
> Dear Eliezer
>
> these are the configure options ...
>
> configure options: '--prefix=/usr/local/squid-3.1.19'
> '--sysconfdir=/etc' '--sysconfdir=/etc/squid' '--localstatedir=/var'
> '--enable-auth=basic,digest,ntlm' '--enable-removal-policies=lru,heap'
> '--enable-digest-auth-helpers=password'
> '--enable-basic-auth-helpers=PAM,getpwnam,NCSA,MSNT'
> '--enable-external-acl-helpers=ip_user,session,unix_group'
> '--enable-ntlm-auth-helpers=fakeauth'
> '--enable-ident-lookups--enable-useragent-log'
> '--enable-cache-digests' '--enable-delay-pools' '--enable-referer-log'
> '--enable-arp-acl' '--with-pthreads' '--with-large-files'
> '--enable-htcp' '--enable-carp' '--enable-follow-x-forwarded-for'
> '--enable-snmp' '--enable-ssl' '--enable-storeio=ufs,diskd,aufs'
> '--enable-async-io' '--enable-linux-netfilter' '--enable-epoll'
> '--with-squid=/usr/squid-3.1.19' '--disable-ipv6' '--with-aio'
> '--with-aio-threads=128' 'build_alias=x86_64-pc-linux-gnu'
> 'host_alias=x86_64-pc-linux-gnu' 'CC=x86_64-pc-linux-gnu-gcc'
> 'CFLAGS=-O2 -pipe -m64 -mtune=generic' 'LDFLAGS=-Wl,-O1
> -Wl,--as-needed' 'CXXFLAGS=' '--cache-file=/dev/null' '--srcdir=.'
>

Some more reasons to upgrade:
  * --disable-strict-error-checking avoids issues on Gentoo with -Werror
  * CFLAGS affects the C compiler, not the C++ compiler. C compiler is
only used by Squid-3 to build some libraries.
  * current verified stable Gentoo Squid version is 3.3.8.
  * updating aything on Gentoo involves rebuilding a surprising number of
components from scratch. So when you get a difference like this it
really could be anywhere. Including buried in the compiler itself - your
flags are possibly changing optimization levels and CPU-specific
assembly instructions used by it.

Amos
Received on Mon Mar 31 2014 - 21:34:33 MDT

This archive was generated by hypermail 2.2.0 : Tue Apr 01 2014 - 12:00:05 MDT