how to use the MFS ?

chris.scott krad at snaffler.net
Fri Jan 9 08:53:49 PST 2009


cd /usr/ports as normal

have a look at  man mount_unionfs

your basically stacking fs on top of each other
writes goto the tmpfs as its at the top of the stack

its not persistent over boots mind

PstreeM China wrote:
> i think the option WRKDIRPREFIX  is a good idea , and i whill test the 
> methon unionfs.
>
> but i want to know , after i mount the unionfs , like this :#mount -t 
> unionfs  /usr/ports /usr/ports.real
> the /usr/ports is  memery FS, what can i used to install software ??
> go to the dir : /usr/ports/**/** to install ,
> or go to dir dir : /usr/ports.real/*/* to install ??
>
> thank all!!
>
> On Fri, Jan 9, 2009 at 6:14 PM, chris.scott <krad at snaffler.net 
> <mailto:krad at snaffler.net>> wrote:
>
>     Wojciech Puchar wrote:
>
>             hi all:
>
>                 i want to know ,how to compile better speed during the
>             installation of
>             Ports , use the memery filesystem(MFS) ..
>
>                 during make world , mount the md0 to /usr/obj , but
>             what can i do for
>
>
>         better use tmpfs
>
>             the port ?
>
>
>         rm -rf /usr/ports/
>         mkdir /usr/ports
>         mount -t tmpfs tmpfs /usr/ports
>         portsnap extract
>
>         now build
>         _______________________________________________
>         freebsd-questions at freebsd.org
>         <mailto:freebsd-questions at freebsd.org> mailing list
>         http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>         To unsubscribe, send any mail to
>         "freebsd-questions-unsubscribe at freebsd.org
>         <mailto:freebsd-questions-unsubscribe at freebsd.org>"
>
>     quicker to do
>
>
>     mv /usr/ports /usr/ports.real
>
>     mkdir /usr/ports
>     mount -t tmpfs tmpfs /usr/ports
>     mount -t unionfs -o noatime /usr/ports /usr/ports.real
>
>
>     of cause tmpfs can actually start using disk space unlike a md
>     device so if you eat up to much ram with the compiles it will slow
>     down
>
>  
>



More information about the freebsd-questions mailing list