Am 21.07.2013 16:42, schrieb Peter Wilmott:
> On 21/07/13 15:31, luis jure wrote:
>> OK, now i have my system successfully installed and running on my new
>> SSD.
>> now i have to decide what to do with the rest of the disk (it's a 256MB
>> samsung).
>>
>> the first big question is: what about swap? i found some web pages
>> (perhaps old) stating that it's not wise to put swap on the SSD
>> because of
>> all the read/writes. but apparently from what i read on the recent
>> thread on this list, that shouldn't be much of a concern now.
>>
>> i also read somewhere that if you have swap on the SSD and want to avoid
>> unnecessary read/writes, you can reduce swappiness. i have 12GB RAM and i
>> think normally i don't really need swap space on disk, so i thought that
>> could be a good idea.
>>
>> so what i'm planning to do now is:
>>
>> - put swap on the SSD
>> - reduce swappiness
>> - put /var/tmp/portage on tmpfs
>>
>> so, do you guys think that's a good setup?
>>
> TBH, unless you are really stressing your RAM usage (Lots of VMs or Java
> applications, stuff like that) I'd go without swap. I've been running
> swapless on 8GB of RAM for a number of years now with no issues.
> 
> As for /var/tmp/portage on tmpfs, this is fine 95% of the time, however
> even with ~2GB I allocate some packages (Chromium, LibreOffice, ect)
> will fail to compile due to lack of space. In these cases I just
> un-mount /var/tmp/portage, do the compile on the disk, and then re-mount
> it.
> 

Portage can do that for you for packages you know to need that much space:
markus@Nanga-Parbat ~ $ cat /etc/portage/env/notmpfs
PORTAGE_TMPDIR="/var/tmp_notmpfs"
[Fr 26.07.13 22:06 CEST][pts/2][x86_64/linux-gnu/3.10.1-gentoo][5.0.2]
markus@Nanga-Parbat ~ $ cat /etc/portage/package.env
www-client/firefox notmpfs
[Fr 26.07.13 22:06 CEST][pts/2][x86_64/linux-gnu/3.10.1-gentoo][5.0.2]
markus@Nanga-Parbat ~ $ mount | grep /var/tmp
/dev/mapper/Nanga--Parbat--SSD-system--var--tmp_notmpfs on
/var/tmp_notmpfs type btrfs (rw,noatime,ssd,autodefrag,compress=lzo)
none on /var/tmp type tmpfs (rw,size=6350m)

(Firefox is still in there from my pgo-builds, I should remove that now :D)

Also:
markus@Nanga-Parbat ~ $ free -h
             total       used       free     shared    buffers     cached
Mem:           15G        12G       3,6G         0B       336M       6,0G
-/+ buffers/cache:       5,7G       9,9G
Swap:           0B         0B         0B

never had any problems without swap, since i got more than 4GB of RAM ;)

Regards,
Markus

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to