Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 209198 - Possibility to have /var/tmp/portage/$CATEGORY/$PACKAGE-$VERSION/work as a tempfs mounted in RAM
Summary: Possibility to have /var/tmp/portage/$CATEGORY/$PACKAGE-$VERSION/work as a te...
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-07 03:06 UTC by David Carlos Manuelda
Modified: 2008-02-07 11:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Carlos Manuelda 2008-02-07 03:06:26 UTC
I observed that everytime when emerging some things (not small ones: kdelibs, kdenetwork, firefox.. and so on), it keeps a lot of time after each install. Doing a ps -Af it tells me that it is deleting work directory which can lead to several minutes depending on number of files, file system, etc..

I propose to include a feature (maybe in FEATURES variable) to have that directory in a tmpfs mounted filesystem, and this way, the rm -rf (...)/work command can be skipped.

This is also good for the sake of the life of laptop's hard drives (just an example) and could keep of wasting time several minutes in each emerge.

As someone may think, maybe some programs could not compile due to lack of space, I think openoffice is one of them, in that case, it could be disabled by purpose..

Please, give me your opinion about this.

Reproducible: Always
Comment 1 Zac Medico gentoo-dev 2008-02-07 03:13:08 UTC
I don't thing we want to include this directly in portage but I've heard on something called bashrcng-shmfs that that's available in this overlay:

http://gechi-overlay.sourceforge.net/
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2008-02-07 09:33:56 UTC
Not going to mount filesystems in portage (that's just going to cause trouble).
Comment 3 Dustin Polke 2008-02-07 11:39:49 UTC
If you want to use this feature, you can set-up  a tmpfs yourself and, in /etc/make.conf, point the PORTAGE_TMPDIR to it and add 'noclean' to FEATURES.