Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PORTAGE_TMPDIR on unionfs with tmpfs howto ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Mon Oct 04, 2010 8:48 am    Post subject: PORTAGE_TMPDIR on unionfs with tmpfs howto ? Reply with quote

hi,

some days ago i read a howto somewhere on the inet that described how to define a unionfs that consists of a tmpfs and ordinary disk space. the result is space to compile large packages that lies in RAM, only when the space requirements exceed tmpfs size, rotating disk space is used.
now i cannot find that howto ?
has anyone seen that ?
thanks in advance.
Back to top
View user's profile Send private message
SLBMEH
Apprentice
Apprentice


Joined: 16 Aug 2003
Posts: 299
Location: Pittsburgh, PA

PostPosted: Mon Oct 11, 2010 3:51 pm    Post subject: Reply with quote

I have never seen what you are talking about before, but it sounds fairly simple.

1. Install UnionFS support.
2. Make your tmpfs dir. (/mnt/portage-tmpfs)
3. Make your overflow dir. (/mnt/portage-overflow)
4. Make your tmpdir mount with a union between the two with tmpfs being placed first.

mount -t unionfs -o dirs=/mnt/portage-tmpfs=rw:/mnt/portage-overflow=rw unionfs /var/tmp/portage

I am at a school computer at the moment, so I can't verify that this works. I will do further experimentation when I get home.

Edit: Or you can use AuFS in place of UnionFS, which IMO is safer when dealing with accidental/intentional direct branch access. http://aufs.sourceforge.net/aufs2/man.html
_________________
Steve - Semper Fi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum