List Info

Thread: tmpfs or ramdrives for queue




tmpfs or ramdrives for queue
user name
2007-10-16 12:06:11

 

Has anyone experimented with tmpfs, ramdrives, or other ram–as–hard drive for use with the Maia?

 

I am thinking of implementing tmpfs to cut down hd utilization and I wanted to locate the folders where files are stored in temporarily during the mail processing

 

I am using SUSE Linux so /var/spool/postfix/active and /var/spool/postfix/incoming are target directories for me.  Are there any other high volume temp directories I want to look at, say where av scanning is done?

 

Todd

 

 

Re: tmpfs or ramdrives for queue
country flaguser name
United States
2007-10-16 12:30:09
Todd,

I put the amavis user's temp directory (/var/amavis/tmp)on a
tmpfs drive
and it seems to work nicely.

Ryan

> Has anyone experimented with tmpfs, ramdrives, or other
ram-as-hard drive
> for use with the Maia?
>
>
>
> I am thinking of implementing tmpfs to cut down hd
utilization and I
> wanted
> to locate the folders where files are stored in
temporarily during the
> mail
> processing.
>
>
>
> I am using SUSE Linux so /var/spool/postfix/active and
> /var/spool/postfix/incoming are target directories for
me.  Are there any
> other high volume temp directories I want to look at,
say where av
> scanning
> is done?
>
>
>
> Todd
>
>
>
>
>
> _______________________________________________
> Maia-users mailing list
> Maia-usersrenaissoft.com
> http://www.renaissoft.com/mailman/listinfo/maia-users
>


_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: tmpfs or ramdrives for queue
user name
2007-10-16 13:32:47
Mind if I ask how you set it up.

I tried: 

Mount -t tmpfs -o size=500M,uid=postfix,mode=700 tmpfs
/var/spool/postfix/active

This creates the tmpfs file system but then postfix stops
creating new files
in the active dir.  

Being new to Linux I read something a while back that
indicated I could
create the tmpfs dir somewhere else and then remap the
active dir to the
tmpfs but I cant find it now.

Todd


-----Original Message-----
From: Ryan Delany [mailto:ryanrynogear.com] 
Sent: Tuesday, October 16, 2007 12:30 PM
To: Todd
Cc: maia-usersrenaissoft.com
Subject: Re: [Maia-users] tmpfs or ramdrives for queue

Todd,

I put the amavis user's temp directory (/var/amavis/tmp)on a
tmpfs drive
and it seems to work nicely.

Ryan

> Has anyone experimented with tmpfs, ramdrives, or other
ram-as-hard drive
> for use with the Maia?
>
>
>
> I am thinking of implementing tmpfs to cut down hd
utilization and I
> wanted
> to locate the folders where files are stored in
temporarily during the
> mail
> processing.
>
>
>
> I am using SUSE Linux so /var/spool/postfix/active and
> /var/spool/postfix/incoming are target directories for
me.  Are there any
> other high volume temp directories I want to look at,
say where av
> scanning
> is done?
>
>
>
> Todd
>
>
>
>
>
> _______________________________________________
> Maia-users mailing list
> Maia-usersrenaissoft.com
> http://www.renaissoft.com/mailman/listinfo/maia-users
>





_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: tmpfs or ramdrives for queue
country flaguser name
United States
2007-10-16 14:22:56
Todd,

I use this command when building the server: (on CentOS)

echo "/dev/shm /var/amavis/tmp tmpfs
defaults,size=256m,mode=777 0 0" >>
/etc/fstab

It seems the main difference is the file permissions.  I set
the mode to
777 while yours is set to 700, which *should* work since you
set the owner
as postfix.  Although I don't know if all the postfix work
happens as the
postfix user, which may explain the problem.  Try setting it
to 777 and
see if that works.

Ryan

> Mind if I ask how you set it up.
>
> I tried:
>
> Mount -t tmpfs -o size=500M,uid=postfix,mode=700 tmpfs
> /var/spool/postfix/active
>
> This creates the tmpfs file system but then postfix
stops creating new
> files
> in the active dir.
>
> Being new to Linux I read something a while back that
indicated I could
> create the tmpfs dir somewhere else and then remap the
active dir to the
> tmpfs but I cant find it now.
>
> Todd
>
>
> -----Original Message-----
> From: Ryan Delany [mailto:ryanrynogear.com]
> Sent: Tuesday, October 16, 2007 12:30 PM
> To: Todd
> Cc: maia-usersrenaissoft.com
> Subject: Re: [Maia-users] tmpfs or ramdrives for queue
>
> Todd,
>
> I put the amavis user's temp directory
(/var/amavis/tmp)on a tmpfs drive
> and it seems to work nicely.
>
> Ryan
>
>> Has anyone experimented with tmpfs, ramdrives, or
other ram-as-hard
>> drive
>> for use with the Maia?
>>
>>
>>
>> I am thinking of implementing tmpfs to cut down hd
utilization and I
>> wanted
>> to locate the folders where files are stored in
temporarily during the
>> mail
>> processing.
>>
>>
>>
>> I am using SUSE Linux so /var/spool/postfix/active
and
>> /var/spool/postfix/incoming are target directories
for me.  Are there
>> any
>> other high volume temp directories I want to look
at, say where av
>> scanning
>> is done?
>>
>>
>>
>> Todd
>>
>>
>>
>>
>>
>> _______________________________________________
>> Maia-users mailing list
>> Maia-usersrenaissoft.com
>> http://www.renaissoft.com/mailman/listinfo/maia-users
>>
>
>
>
>
>


_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: tmpfs or ramdrives for queue
user name
2007-10-16 15:03:31
Well that didnt work,  I dont think its totally a
permissions issue though.
I tried it with the /var/spool/postfix/incoming dir and it
would create
files in the dir with the mode=777 but they just build up
and do not get
processed.  When I do it with the /var/spool/postfix/active
dir it does the
same as before, no emails are sent to the dir for
processing.  

I tried stopping postfix and amavisd first but I am
wondering if there may
be another process that is holding on to the old dir.  Since
you create
yours in the boot process then all processes would load onto
the tmpfs dir
after it was created. 

Todd


-----Original Message-----
From: Ryan Delany (RG) [mailto:ryanrynogear.com] 
Sent: Tuesday, October 16, 2007 2:23 PM
To: Todd
Cc: maia-usersrenaissoft.com
Subject: RE: [Maia-users] tmpfs or ramdrives for queue

Todd,

I use this command when building the server: (on CentOS)

echo "/dev/shm /var/amavis/tmp tmpfs
defaults,size=256m,mode=777 0 0" >>
/etc/fstab

It seems the main difference is the file permissions.  I set
the mode to
777 while yours is set to 700, which *should* work since you
set the owner
as postfix.  Although I don't know if all the postfix work
happens as the
postfix user, which may explain the problem.  Try setting it
to 777 and
see if that works.

Ryan

> Mind if I ask how you set it up.
>
> I tried:
>
> Mount -t tmpfs -o size=500M,uid=postfix,mode=700 tmpfs
> /var/spool/postfix/active
>
> This creates the tmpfs file system but then postfix
stops creating new
> files
> in the active dir.
>
> Being new to Linux I read something a while back that
indicated I could
> create the tmpfs dir somewhere else and then remap the
active dir to the
> tmpfs but I cant find it now.
>
> Todd
>
>
> -----Original Message-----
> From: Ryan Delany [mailto:ryanrynogear.com]
> Sent: Tuesday, October 16, 2007 12:30 PM
> To: Todd
> Cc: maia-usersrenaissoft.com
> Subject: Re: [Maia-users] tmpfs or ramdrives for queue
>
> Todd,
>
> I put the amavis user's temp directory
(/var/amavis/tmp)on a tmpfs drive
> and it seems to work nicely.
>
> Ryan
>
>> Has anyone experimented with tmpfs, ramdrives, or
other ram-as-hard
>> drive
>> for use with the Maia?
>>
>>
>>
>> I am thinking of implementing tmpfs to cut down hd
utilization and I
>> wanted
>> to locate the folders where files are stored in
temporarily during the
>> mail
>> processing.
>>
>>
>>
>> I am using SUSE Linux so /var/spool/postfix/active
and
>> /var/spool/postfix/incoming are target directories
for me.  Are there
>> any
>> other high volume temp directories I want to look
at, say where av
>> scanning
>> is done?
>>
>>
>>
>> Todd
>>
>>
>>
>>
>>
>> _______________________________________________
>> Maia-users mailing list
>> Maia-usersrenaissoft.com
>> http://www.renaissoft.com/mailman/listinfo/maia-users
>>
>
>
>
>
>





_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: tmpfs or ramdrives for queue
country flaguser name
United States
2007-10-17 01:26:03
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Oct 16, 2007, at 3:03 PM, Todd wrote:
> processed.  When I do it with the
/var/spool/postfix/active dir it  
> does the


> From: Ryan Delany (RG) [mailto:ryanrynogear.com]

> echo "/dev/shm /var/amavis/tmp tmpfs
defaults,size=256m,mode=777 0  
> 0" >>
> /etc/fstab

You guys are talking about different directories here... one
is  
amavisd-maia and one is postfix.

I'm not sure about postfix, but I think it is very unwise to
put  
postfix operations on a tmpfs.  It expects disk storage to
be  
permanent storage so that it can guarantee delivery.  I
don't know if  
they have a technical reason why it would break,  but I'd at
least  
consult with the postfi folks on whether it is advisable.


As for amavisd-maia, keep in mind that it has to be  large
enough to  
store attachments plus overhead... for some people who want
to have  
large attachments, this just isn't feasible.   You'll also
be  
stealing memory away from amavisd-maia and any other
critical  
components on the system.

I've never observed this to be the bottleneck... usually the
network  
lookups is the bottleneck, followed by the database.  Be
careful not  
to do any premature optimization.

David Morton
Maia Mailguard http://www.maiamailguard
.com
mortondadgrmm.net



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFHFar9Uy30ODPkzl0RAqQcAJ9mVCn9q77Q832y9wNtW0zPKEqSygCd
F4In
WfVWfrk/kIY/PFo6MPuUfXI=
=NOSR
-----END PGP SIGNATURE-----
_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )