Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
tmpfs for compiling
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
konstk
Tux's lil' helper
Tux's lil' helper


Joined: 13 Aug 2002
Posts: 75

PostPosted: Thu Aug 15, 2002 11:35 pm    Post subject: tmpfs for compiling Reply with quote

Does anyone think using tmpfs would be a good idea for compiling?

It would have to be done dynamically, maybe in the ebuilds or pre-ebuild post-ebuild, so as not to run out of memory.

Also does anyone know how to make tmpfs use swap when it runs out of it's allocated space?
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Fri Aug 16, 2002 3:27 am    Post subject: Re: tmpfs for compiling Reply with quote

konstk wrote:
Does anyone think using tmpfs would be a good idea for compiling?

Yes, except that I wouldn't consider this as a default, since there's no guarantee of a) how large a package will grow to or b) how much physical/virtual memory a user has.

konstk wrote:
It would have to be done dynamically ... so as not to run out of memory.

Can you explain your logic?

konstk wrote:
Also does anyone know how to make tmpfs use swap when it runs out of it's allocated space?

AFAIK it does by default.

Just "mount portage-temp /var/tmp/portage -t tmpfs" and emerge as much as you like. Portage cleans up after itself, and tmpfs (ought to) move stuff to disk as necessary and asyncronously, making everything go fast. (Though, most of compiling is CPU, not disk, so you probably won't see huge gains.)
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Sun Aug 18, 2002 5:07 am    Post subject: Reply with quote

Or, see my ramdisk script that I wrote first and then realized could be applied here. :D
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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