Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SSD and gentoo, ideas, opinion
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Yczo
Apprentice
Apprentice


Joined: 09 Jul 2011
Posts: 225

PostPosted: Fri Dec 07, 2012 11:44 am    Post subject: SSD and gentoo, ideas, opinion Reply with quote

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
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Fri Dec 07, 2012 11:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Yczo
Apprentice
Apprentice


Joined: 09 Jul 2011
Posts: 225

PostPosted: Fri Dec 07, 2012 12:20 pm    Post subject: Reply with quote

upsss I'm sorry
Back to top
View user's profile Send private message
Hexorg
Tux's lil' helper
Tux's lil' helper


Joined: 29 Oct 2009
Posts: 116

PostPosted: Sun Dec 16, 2012 3:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8935

PostPosted: Sun Dec 16, 2012 3:56 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
indietrash
Guru
Guru


Joined: 17 Sep 2008
Posts: 353
Location: Norway

PostPosted: Sun Dec 16, 2012 7:46 pm    Post subject: Reply with quote

check my comments to bug 439276, https://bugs.gentoo.org/show_bug.cgi?id=439276.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Sun Dec 16, 2012 8:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Tue Dec 18, 2012 1:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
tholin
Apprentice
Apprentice


Joined: 04 Oct 2008
Posts: 203

PostPosted: Tue Jan 01, 2013 3:59 pm    Post subject: Re: SSD and gentoo, ideas, opinion Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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