CF wrote:
On Thu, 2003-09-25 at 20:33, Pierre Fran�ois wrote:

they were more than 300 MB
big. I think I remember it were *.db binary files.


Sounds like the compiled version of the squidGuard databases.

Never heard about something else. We installed squid and squidguard as Debian packages.

Does your
squidguard redirector take minutes and minutes to start up?  If so, then
you're not pre-making the db files.

Something like this should take no more than a few seconds
        time `echo  | squidGuard -d`
My P4 1.5 takes 0.03 seconds real time to run that command.

It tooks more than 7 minutes. Here follows a log of the output of the command:


time `echo | squidGuard -c etc/chastity/squidGuard-chastity.conf -d`

starts here----------------------------------------------------------
2003-09-26 14:47:10 [20599] init domainlist /var/lib/chastity/adult/domains
2003-09-26 14:54:47 [20599] init urllist /var/lib/chastity/adult/urls
2003-09-26 14:54:48 [20599] init expressionlist /var/lib/chastity/adult/expressions
2003-09-26 14:54:48 [20599] init domainlist /var/lib/chastity/audio-video/domains
2003-09-26 14:54:48 [20599] init urllist /var/lib/chastity/audio-video/urls
2003-09-26 14:54:48 [20599] init domainlist /var/lib/chastity/forums/domains
2003-09-26 14:54:48 [20599] init urllist /var/lib/chastity/forums/urls
2003-09-26 14:54:48 [20599] urllist empty, removed from memory
2003-09-26 14:54:48 [20599] init expressionlist /var/lib/chastity/forums/expressions
2003-09-26 14:54:48 [20599] init domainlist /var/lib/chastity/hacking/domains
2003-09-26 14:54:48 [20599] init urllist /var/lib/chastity/hacking/urls
2003-09-26 14:54:48 [20599] init domainlist /var/lib/chastity/redirector/domains
2003-09-26 14:54:49 [20599] init urllist /var/lib/chastity/redirector/urls
2003-09-26 14:54:49 [20599] init expressionlist /var/lib/chastity/redirector/expressions
2003-09-26 14:54:49 [20599] init domainlist /var/lib/chastity/warez/domains
2003-09-26 14:54:49 [20599] init urllist /var/lib/chastity/warez/urls
2003-09-26 14:54:49 [20599] init domainlist /var/lib/chastity/ads/domains
2003-09-26 14:54:49 [20599] init urllist /var/lib/chastity/ads/urls
2003-09-26 14:54:49 [20599] init domainlist /var/lib/chastity/aggressive/domains
2003-09-26 14:54:49 [20599] init urllist /var/lib/chastity/aggressive/urls
2003-09-26 14:54:49 [20599] init domainlist /var/lib/chastity/drugs/domains
2003-09-26 14:54:49 [20599] init urllist /var/lib/chastity/drugs/urls
2003-09-26 14:54:49 [20599] init domainlist /var/lib/chastity/gambling/domains
2003-09-26 14:54:49 [20599] init urllist /var/lib/chastity/gambling/urls
2003-09-26 14:54:49 [20599] init domainlist /var/lib/chastity/violence/domains
2003-09-26 14:54:49 [20599] init urllist /var/lib/chastity/violence/urls
2003-09-26 14:54:49 [20599] urllist empty, removed from memory
2003-09-26 14:54:49 [20599] init expressionlist /var/lib/chastity/violence/expressions
2003-09-26 14:54:49 [20599] squidGuard 1.2.0 started (1064580430.872)
2003-09-26 14:54:49 [20599] recalculating alarm in 29111 seconds
2003-09-26 14:54:49 [20599] squidGuard ready for requests (1064580889.513)
2003-09-26 14:54:49 [20599] error parsing squid line:


2003-09-26 14:54:49 [20599] squidGuard stopped (1064580889.522)

real    7m38.677s
user    0m36.780s
sys     1m31.370s
stops here----------------------------------------------------------

If its taking a while, then squidGuard is making a db file at startup, from
the text versions of your blocklists.  Thats quite inefficient, and could
lead to the large temporary files.

It does, and the temporary files remain; that's the output of the command:


ls -l /var/tmp/*

starts here----------------------------------------------------------
-rw-------    1 root     root      6733824 Sep 26 14:54 /var/tmp/BDB020599
-rw-------    1 root     root       385024 Sep 26 14:54 /var/tmp/BDBa20599

/var/tmp/vi.recover:
total 0
stops here----------------------------------------------------------

I guess you know a system for doing it in another way. Can you give me a pointer?

Thanks in advance.

--
Pierre Fran�ois (http://www.romanliturgy.org)
Roemer Visscherstraat 46
NL-1054 EZ Amsterdam (Netherlands)
+ 31 20 616 58 46



Reply via email to