ramdisk creation

Zbigniew Szalbot z.szalbot at lcwords.com
Fri Jun 12 06:07:35 UTC 2009


Hello,

I would like to speed up amavisd operation by allowing it to use 
ramdisk, so I thought I would follow the advice given here:
http://www.stahl.bau.tu-bs.de/~hildeb/postfix/amavisd_tmpfs.shtml

However, I just want to make sure I get the procedure right. In my case, 
the temp folder is /var/amavisd/tmp

So (1) I need to create an entry in /etc/fstab
md /var/amavisd/tmp mfs rw,-s512m 2 0

(2) create the ramdisk
mdmfs -s 512m md /var/amavids/tmp

(3) mount the ramdisk
mount /var/amavids/tmp

Is the procedure right? I read mdmfs man and hope I am OK here.

If it is OK, I guess I need to stop amavisd before creating ramdisk and 
mounting it, right?

Thanks a lot for all feedback you can give me!

-- 
Zbigniew Szalbot
www.fairtrade.net.pl


More information about the freebsd-questions mailing list