View previous topic :: View next topic |
Author |
Message |
konstk Tux's lil' helper
Joined: 13 Aug 2002 Posts: 75
|
Posted: Thu Aug 15, 2002 11:35 pm Post subject: tmpfs for compiling |
|
|
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 |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Fri Aug 16, 2002 3:27 am Post subject: Re: tmpfs for compiling |
|
|
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 |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Sun Aug 18, 2002 5:07 am Post subject: |
|
|
Or, see my ramdisk script that I wrote first and then realized could be applied here. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
|
|
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
|
|