Re: [squid-users] Complicate ACL affect performance?

From: Henrik K <hege_at_hege.li>
Date: Thu, 16 Oct 2008 10:37:06 +0300

On Thu, Oct 16, 2008 at 01:56:59AM +0800, howard chen wrote:
> Hello,
>
> On Wed, Oct 15, 2008 at 10:14 PM, Henrik K <hege_at_hege.li> wrote:
> > On Wed, Oct 15, 2008 at 03:42:20PM +0200, Henrik Nordstrom wrote:
> >>
> >> > Any suggestion for having large ACL in a high traffic server?
> >>
> >> Avoid using regex based acls.
> >
> > It's fine if you use Perl + Regexp::Assemble to optimize them. And link
> > Squid with PCRE. Sometimes you just need to block more specific URLs.
> >
> >
>
> WHat do you mean "link Squid with PCRE" ?

http://www.pcre.org/

When compiling add "-lpcreposix -lpcre" to LDFLAGS. It overrides your your
system library, being faster and I don't have any memory leaks anymore.

If you want to read long regexps from include file, you need to
patch a bit: http://www.squid-cache.org/bugs/show_bug.cgi?id=2215
(src/cache_cf.c -> strtokFile() -> change all 256 to 65535)
Received on Thu Oct 16 2008 - 07:37:11 MDT

This archive was generated by hypermail 2.2.0 : Thu Oct 16 2008 - 12:00:04 MDT