A quick and easy performance improvement
Alex Neuman van der Hans
alex at nkpanama.com
Wed Aug 2 00:27:15 IST 2006
Works great for me so far... Don't have on many production servers, but
most of my low volume and/or testing servers seem to work better with
bayes in tmpfs.
Richard Lynch wrote:
> What about using tmpfs instead of a ramdisk for bayes's DB? The
> problem I have with a ramdisk is that you're giving up real memory for
> it. In my case that would be about 1.5GB. That's a lot to give up.
> With tmpfs it would be in virtual memory and grow or shrink as needed
> (using the swap file). That wouldn't be as good as a ramdisk in term
> of performance but it would be more flexible. Has anyone done that?
> How did it work out?
>
> ~rich
>
> Green, Rodney wrote:
>> Here's a link to a howto on creating a ramdisk...
>>
>> http://www.vanemery.com/Linux/Ramdisk/ramdisk.html
>>
>> Chris Hammond wrote:
>>> Thanks Daniel, it does sound quite simple. I will look at trying this.
>>>
>>> Thanks
>>> Chris
>>>
>>>
>>>>>> "Daniel Maher" <daniel.maher at ubisoft.com> 08/01/06 9:43 AM >>>
>>>>>>
>>> Sure, it's actually quite simple.
>>>
>>> I just created a ramdisk in the standard way, and mounted it as
>>> /var/spool/MailScanner/incoming
>>>
>>> I then created a simple cronjob that runs every couple of hours, which
>>> runs sa- learn -- sync, and then copies the
>>> /var/spool/MailScanner/incoming/bayes/* to a directory on a physical
>>> disk.
>>>
>>> I should point out that the contents of /bayes/ is around 500MB to
>>> 600MB on each of the servers in my mail pool, so the more RAM the
>>> better. :)
>>>
>>> --
>>> _
>>> °v° Daniel Maher
>>> /(_)\ Administrateur Système Unix
>>> ^ ^ Unix System Administrator
>>>
>>> Sentio aliquos togatos contra me conspirare.
>>>
>>>> ----- Original Message-----
>>>> From: mailscanner- bounces at lists.mailscanner.info
>>>>
>>> [mailto:mailscanner-
>>>
>>>> bounces at lists.mailscanner.info] On Behalf Of Chris Hammond
>>>> Sent: August 1, 2006 9:14 AM
>>>> To: MailScanner discussion
>>>> Subject: Re: A quick and easy performance improvement
>>>>
>>>> Daniel, would you share how you setup yours?
>>>>
>>>> Thanks
>>>> Chris
>>>>
>>>
>>> --
>>> MailScanner mailing list
>>> mailscanner at lists.mailscanner.info
>>> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>>
>>> Before posting, read http://wiki.mailscanner.info/posting
>>>
>>> Support MailScanner development - buy the book off the website!
>>>
>>> -- This message has been scanned for viruses and
>>> dangerous content by MailScanner, and is
>>> believed to be clean.
>>>
>>>
>>>
>>
>
>
More information about the MailScanner
mailing list