md, mount_mfs and swap

2008-06-03 Thread Christopher Sean Hilton
I've recently started playing with NetBSD and notice that by default  
it mounts /tmp as an MFS backed by swap. A quick read of the md,  
mount_mfs man page would lead me to believe that


 md /tmp rw,async,-s1024m 0 0

will move my /tmp dir to a swap backed 1G space. This would make me  
feel much more comfortable about my continuing adherence to the  
practice of giving my machine twice as much swap space as they have  
memory.


Are there any downsides to this?

-- Chris 



Chris Hilton   e: chris|at|vindaloo| 
dot|com


  The pattern juggler lifts his hand; The orchestra  
begin.
  As slowly turns the grinding wheel in the court of the crimson  
king.
   -- Ian McDonald / Peter  
Sinfield




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: md, mount_mfs and swap

2008-06-03 Thread RW
On Tue, 3 Jun 2008 17:43:27 -0400
Christopher Sean Hilton [EMAIL PROTECTED] wrote:

 I've recently started playing with NetBSD and notice that by default  
 it mounts /tmp as an MFS backed by swap. A quick read of the md,  
 mount_mfs man page would lead me to believe that
 
   md /tmp rw,async,-s1024m 0 0
 
 will move my /tmp dir to a swap backed 1G space. This would make me  
 feel much more comfortable about my continuing adherence to the  
 practice of giving my machine twice as much swap space as they have  
 memory.
 
 Are there any downsides to this?
 

Not in my experience. You can do it simply by adding the following to
rc.conf

tmpmfs=YES
tmpsize=1024m

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]