Weblog entry #380 for simonw
Discovered that GNU egrep in Squeeze runs this test case over 10x quicker than the egrep in Lenny!? The folks writing GNU grep have clearly been fixing bugs.
On Lenny server comparing packaged 2.5.3 with compiled from source 2.6.3
~/grep-2.6.3/src$ time ./egrep --text -f /tmp/patterns /tmp/logs | wc -l
~/grep-2.6.3/src$ time egrep --text -f /tmp/patterns /tmp/logs | wc -l
My issue was fixed by removing some pointless checks in /etc/logcheck/crack.d/logcheck (Postfix doesn't even support expn) which I suspect were left in from an earlier release of logcheck, but I'm sure there are some folks who use egrep/grep a lot thinking "is it too late to backport grep?", or who will just upgrade to Squeeze after realising there may be an order of magnitude improvement to be had for their workload.
Comments on this Entry