Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Have 8GB memory want to use ramdisk to compile in.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
tuppe666
Guru
Guru


Joined: 02 Mar 2004
Posts: 423

PostPosted: Fri Dec 21, 2007 10:26 pm    Post subject: Have 8GB memory want to use ramdisk to compile in. Reply with quote

rather than filling my hard drive with temporary files is it possible to have a dynamic ramdisk or alternative to compile directly in RAM. I'm teased to do this with /tmp as well.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Fri Dec 21, 2007 10:38 pm    Post subject: Reply with quote

You can sort of do this on a default system as is. On a 4GB system it fits easily, (not sure about 2G), but all you need to do is to abuse the "disk" at /dev/shm (tmpfs) already available on most systems... just untar everything there and have at it. It will steal space from free RAM as you use up the "disk". This is where I finally got a new personal record bzImage + modules time on my E6700 machine, a complete kernel+modules compile in less than 3 minutes... best before this was a 3 minute compile of just kernel (no modules) on a Dual Celeron 450 (with leaner, more efficient gcc... this was probably in the egcs days, I don't remember anymore.)

Honestly it was merely an academic exercise, I prefer to keep all the obj files around just in case I want to build another kernel with slightly different options, saving me a complete (untar, reconfig,+) recompile.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
drwook
Veteran
Veteran


Joined: 30 Mar 2005
Posts: 1324
Location: London

PostPosted: Fri Dec 21, 2007 10:41 pm    Post subject: Reply with quote

mount tmpfs on /tmp and symlink to/mount another tmpfs on /var/tmp (or /var/tmp/portage), and give it a whirl.
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Sat Dec 22, 2007 6:58 am    Post subject: Reply with quote

Tip/Trick: using tmpfs for /tmp
Speeding up portage with Psyco+tmpfs ?!
TIP: emerge speed-up, compile in RAM not on disc.
RAM disks and Portage = more speed ?
_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sat Dec 22, 2007 10:14 am    Post subject: Reply with quote

Moved from Other Things Gentoo to Duplicate Threads.
See links in above post
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Przemek
n00b
n00b


Joined: 15 Mar 2008
Posts: 4

PostPosted: Sat Mar 15, 2008 1:03 pm    Post subject: Any point using tmpfs for portage tmp dir? Reply with quote

Wiki here http://gentoo-wiki.com/TIP_Speeding_up_portage_with_tmpfs says that mounting a tmpfs for portage tmp dir
can improve emerge speed. But it seems that normal disk caching of the linux kernel does the same job. I can hardly notice any difference,
so is there any point doing that optimization?
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sat Mar 15, 2008 1:09 pm    Post subject: Reply with quote

merged above post here.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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