A quick and easy performance improvement
Richard Lynch
rich at mail.wvnet.edu
Wed Aug 2 00:03:10 IST 2006
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.
>>
>>
>>
>
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rich.vcf
Type: text/x-vcard
Size: 299 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20060801/c24609b4/rich.vcf
More information about the MailScanner
mailing list