tuning

Andoni Auzmendi andoni.auzmendi at robertwalters.com
Wed Jul 5 17:44:40 IST 2006


By default tmpfs allocates half of the physical ram. That value can be
changed specifying size=size when mounting. For example on a machine
with 2GB of ram by default it would use 1GB. If we wanted to make it
512MB mount it as follows:

# mount -t tmpfs -o size=512m /dev/shm /tmp_shm

You can on Red Hat variants change /etc/fstab to mount /tmp on ram
easily.

change

none	/dev/shm	/tmpfs	defaults	0 0

to

None	/tmp	/tmpfs	size=512m	0 0


Andoni


-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info
[mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Alex
Neuman van der Hans
Sent: 05 July 2006 16:48
To: MailScanner discussion
Subject: Re: tuning



Dhawal Doshy wrote:
> Also consider using the SpamAssassin Cache settings in MS.conf and 
> also setup a small 100MB TMPFS partition (to keep mailscanner's work 
> dir and SA cache)
>
How does one modify the size of a tmpfs partition? I thought it just 
took whatever RAM was available.
-- 
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 email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



More information about the MailScanner mailing list