View previous topic :: View next topic |
Author |
Message |
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5941
|
Posted: Wed Nov 21, 2012 8:59 am Post subject: |
|
|
I have a small question about /var/tmp/portage on tmpfs, does the behavior is similar to /var/tmp/portage on disk when it comes to compilation failures? e.g. logs are still available?
also, will 6gb be enough? I thinking of moving /var/tmp/portage to ram but as my wife uses win7 with 10gb of ram, I don't want to run out of ram (got 16gb of ram and 16 gb of swap).
Thanks. _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Wed Nov 21, 2012 9:06 am Post subject: |
|
|
DaggyStyle wrote: | I have a small question about /var/tmp/portage on tmpfs, does the behavior is similar to /var/tmp/portage on disk when it comes to compilation failures? e.g. logs are still available? |
The behavior should be identical until the machine is powered off. I don't see why it would be different, since a tmpfs looks the same to Portage as any conventional filesystem.
Quote: | also, will 6gb be enough? I thinking of moving /var/tmp/portage to ram but as my wife uses win7 with 10gb of ram, I don't want to run out of ram (got 16gb of ram and 16 gb of swap). |
You mean your wife runs Win7 in a VM? It depends how large of a package you want to compile. Chromium, Firefox, Thunderbird and open/libreoffice take over 3GB; I don't know of another package that takes even 1GB. _________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9883 Location: almost Mile High in the USA
|
Posted: Wed Nov 21, 2012 9:15 am Post subject: |
|
|
Yes it's very odd that most apps don't get anywhere close to filling tmpfs. The only application that fails to build on my 2GB (1GB Tmpfs) system is firefox (since Libreoffice I use binaries). I suspect gcc and glibc are up there too but I don't ever recalling them fail to build. I typically hook up an external USB disk to build firefox on my eeepc that has 2GB RAM.
So far, as of right now, only my 8GB machine can build firefox completely in RAM, thus the 180G SSD520 disk gets write savings. The 128G Crucial is in a 4G machine and it however is not enough to build firefox. But I just disable tmpfs and let it use as much ssd to build firefox.
This leads to another issue, I sometimes wish Gentoo didn't build into a temp area then copy to root...that's a lot of extra writes... but I suppose there's no way to get around this and maintain ability to back out of changes... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5941
|
Posted: Wed Nov 21, 2012 11:06 am Post subject: |
|
|
Hypnos wrote: | DaggyStyle wrote: | I have a small question about /var/tmp/portage on tmpfs, does the behavior is similar to /var/tmp/portage on disk when it comes to compilation failures? e.g. logs are still available? |
The behavior should be identical until the machine is powered off. I don't see why it would be different, since a tmpfs looks the same to Portage as any conventional filesystem.
Quote: | also, will 6gb be enough? I thinking of moving /var/tmp/portage to ram but as my wife uses win7 with 10gb of ram, I don't want to run out of ram (got 16gb of ram and 16 gb of swap). |
You mean your wife runs Win7 in a VM? It depends how large of a package you want to compile. Chromium, Firefox, Thunderbird and open/libreoffice take over 3GB; I don't know of another package that takes even 1GB. |
yes, my wife runs Win7 in a VM.
if I'm not mistaken, libreoffice checks for minimal amount of ram, not sure how much. _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Wed Nov 21, 2012 11:43 am Post subject: |
|
|
Hypnos wrote: | You mean your wife runs Win7 in a VM? It depends how large of a package you want to compile. Chromium, Firefox, Thunderbird and open/libreoffice take over 3GB; I don't know of another package that takes even 1GB. | gcc will easily take close to 2G, and gcc with fortran enabled will take more than 2G. _________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
|
logical_guy Apprentice
Joined: 18 Sep 2007 Posts: 268
|
Posted: Wed Nov 21, 2012 1:36 pm Post subject: |
|
|
Looking at my filesystem, I have /tmp in tmpfs. Also, /usr/tmp is symlinked to /var/tmp, which is again symlinked to /tmp/.
Is this normal or did I do something I shouldn't have.. lol.
Guess that means /var/tmp, including /var/tmp/portage is already in RAM. |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Wed Nov 21, 2012 1:48 pm Post subject: |
|
|
ppurka,
I'll go with your figures since I have not emerged gcc recently.
***
logical_guy,
I think that's problematic, as the "portage" subdir will disappear every time you reboot. I would put /var/tmp/portage on a separate tmpfs. _________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6780
|
Posted: Thu Nov 22, 2012 6:56 pm Post subject: |
|
|
logical_guy wrote: | /usr/tmp is symlinked to /var/tmp, which is again symlinked to /tmp/. |
The first link is fine, the second does not conform to FHS: /var/tmp is supposed to live over reboots while /tmp is supposed to be cleaned on every boot. |
|
Back to top |
|
|
logical_guy Apprentice
Joined: 18 Sep 2007 Posts: 268
|
Posted: Thu Nov 22, 2012 10:42 pm Post subject: |
|
|
mv wrote: | logical_guy wrote: | /usr/tmp is symlinked to /var/tmp, which is again symlinked to /tmp/. |
The first link is fine, the second does not conform to FHS: /var/tmp is supposed to live over reboots while /tmp is supposed to be cleaned on every boot. |
Yeah, thanks for that. I've corrected it now. I have /var/tmp/portage in tmpfs now, should I throw /tmp in as well? |
|
Back to top |
|
|
|