"Piccoli, Lucio" wrote: > > hi all, > > i have implemented quota checking by parsing squid's acces.log and an using > an acl. However it seems that a better solution is possible. The main > problem being that parsing the access.log every 15minutes or so causing a > massive spike in CPU utilisation for several seconds. (To parse a 10Mb > access.log takes 3-5 CPU secs on a sun netra solaris 5.8) I have a read a > few other comments about having quota checking in squid, so i guess it might > be useful. My plan is rather raw at present but goes something like this.
You could "tail -f" the access log and incrementally update the users quota usage.. there is no need to process the same access.log line more than once. Regards Henrik
