> -----Original Message-----
> From: Joe Cooper [mailto:joe@swelltech.com]
> Sent: Wednesday, March 20, 2002 4:56 AM
> To: Pat Lendon
> Cc: squid-users@squid-cache.org
> Subject: Re: [squid-users] high cpu usage
>
>
> A small number of url_regex acls shouldn't cause a huge
> burden on your
> box. It is primarily a concern when there are many (20+ probably).
What is a problem is if they are reused:
acl regex foo blah
acl regex foo2 blah2
acl regex foo3 blah3
http_access deny foo !foo2
http_access deny foo2 !foo3
http_access allow foo3 foo
cache_peer_access allow peer1 foo
will evaluate foo2 and foo3 twice, and foo three times. Real life
scenarios can be worse....
In my -when-I-get-time- list is to cache the results of the regex per
request, so that each regex is evaluated once per request, not once per
access statement per request.
Rob
Received on Tue Mar 19 2002 - 14:31:45 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:07:00 MST