Re: [Mimedefang] using a RAM disk for mimedefang temp directory?
Sorry, read that as: I got tired of the disk I/O grind from DB3 bayes/AWL so I switched to mySQL which seems much better on using reources efficiently. KAM On Wed, Apr 27, 2005 at 09:10:50PM -0400, David F. Skoll wrote: Kevin A. McGrail wrote: [keeping Bayes DB in RAM is] Probably a good move. I got a little tired of the disk I/O grind with DB and Bayes/AWL and I'm using mySQL. It seems much better on using the resources of the server most efficiently. That's strange. We use our own Bayes implementation in CanIt, and it's stored in a PostgreSQL database. We haven't had performance issues with that setup. ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
Re: [Mimedefang] using a RAM disk for mimedefang temp directory?
Matthew Ward wrote: looking around for ways to speed things up and/or just make them more efficient ... wondering if anyone has experience using a RAM disk (tmpfs as opposed to an expen$ive solid state disk) for mimedefang's temporary directory? :-) Check the FAQ, especially: http://www.mimedefang.org/kwiki/index.cgi?RamBasedSpoolDirectory If you've been happy with MIMEDefang and have NOT been using a RAM disk, you must have a pretty low mail volume. am i right in assuming that the temporary directory is what configure calls spooldir and not the quarantinedir? That's correct. Regards, David. ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
RE: [Mimedefang] using a RAM disk for mimedefang temp directory?
[EMAIL PROTECTED] wrote: we've been using mimedefang+spamassassin under sendmail for quite some time now, very successfully. looking around for ways to speed things up and/or just make them more efficient ... wondering if anyone has experience using a RAM disk (tmpfs as opposed to an expen$ive solid state disk) for mimedefang's temporary directory? It's really very very very much faster to use a tmpfs directory for spool. Here's my fstab entry on a machine with 2GB of RAM: none/var/spool/MIMEDefang tmpfs mode=750,size=256M,uid=defang,gid=defang 0 0 I have an inkling that recent versions of SA use /tmp as well - for things like checking Razor/Pyzor - but haven't investigated as the server seems to be fine as is. Using tmpfs for the quarantine directory is NOT a good idea. Matthew.van.Eerde (at) hbinc.com 805.964.4554 x902 Hispanic Business Inc./HireDiversity.com Software Engineer perl -emap{y/a-z/l-za-k/;print}shift Jjhi pcdiwtg Ptga wprztg, ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
Re: [Mimedefang] using a RAM disk for mimedefang temp directory?
Preface: My mimedefang runs as user defang gid 107 and uid 107. Hence the info below. #8 -- Using a temporary filesystem to speed up mail processing and lower disk I/O - If you have tmpfs in your kernel and you have enough RAM, then processing the emails on a ramdisk is the only way to go. Here's a simple way to achieve that thanks to Alan Premselaar Steffen Kaiser for the mount hint: #Stop sendmail mimedefang /etc/rc.d/init.d/sendmail stop /etc/rc.d/init.d/mimedefang stop mv /var/spool/MIMEDefang /var/spool/MIMEDefang.old mkdir /var/spool/MIMEDefang #add this line to /etc/fstab none/var/spool/MIMEDefang tmpfs uid=107,gid=107,mode=700,size=384M0 0 mount /var/spool/MIMEDefang NOTE: You'll want to place your bayesian database and auto-whitelist somewhere else as noted by Bill Curtis! - Original Message - From: Matthew Ward [EMAIL PROTECTED] To: mimedefang@lists.roaringpenguin.com Sent: Wednesday, April 27, 2005 3:15 PM Subject: [Mimedefang] using a RAM disk for mimedefang temp directory? we've been using mimedefang+spamassassin under sendmail for quite some time now, very successfully. looking around for ways to speed things up and/or just make them more efficient ... wondering if anyone has experience using a RAM disk (tmpfs as opposed to an expen$ive solid state disk) for mimedefang's temporary directory? am i right in assuming that the temporary directory is what configure calls spooldir and not the quarantinedir? or is there a separate temp dir? ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com http://lists.roaringpenguin.com/mailman/listinfo/mimedefang ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
Re: [Mimedefang] using a RAM disk for mimedefang temp directory?
--On Wednesday, April 27, 2005 3:28 PM -0400 David F. Skoll [EMAIL PROTECTED] wrote: Check the FAQ, especially: http://www.mimedefang.org/kwiki/index.cgi?RamBasedSpoolDirectory If you've been happy with MIMEDefang and have NOT been using a RAM disk, you must have a pretty low mail volume. I've been running from disk, after making a brief attempt at using a RAM disk a long time ago and having my system wedge when the disk filled. Is that still an issue with the Linux tmpfs? I checked the /var/spool/MIMEDefang directory to see how much space is in use and found the .spamassassin directory used to store system-wide Bayes and AWL. Does the RPM still use that directory as the defang user's home directory? Might /etc/mail/mimedefang be a better choice for that? ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
Re: [Mimedefang] using a RAM disk for mimedefang temp directory?
On Wed, 27 Apr 2005, Kevin A. McGrail wrote: NOTE: You'll want to place your bayesian database and auto-whitelist somewhere else as noted by Bill Curtis! I keep my bayes database on the ramdisk. My init scripts copy the db to disk on shutdown, and copy into ramdisk on startup. Sendmail is restarted every night for log rotation so worst case i'd lose a day of Bayes if the server crashed. Since SA is nailing bayes db on every message, i figured it can't hurt to have it on the ramdisk as well. ray -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Ray DeJean http://www.r-a-y.org Systems EngineerSoutheastern Louisiana University IBM Certified Specialist AIX Administration, AIX Support =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
Re: [Mimedefang] using a RAM disk for mimedefang temp directory?
Probably a good move. I got a little tired of the disk I/O grind with DB and Bayes/AWL and I'm using mySQL. It seems much better on using the resources of the server most efficiently. Regards, KAM I keep my bayes database on the ramdisk. My init scripts copy the db to disk on shutdown, and copy into ramdisk on startup. Sendmail is restarted every night for log rotation so worst case i'd lose a day of Bayes if the server crashed. Since SA is nailing bayes db on every message, i figured it can't hurt to have it on the ramdisk as well. ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
Re: [Mimedefang] using a RAM disk for mimedefang temp directory?
Kevin A. McGrail wrote: [keeping Bayes DB in RAM is] Probably a good move. I got a little tired of the disk I/O grind with DB and Bayes/AWL and I'm using mySQL. It seems much better on using the resources of the server most efficiently. That's strange. We use our own Bayes implementation in CanIt, and it's stored in a PostgreSQL database. We haven't had performance issues with that setup. Regards, David. ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com http://lists.roaringpenguin.com/mailman/listinfo/mimedefang