[Mimedefang] tmpfs on Linux
scohen
scohen at scohen.mysticjj.com
Fri Nov 12 17:15:04 EST 2004
On Fri, 12 Nov 2004, Matthew S. Cramer wrote:
> On Fri, Nov 12, 2004 at 12:25:12PM -0500, Jeff Rife wrote:
> > On 12 Nov 2004 at 9:03, Aleksandar Milivojevic wrote:
> >
> > > For later (simpler) global solution, just add these lines to
> > > sa-mimedefang.cf:
> > >
> > > auto_whitelist_path /var/spool/MIMEDefang/awl
> > >
> > > bayes_path /var/spool/MIMEDefang/bayes
> >
> > These are really *bad* paths if you put /var/spool/MIMEDefang on any
> > sort of ramdisk (like many of us do).
>
> Why? I found this greatly improved performance. I have a cron job
> that copies the bayes db files over to a physical disk once every
> day so there is no danger of losing the entire database if the ramdisk
> would suddenly go away.
>
> On my machine:
>
> /dev/ram0 483886 46 458840 1% /var/spool/MIMEDefang
> /dev/ram1 483886 132675 326211 29% /var/spool/bayes
>
>
With your setup you can lose 23 hours worth of data. The question for you
is is that acceptable or not? Btw, do you make sure your database isn't
being used when you copy it? If not, have you tried to use a backup?
> Matt
Steve Cohen
More information about the MIMEDefang
mailing list