| View previous topic :: View next topic |
| Author |
Message |
Yczo Tux's lil' helper


Joined: 09 Jul 2011 Posts: 94
|
Posted: Fri Dec 07, 2012 11:44 am Post subject: SSD and gentoo, ideas, opinion |
|
|
It's widely known that the SSD are the future of hard disks. It's also known that those expensive drives, easily broken through repeated overwriting, something that we usually do through compile.
I propose that (for 8 Gbyte ram pcs or more), mount /var/tmp/portage/ on a ramdisk (I believe that the real time compiled data are stored there), and on this way avoid to rewritte on the SSD.
What do you think guys? |
|
| Back to top |
|
 |
Hypnos Advocate


Joined: 18 Jul 2002 Posts: 2757 Location: Omnipresent
|
Posted: Fri Dec 07, 2012 11:52 am Post subject: |
|
|
Many people already do this, including me -- works fine.
There are numerous threads on this topic on the forums, if you want more details ... _________________ Personal overlay | Simple backup scheme |
|
| Back to top |
|
 |
Yczo Tux's lil' helper


Joined: 09 Jul 2011 Posts: 94
|
Posted: Fri Dec 07, 2012 12:20 pm Post subject: |
|
|
| upsss I'm sorry |
|
| Back to top |
|
 |
Hexorg Tux's lil' helper

Joined: 29 Oct 2009 Posts: 96
|
Posted: Sun Dec 16, 2012 3:30 pm Post subject: |
|
|
Yep, I do the same. I started mounting /var/tmp/portage to ram a while ago before I got an SSD, it's supposed to increase compile speed by a little, although I never noticed the difference.
Also, aside from SSD I have 80.0GB harddrive, and 2TB harddrive, so I moved some other folders to harddrives:
| Code: | /dev/sdc3 15G 3.6G 11G 26% /usr/portage
/dev/sdc5 1008M 34M 924M 4% /tmp
/dev/sdc6 15G 993M 14G 7% /usr/src
/dev/sdc7 461M 13M 424M 3% /var/log
tmpfs 6.0G 0 6.0G 0% /var/tmp
|
oh yeah, I moved /usr/src to the harddrive too because of kernel compilation. |
|
| Back to top |
|
 |
genstorm Advocate


Joined: 05 Apr 2007 Posts: 2238 Location: Austria
|
Posted: Sun Dec 16, 2012 3:56 pm Post subject: |
|
|
I've got here a 512GB Crusial m4 SSD inside my notebook, so not a lot of choice (space) to outsource any kind of high-volatile data to an HDD, apart from /tmp and /var/tmp/portage that I had in a tmpfs all the time already. I searched around a lot for _the_ perfect SSD setup, but in the end decided to simply not care about it, format most of it with one big ext4 partition (to be able to make the most of it) and set the usual 'noatime', plus 'discard' option inside /etc/fstab. Works fine. SSDs these days are much more robust than their first generation, as long as you didn't choose one of the infamous OCZ drives. _________________ backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic |
|
| Back to top |
|
 |
indietrash Guru

Joined: 17 Sep 2008 Posts: 343 Location: Norway
|
|
| Back to top |
|
 |
dmpogo Advocate

Joined: 02 Sep 2004 Posts: 2166 Location: Canada
|
Posted: Sun Dec 16, 2012 8:33 pm Post subject: |
|
|
And it is done easily by setting
| Code: |
PORTAGE_TMPFS="/dev/shm"
PORTAGE_TMPDIR="/dev/shm"
|
in make.conf
I do it even on 4Gb laptop (and even did that when it was 2Gb laptop until this August) |
|
| Back to top |
|
 |
_______0 Guru

Joined: 15 Oct 2012 Posts: 332
|
Posted: Tue Dec 18, 2012 1:39 pm Post subject: |
|
|
| dmpogo wrote: | And it is done easily by setting
| Code: |
PORTAGE_TMPFS="/dev/shm"
PORTAGE_TMPDIR="/dev/shm"
|
in make.conf
I do it even on 4Gb laptop (and even did that when it was 2Gb laptop until this August) |
That's it?? No need to create a directory in /tmp and add in fstab??
According to you I don't need this in fstab anymore:
| Code: | | tmpfs /tmp/temp tmpfs size=3G 0 0 |
mmm.. I'll try compiling firefox with pgo and see if it works. |
|
| Back to top |
|
 |
tholin n00b

Joined: 04 Oct 2008 Posts: 40
|
Posted: Tue Jan 01, 2013 3:59 pm Post subject: Re: SSD and gentoo, ideas, opinion |
|
|
| Yczo wrote: | | It's also known that those expensive drives, easily broken through repeated overwriting, something that we usually do through compile. |
That's really nothing you have to worry about on modern SSDs. The SSD I use now should last at least 4 years when doing constant 24h compiling to it, probably a lot longer. My two year old SSD that I recently switched out was still at 96% capacity and I used it for compiling, swap, tmp logs, FS logs and everything else. |
|
| Back to top |
|
 |
|