Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
using tmpfs for emerge?
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
srkitch
Apprentice
Apprentice


Joined: 26 May 2006
Posts: 183

PostPosted: Thu Aug 24, 2006 3:48 pm    Post subject: using tmpfs for emerge? Reply with quote

i have been using a tmpfs mounted to /var/tmp/portage for compiling lately and was just wondering a couple of things.

here is my line from fstab dealing with the tmpfs
Code:
none                    /var/tmp/portage        tmpfs           size=850M,nr_inodes=1M  0 0

i ask b/c it seems that when the 850 MB of the tmpfs is used up, it won't use the swap. this leads to all sorts of compile time messages like
"Warning: XX/XX/XXXX file has moved" i'm pretty ssure that's b/c it has used up all of the space and started to overwrite the files, but why won't it use the swap? i even emerged two packes simultaneously and ran $ free in another console only to see that no matter what i did it only used 260 MB of the swap, while there's a full 4 GB available. any ideas? if it won't use the swap, why should i even have it? (ps i have 1024 MB of system RAM)


Last edited by srkitch on Thu Aug 24, 2006 4:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 8690
Location: beyond the rim

PostPosted: Thu Aug 24, 2006 3:59 pm    Post subject: Re: using tmpfs for emerge? Reply with quote

srkitch wrote:
i ask b/c it seems that when the 850 MB of the tmpfs is used up, it won't use the swap.

Right, as you told it to not use more than 850M.
Quote:
this leads to all sorts of compile time messages like "Warning: XX/XX/XXXX file has moved" i'm pretty ssure that's b/c it has used up all of the space and started to overwrite the files,

Nope, if it has used up all memory it will fail with "disk full" errors.
Back to top
View user's profile Send private message
srkitch
Apprentice
Apprentice


Joined: 26 May 2006
Posts: 183

PostPosted: Thu Aug 24, 2006 4:09 pm    Post subject: Re: using tmpfs for emerge? Reply with quote

Quote:
Quote:
this leads to all sorts of compile time messages like "Warning: XX/XX/XXXX file has moved" i'm pretty ssure that's b/c it has used up all of the space and started to overwrite the files,

Nope, if it has used up all memory it will fail with "disk full" errors.


i thought that the tmpfs will be re-used if the file isn't currently being used, i.e. if it uses file A, but later all available "free" space is used and file A is just sitting there, wiuld it write a new file in that space if it isn't being used?

also, should i just up the amount of memory it can use since i have 1GB of RAM? could i let it use the RAM for compiling and use the swap to run the system while its compiling? if i understand right as soon as the emerge process is done that RAM memory is released back to be used for whatever processes may need it, right?
Back to top
View user's profile Send private message
chtephan
Apprentice
Apprentice


Joined: 03 Feb 2004
Posts: 266
Location: Offenburg, Germany

PostPosted: Thu Aug 24, 2006 5:29 pm    Post subject: Reply with quote

I think the "file has moved" messages are from libtool when it is installing the libraries. Probably because of some sandbox/DISTDIR stuff. They're harmless (actually, ever compiled evolution? You sometimes get the impression that these warnings are taking up 50% of the total output ;)).
Back to top
View user's profile Send private message
markborg
n00b
n00b


Joined: 10 Oct 2005
Posts: 12
Location: Mississauga, Canada

PostPosted: Wed Feb 14, 2007 10:26 pm    Post subject: Tmpfs for emerge still gets used up Reply with quote

Dont know if this is still being followed, but I also use up all the tmpfs space. Is there features to NOT use if tmp is in ram?
Seems like whenever I use tmpfs, eventually compiles fail & I have to go back to disk based tmp.
Back to top
View user's profile Send private message
Simius
Apprentice
Apprentice


Joined: 26 Oct 2002
Posts: 219
Location: Budapest, Hungary

PostPosted: Thu Feb 15, 2007 9:20 am    Post subject: Reply with quote

For me tmpfs is mounted on everything that ends wih /tmp, and it works great for 99% of emerges.
And if i want to compile monsters like openoffice, I just umount /var/tmp, and bind mount a temp dir in /home to /var/tmp...
_________________
You kinda have to sneak up on a mac...
- PC vs MAC (http://www.youtube.com/watch?v=iEAGmBRC1dc)
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