Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Speeding up dansguardian
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Ctrl+Alt+Del
Guru
Guru


Joined: 04 Jul 2004
Posts: 326
Location: .de

PostPosted: Fri Jan 14, 2005 3:25 pm    Post subject: Speeding up dansguardian Reply with quote

I've got a router that runs Shorewall/Squid/Dansguardian (transparent). It's working quite well, there's only one minor issue that is really annoying me atm. Dansguardian is to slow for my taste.
The Box is a P3-500 with 512MB Ram and a 20gb ide drive and is currently serving ~10 People (will be around 75 Users once i consider the box stable :) ).

At the Moment everytime a 'new' site is accessed and dg starts to parse the blacklists the cpu load goes up to 90% and the it'll take 2-3 seconds till the site is actually loading. The Blacklists are on a Reiserfs formatted drive. Now i am looking for ideas on how to speed dg up. My first two ideas where to store the blacklists into a mysqldb or a ramdisk. (i have no idea wether that may actually work)

So before i start muddling into things i have no clue about i wanted to ask around if someone else may have had a better idea or some hands on tips.
Back to top
View user's profile Send private message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 874

PostPosted: Fri Jan 28, 2005 10:46 am    Post subject: parsing cpu-intensive? Reply with quote

sorry, i can't help you right now bit i'm preparing a similar setup and doing the same considerations.
i suspect that dansguardian is quite cpu-intensive, since everything needs to be parsed and compared. i have squid and dansguardian on a dual-processor with 2gb ram and when a site is accessed for a short time both cpus go up to 100% because of dg.
since the box will have to serve 200+ (heavy) users i will examine this closely before it gets put in production.
maybe your box is a little weak on the hardware-side? squid-docs state that the bottleneck is usually the hard-drives; and so putting the system and cache-dirs on the same ide-drive may slow things down, especially with a cpu-intensive dg on the same box (but i'm just guessing).
soon i hope we will know more!
Back to top
View user's profile Send private message
jdmulloy
Tux's lil' helper
Tux's lil' helper


Joined: 24 Dec 2004
Posts: 139
Location: Massachusetts, USA

PostPosted: Wed Mar 23, 2005 3:28 am    Post subject: dansguardian.conf Reply with quote

In /etc/dansguardian/dansguardian.conf
Code:
phrasefiltermode=0

or
Code:
phrasefiltermode=1


0 = raw
1 = smart
2 = both

2 will use more cpu power than the other two
Back to top
View user's profile Send private message
unaos
n00b
n00b


Joined: 06 Apr 2006
Posts: 64
Location: brovary,UA

PostPosted: Thu Jul 27, 2006 9:48 am    Post subject: Reply with quote

have same trouble too, but in software side. on 2xP3 1Ghz single CPU usage when new page is accessed about 33.4% in a peak. but page loading time have growed from 0.2s-2s (w/o dansguardian) up to 4-6s (with dansguardian)...
_________________
house of mystic lies
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum