[squid-users] Rock datastore, CFLAGS and a crash that (may be) known
Marcus Kool
marcus.kool at urlfilterdb.com
Tue Feb 16 15:23:44 UTC 2016
On 02/16/2016 12:32 PM, Jester Purtteman wrote:
> ./configure CFLAGS="-march=core2 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-sse4 -msse4.1" CXXFLAGS="${CFLAGS}" --with-pthreads --prefix=/usr --localstatedir=/var
> --libexecdir=/usr/lib/squid --srcdir=. --datadir=/usr/share/squid --sysconfdir=/etc/squid --with-default-user=proxy --with-logdir=/var/log --with-pidfile=/var/run/squid.pid
> --enable-linux-netfilter --enable-cache-digests --enable-storeio=ufs,aufs,diskd,rock --enable-async-io=30 --enable-http-violations --enable-zph-qos --with-netfilter-conntrack
> --with-filedescriptors=65536 --with-large-files
I do not recommend setting options this way, especially -mcx16 -msahf and others may produce code that does not run correctly on all systems.
I recommend using
CFLAGS='-g -O2 -Wall -march=native' CXXFLAGS='-g -O2 -Wall -march=native'
to get the best performance since it turns on all possible processor features like mcx16 if and only if the used system supports it.
Marcus
More information about the squid-users
mailing list