* [gentoo-user] SSD configuration
@ 2012-11-25 15:36 Jacques Montier
2012-11-25 15:44 ` Luis Gustavo Vilela de Oliveira
` (3 more replies)
0 siblings, 4 replies; 22+ messages in thread
From: Jacques Montier @ 2012-11-25 15:36 UTC (permalink / raw
To: gentoo-user@lists.gentoo.org
[-- Attachment #1.1: Type: text/plain, Size: 593 bytes --]
Hi all,
I bought a 250Go SSD M4 Crucial , read (of course) Gentoo documentation and
installed the drive on my desktop pc (Asus MB, Intel ie7 and 6Go RAM).
1- Everything seems to work perfectly, but i would like to know if my
configuration is ok or could be optimized.
/tmp and /var/log are on tmpfs
/boot, / and /var are on SSD (sda),
swap, /home, /usr/portage, /var/tmp and /var/log on a 1To SATA HDD (sdb)
You can see my attached file fstab.txt
2- When booting, BIOS seems to detect the SSD as IDE not SATA ; anything
wrong ?
Thank you very much for your response,
Cheers,
--
Jacques
[-- Attachment #1.2: Type: text/html, Size: 883 bytes --]
[-- Attachment #2: fstab.txt --]
[-- Type: text/plain, Size: 1837 bytes --]
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1 /boot ext2 defaults,noatime,discard 1 2
/dev/sda2 / ext4 defaults,noatime,nodiratime,discard 0 1
/dev/sda3 /var ext4 defaults,noatime,nodiratime,discard 0 0
/dev/sdb1 /mnt/donnees ntfs-3g auto,uid=jacques,gid=users,umask=0022 0 0
/dev/sdb2 none swap sw 0 0
/dev/sdb5 /usr/portage ext4 defaults,noatime,nodiratime 0 0
/dev/sdb6 /var/tmp ext4 defaults,noatime,nodiratime 0 0
/dev/sdb7 /home ext4 defaults,noatime,nodiratime 0 0
/dev/sdb8 /mnt/disk_virt ext4 defaults,noatime,nodiratime 0 0
//192.168.0.12/NetHDD /mnt/Iomega cifs noauto,guest,soft,users,iocharset=utf8,rw 0 0
//192.168.0.11/keynux /mnt/Keynux cifs noauto,guest,soft,users,iocharset=utf8,rw 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
#shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/log tmpfs defaults,noatime,mode=1777 0 0
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] SSD configuration
2012-11-25 15:36 [gentoo-user] SSD configuration Jacques Montier
@ 2012-11-25 15:44 ` Luis Gustavo Vilela de Oliveira
2012-11-25 16:34 ` Jacques Montier
2012-11-25 16:19 ` Florian Philipp
` (2 subsequent siblings)
3 siblings, 1 reply; 22+ messages in thread
From: Luis Gustavo Vilela de Oliveira @ 2012-11-25 15:44 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 748 bytes --]
You should look at the BIOS config, if AHCI is enable.
2012/11/25 Jacques Montier <jmontier@gmail.com>
> Hi all,
>
> I bought a 250Go SSD M4 Crucial , read (of course) Gentoo documentation
> and installed the drive on my desktop pc (Asus MB, Intel ie7 and 6Go RAM).
>
> 1- Everything seems to work perfectly, but i would like to know if my
> configuration is ok or could be optimized.
>
> /tmp and /var/log are on tmpfs
> /boot, / and /var are on SSD (sda),
> swap, /home, /usr/portage, /var/tmp and /var/log on a 1To SATA HDD (sdb)
> You can see my attached file fstab.txt
>
> 2- When booting, BIOS seems to detect the SSD as IDE not SATA ; anything
> wrong ?
>
> Thank you very much for your response,
>
> Cheers,
>
> --
> Jacques
>
>
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 1280 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] SSD configuration
2012-11-25 15:36 [gentoo-user] SSD configuration Jacques Montier
2012-11-25 15:44 ` Luis Gustavo Vilela de Oliveira
@ 2012-11-25 16:19 ` Florian Philipp
2012-11-25 17:23 ` Jacques Montier
2012-11-25 16:30 ` Volker Armin Hemmann
2012-11-25 20:18 ` Alex Schuster
3 siblings, 1 reply; 22+ messages in thread
From: Florian Philipp @ 2012-11-25 16:19 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1499 bytes --]
Am 25.11.2012 16:36, schrieb Jacques Montier:
> Hi all,
>
> I bought a 250Go SSD M4 Crucial , read (of course) Gentoo documentation
> and installed the drive on my desktop pc (Asus MB, Intel ie7 and 6Go RAM).
>
> 1- Everything seems to work perfectly, but i would like to know if my
> configuration is ok or could be optimized.
>
> /dev/sda1 /boot ext2 defaults,noatime,discard 1 2
You don't need to specify "defaults" when there is any other option
present. Defaults is just there so that the column is not empty if you
do not specify any option.
> /dev/sda2 / ext4 defaults,noatime,nodiratime,discard 0 1
noatime implies nodiratime. Specifying both is redundant.
> /dev/sda3 /var ext4 defaults,noatime,nodiratime,discard 0 0
> /dev/sdb1 /mnt/donnees ntfs-3g auto,uid=jacques,gid=users,umask=0022 0 0
> /dev/sdb2 none swap sw 0 0
Swap on SSD would be faster but I guess you want to avoid the additional
writes.
> /dev/sdb5 /usr/portage ext4 defaults,noatime,nodiratime 0 0
> /dev/sdb6 /var/tmp ext4 defaults,noatime,nodiratime 0 0
> /dev/sdb7 /home ext4 defaults,noatime,nodiratime 0 0
For home, auto_da_alloc trades a little performance for additional
security against stupid applications that forget to fsync().
> /dev/sdb8 /mnt/disk_virt ext4 defaults,noatime,nodiratime 0 0
Regards,
Florian Philipp
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] SSD configuration
2012-11-25 15:36 [gentoo-user] SSD configuration Jacques Montier
2012-11-25 15:44 ` Luis Gustavo Vilela de Oliveira
2012-11-25 16:19 ` Florian Philipp
@ 2012-11-25 16:30 ` Volker Armin Hemmann
2012-11-25 20:18 ` Alex Schuster
3 siblings, 0 replies; 22+ messages in thread
From: Volker Armin Hemmann @ 2012-11-25 16:30 UTC (permalink / raw
To: gentoo-user; +Cc: Jacques Montier
Am Sonntag, 25. November 2012, 16:36:06 schrieb Jacques Montier:
> Hi all,
>
> I bought a 250Go SSD M4 Crucial , read (of course) Gentoo documentation and
> installed the drive on my desktop pc (Asus MB, Intel ie7 and 6Go RAM).
>
> 1- Everything seems to work perfectly, but i would like to know if my
> configuration is ok or could be optimized.
>
> /tmp and /var/log are on tmpfs
not good. /tmp good, /var/log really not good. Do I have to explain it or do
you can think of some reasons for yourself? Really, /var/log is a lot more
important than /var/tmp.
You could put /var/tmp/portage onto tmpfs
> /boot, / and /var are on SSD (sda),
> swap, /home, /usr/portage, /var/tmp and /var/log on a 1To SATA HDD (sdb)
ok, I would put /var on the hdd and /home on the ssd with all bigger data on
the hdd (like pics, ogg, movies)
> 2- When booting, BIOS seems to detect the SSD as IDE not SATA ; anything
> wrong ?
>
yes
--
#163933
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] SSD configuration
2012-11-25 15:44 ` Luis Gustavo Vilela de Oliveira
@ 2012-11-25 16:34 ` Jacques Montier
2012-11-25 18:27 ` Florian Philipp
0 siblings, 1 reply; 22+ messages in thread
From: Jacques Montier @ 2012-11-25 16:34 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]
Thank you Luis,
In BIOS, i switched to AHCI instead of IDE Mode, but the system does not
boot.
I get kernel panic (No filesystem could mount root...)
My kernel configuration :
CONFIG_SATA_AHCI=y
--
Jacques
2012/11/25 Luis Gustavo Vilela de Oliveira <luisgustavo.vilela@gmail.com>
> You should look at the BIOS config, if AHCI is enable.
>
>
> 2012/11/25 Jacques Montier <jmontier@gmail.com>
>
>> Hi all,
>>
>> I bought a 250Go SSD M4 Crucial , read (of course) Gentoo documentation
>> and installed the drive on my desktop pc (Asus MB, Intel ie7 and 6Go RAM).
>>
>> 1- Everything seems to work perfectly, but i would like to know if my
>> configuration is ok or could be optimized.
>>
>> /tmp and /var/log are on tmpfs
>> /boot, / and /var are on SSD (sda),
>> swap, /home, /usr/portage, /var/tmp and /var/log on a 1To SATA HDD (sdb)
>> You can see my attached file fstab.txt
>>
>> 2- When booting, BIOS seems to detect the SSD as IDE not SATA ; anything
>> wrong ?
>>
>> Thank you very much for your response,
>>
>> Cheers,
>>
>> --
>> Jacques
>>
>>
>>
>>
>>
>>
>
[-- Attachment #2: Type: text/html, Size: 1977 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] SSD configuration
2012-11-25 16:19 ` Florian Philipp
@ 2012-11-25 17:23 ` Jacques Montier
0 siblings, 0 replies; 22+ messages in thread
From: Jacques Montier @ 2012-11-25 17:23 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1841 bytes --]
So i just kept noatime and discard options (for SSD).
Thank you Florian,
--
Jacques
2012/11/25 Florian Philipp <lists@binarywings.net>
> Am 25.11.2012 16:36, schrieb Jacques Montier:
> > Hi all,
> >
> > I bought a 250Go SSD M4 Crucial , read (of course) Gentoo documentation
> > and installed the drive on my desktop pc (Asus MB, Intel ie7 and 6Go
> RAM).
> >
> > 1- Everything seems to work perfectly, but i would like to know if my
> > configuration is ok or could be optimized.
> >
> > /dev/sda1 /boot ext2
> defaults,noatime,discard 1 2
>
> You don't need to specify "defaults" when there is any other option
> present. Defaults is just there so that the column is not empty if you
> do not specify any option.
>
> > /dev/sda2 / ext4
> defaults,noatime,nodiratime,discard 0 1
>
> noatime implies nodiratime. Specifying both is redundant.
>
> > /dev/sda3 /var ext4
> defaults,noatime,nodiratime,discard 0 0
> > /dev/sdb1 /mnt/donnees ntfs-3g
> auto,uid=jacques,gid=users,umask=0022 0 0
> > /dev/sdb2 none swap sw
> 0 0
>
> Swap on SSD would be faster but I guess you want to avoid the additional
> writes.
>
> > /dev/sdb5 /usr/portage ext4
> defaults,noatime,nodiratime 0 0
> > /dev/sdb6 /var/tmp ext4
> defaults,noatime,nodiratime 0 0
> > /dev/sdb7 /home ext4
> defaults,noatime,nodiratime 0 0
>
> For home, auto_da_alloc trades a little performance for additional
> security against stupid applications that forget to fsync().
>
> > /dev/sdb8 /mnt/disk_virt ext4
> defaults,noatime,nodiratime 0 0
>
>
> Regards,
> Florian Philipp
>
>
[-- Attachment #2: Type: text/html, Size: 2467 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] SSD configuration
2012-11-25 16:34 ` Jacques Montier
@ 2012-11-25 18:27 ` Florian Philipp
2012-11-25 21:37 ` Jacques Montier
0 siblings, 1 reply; 22+ messages in thread
From: Florian Philipp @ 2012-11-25 18:27 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1002 bytes --]
Am 25.11.2012 17:34, schrieb Jacques Montier:
> 2012/11/25 Luis Gustavo Vilela de Oliveira <luisgustavo.vilela@gmail.com
> <mailto:luisgustavo.vilela@gmail.com>>
> 2012/11/25 Jacques Montier <jmontier@gmail.com
> <mailto:jmontier@gmail.com>>
[...]
> 2- When booting, BIOS seems to detect the SSD as IDE not SATA ;
> anything wrong ?
>
>
> You should look at the BIOS config, if AHCI is enable.
>
>
> Thank you Luis,
>
> In BIOS, i switched to AHCI instead of IDE Mode, but the system does not
> boot.
> I get kernel panic (No filesystem could mount root...)
>
> My kernel configuration :
> CONFIG_SATA_AHCI=y
>
It is possible that the change switched the device naming, making sda
sdb and vice versa. Try to boot from a live-CD to verify that. You can
also do this to check if you missed a module.
BTW: Please don't top-post, both Luis and Jaques. Put your answers below
the quoted messages (like I did).
Regards,
Florian Philipp
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] SSD configuration
2012-11-25 15:36 [gentoo-user] SSD configuration Jacques Montier
` (2 preceding siblings ...)
2012-11-25 16:30 ` Volker Armin Hemmann
@ 2012-11-25 20:18 ` Alex Schuster
2012-11-25 21:43 ` Jacques Montier
3 siblings, 1 reply; 22+ messages in thread
From: Alex Schuster @ 2012-11-25 20:18 UTC (permalink / raw
To: gentoo-user
Jacques Montier writes:
> I bought a 250Go SSD M4 Crucial , read (of course) Gentoo documentation
> and installed the drive on my desktop pc (Asus MB, Intel ie7 and 6Go RAM).
>
> 1- Everything seems to work perfectly, but i would like to know if my
> configuration is ok or could be optimized.
>
> /tmp and /var/log are on tmpfs
Like Volker said. Yikes! Or is that just a typo and you meant /var/tmp?
Still, I would prefer to have that on the HDD.
> /boot, / and /var are on SSD (sda),
> swap, /home, /usr/portage, /var/tmp and /var/log on a 1To SATA HDD (sdb)
I would put the portage tree on the SDD.
Wonko
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] SSD configuration
2012-11-25 18:27 ` Florian Philipp
@ 2012-11-25 21:37 ` Jacques Montier
0 siblings, 0 replies; 22+ messages in thread
From: Jacques Montier @ 2012-11-25 21:37 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1466 bytes --]
2012/11/25 Florian Philipp <lists@binarywings.net>
> Am 25.11.2012 17:34, schrieb Jacques Montier:
> > 2012/11/25 Luis Gustavo Vilela de Oliveira <luisgustavo.vilela@gmail.com
> > <mailto:luisgustavo.vilela@gmail.com>>
> > 2012/11/25 Jacques Montier <jmontier@gmail.com
> > <mailto:jmontier@gmail.com>>
> [...]
> > 2- When booting, BIOS seems to detect the SSD as IDE not SATA ;
> > anything wrong ?
> >
> >
> > You should look at the BIOS config, if AHCI is enable.
> >
> >
> > Thank you Luis,
> >
> > In BIOS, i switched to AHCI instead of IDE Mode, but the system does not
> > boot.
> > I get kernel panic (No filesystem could mount root...)
> >
> > My kernel configuration :
> > CONFIG_SATA_AHCI=y
> >
>
> It is possible that the change switched the device naming, making sda
> sdb and vice versa. Try to boot from a live-CD to verify that. You can
> also do this to check if you missed a module.
>
> BTW: Please don't top-post, both Luis and Jaques. Put your answers below
> the quoted messages (like I did).
>
> Regards,
> Florian Philipp
>
>
Sorry Florian for the top-post.
Well, you were right !
The live-cd SysRescueCd showed all the devices switched ; sdb instead of
sda.
Renaming all the devices and system was booting again.
Nevetheless, i felt that with AHCI BIOS Mode, the SSD was slightly less
reactive than the IDE Mode.
Do you think that could be possible ?
May be, i am completely wrong...
Best regards,
--
Jacques
[-- Attachment #2: Type: text/html, Size: 2350 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] SSD configuration
2012-11-25 20:18 ` Alex Schuster
@ 2012-11-25 21:43 ` Jacques Montier
2012-11-26 0:33 ` microcai
2012-11-26 7:45 ` Daniel Troeder
0 siblings, 2 replies; 22+ messages in thread
From: Jacques Montier @ 2012-11-25 21:43 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 878 bytes --]
2012/11/25 Alex Schuster <wonko@wonkology.org>
> Jacques Montier writes:
>
> I bought a 250Go SSD M4 Crucial , read (of course) Gentoo documentation
>> and installed the drive on my desktop pc (Asus MB, Intel ie7 and 6Go RAM).
>>
>> 1- Everything seems to work perfectly, but i would like to know if my
>> configuration is ok or could be optimized.
>>
>> /tmp and /var/log are on tmpfs
>>
>
> Like Volker said. Yikes! Or is that just a typo and you meant /var/tmp?
> Still, I would prefer to have that on the HDD.
>
>
> /boot, / and /var are on SSD (sda),
>> swap, /home, /usr/portage, /var/tmp and /var/log on a 1To SATA HDD (sdb)
>>
>
> I would put the portage tree on the SDD.
>
> Wonko
>
>
Alex,
Each time you sync the portage, you should write on the SSD...
Is it a good thing ?
As Volker said, i put /var on the HDD, and it works fine.
Regards,
--
Jacques
[-- Attachment #2: Type: text/html, Size: 1627 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] SSD configuration
2012-11-25 21:43 ` Jacques Montier
@ 2012-11-26 0:33 ` microcai
2012-11-26 7:45 ` Daniel Troeder
1 sibling, 0 replies; 22+ messages in thread
From: microcai @ 2012-11-26 0:33 UTC (permalink / raw
To: gentoo-user
2012/11/26 Jacques Montier <jmontier@gmail.com>:
>
>
> 2012/11/25 Alex Schuster <wonko@wonkology.org>
>>
>> Jacques Montier writes:
>>
>>> I bought a 250Go SSD M4 Crucial , read (of course) Gentoo documentation
>>> and installed the drive on my desktop pc (Asus MB, Intel ie7 and 6Go
>>> RAM).
>>>
>>> 1- Everything seems to work perfectly, but i would like to know if my
>>> configuration is ok or could be optimized.
>>>
>>> /tmp and /var/log are on tmpfs
>>
>>
>> Like Volker said. Yikes! Or is that just a typo and you meant /var/tmp?
>> Still, I would prefer to have that on the HDD.
>>
>>
>>> /boot, / and /var are on SSD (sda),
>>> swap, /home, /usr/portage, /var/tmp and /var/log on a 1To SATA HDD (sdb)
>>
>>
>> I would put the portage tree on the SDD.
>>
>> Wonko
>>
>
>
> Alex,
>
> Each time you sync the portage, you should write on the SSD...
> Is it a good thing ?
yes, then you can ask a new one within the garentee time.
> As Volker said, i put /var on the HDD, and it works fine.
>
> Regards,
>
> --
> Jacques
>
>
>
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] SSD configuration
2012-11-25 21:43 ` Jacques Montier
2012-11-26 0:33 ` microcai
@ 2012-11-26 7:45 ` Daniel Troeder
2012-11-26 13:33 ` Jacques Montier
2012-11-26 14:01 ` Volker Armin Hemmann
1 sibling, 2 replies; 22+ messages in thread
From: Daniel Troeder @ 2012-11-26 7:45 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 614 bytes --]
On 25.11.2012 22:43, Jacques Montier wrote:
> Each time you sync the portage, you should write on the SSD...
> Is it a good thing ?
It is the best thing since rsync! Really - it is amazing!
And about portage: you write in your portage tree not nearly as often as
in /home. SSDs don't die as quickly as you think. The most important
thing about wear leveling is to keep 10% free disk space in all
partitions and enable discard. You'll be fine then.
--
PGP key @
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x837FB8B5BB9D4887
# gpg --recv-keys --keyserver hkp://subkeys.pgp.net 0xBB9D4887
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] SSD configuration
2012-11-26 7:45 ` Daniel Troeder
@ 2012-11-26 13:33 ` Jacques Montier
2012-11-26 14:21 ` Luis Gustavo Vilela de Oliveira
2012-11-26 14:01 ` Volker Armin Hemmann
1 sibling, 1 reply; 22+ messages in thread
From: Jacques Montier @ 2012-11-26 13:33 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1042 bytes --]
2012/11/26 Daniel Troeder <daniel@admin-box.com>
> On 25.11.2012 22:43, Jacques Montier wrote:
> > Each time you sync the portage, you should write on the SSD...
> > Is it a good thing ?
> It is the best thing since rsync! Really - it is amazing!
>
> And about portage: you write in your portage tree not nearly as often as
> in /home. SSDs don't die as quickly as you think. The most important
> thing about wear leveling is to keep 10% free disk space in all
> partitions and enable discard. You'll be fine then.
>
>
> --
> PGP key @
> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x837FB8B5BB9D4887
> # gpg --recv-keys --keyserver hkp://subkeys.pgp.net 0xBB9D4887
>
> Hi all,
Finally, i put :
/boot , / and /home on SSD,
/var and /usr/portage on HDD
Big files on HDD and some symlinks pointing to HDD (.config, .local, etc...)
/tmp and /home/<user>/.cache to tmpfs.
Everything works perfectly and now it's fast and silent ; a real pleasure !
Next time i'll have to go to 8Go RAM.
thanks to all of you !
Regards,
--
Jacques
[-- Attachment #2: Type: text/html, Size: 1859 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] SSD configuration
2012-11-26 7:45 ` Daniel Troeder
2012-11-26 13:33 ` Jacques Montier
@ 2012-11-26 14:01 ` Volker Armin Hemmann
2012-11-26 15:01 ` Daniel Troeder
1 sibling, 1 reply; 22+ messages in thread
From: Volker Armin Hemmann @ 2012-11-26 14:01 UTC (permalink / raw
To: gentoo-user; +Cc: Daniel Troeder
Am Montag, 26. November 2012, 08:45:44 schrieb Daniel Troeder:
> On 25.11.2012 22:43, Jacques Montier wrote:
> > Each time you sync the portage, you should write on the SSD...
> > Is it a good thing ?
>
> It is the best thing since rsync! Really - it is amazing!
>
> And about portage: you write in your portage tree not nearly as often as
> in /home. SSDs don't die as quickly as you think. The most important
> thing about wear leveling is to keep 10% free disk space in all
> partitions and enable discard. You'll be fine then.
you know that flash's survival rate went down with every shrink? That today's
flash is just crap?
And before you make any assumptions on warranties - read the documentation of
the vendor. Would be bad if there was some usage clause hidden in the mess....
2 year warranty only covers production defects. Not failure because of abuse.
--
#163933
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] SSD configuration
2012-11-26 13:33 ` Jacques Montier
@ 2012-11-26 14:21 ` Luis Gustavo Vilela de Oliveira
2012-11-26 14:35 ` Alex Schuster
0 siblings, 1 reply; 22+ messages in thread
From: Luis Gustavo Vilela de Oliveira @ 2012-11-26 14:21 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1460 bytes --]
Well, with 8Gb RAM, i recommend use tmpfs on PORTAGE_TMPDIR, just while u
are compiling anything.
Or even with 6Gb too.
I don't worry to much about use the SSD, the only thing that i do is use
distfiles, music/video/photos on HDD to safe space.
And the TMPDIR thing when i'm compiling a lot of things.
2012/11/26 Jacques Montier <jmontier@gmail.com>
>
>
> 2012/11/26 Daniel Troeder <daniel@admin-box.com>
>
>> On 25.11.2012 22:43, Jacques Montier wrote:
>> > Each time you sync the portage, you should write on the SSD...
>> > Is it a good thing ?
>> It is the best thing since rsync! Really - it is amazing!
>>
>> And about portage: you write in your portage tree not nearly as often as
>> in /home. SSDs don't die as quickly as you think. The most important
>> thing about wear leveling is to keep 10% free disk space in all
>> partitions and enable discard. You'll be fine then.
>>
>>
>> --
>> PGP key @
>> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x837FB8B5BB9D4887
>> # gpg --recv-keys --keyserver hkp://subkeys.pgp.net 0xBB9D4887
>>
>> Hi all,
>
> Finally, i put :
>
> /boot , / and /home on SSD,
> /var and /usr/portage on HDD
> Big files on HDD and some symlinks pointing to HDD (.config, .local,
> etc...)
> /tmp and /home/<user>/.cache to tmpfs.
>
> Everything works perfectly and now it's fast and silent ; a real pleasure
> !
>
> Next time i'll have to go to 8Go RAM.
>
> thanks to all of you !
>
> Regards,
>
> --
> Jacques
>
>
>
[-- Attachment #2: Type: text/html, Size: 2597 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] SSD configuration
2012-11-26 14:21 ` Luis Gustavo Vilela de Oliveira
@ 2012-11-26 14:35 ` Alex Schuster
2012-11-26 15:11 ` Daniel Troeder
` (3 more replies)
0 siblings, 4 replies; 22+ messages in thread
From: Alex Schuster @ 2012-11-26 14:35 UTC (permalink / raw
To: gentoo-user
Luis Gustavo Vilela de Oliveira writes:
> Well, with 8Gb RAM, i recommend use tmpfs on PORTAGE_TMPDIR, just while
> u are compiling anything.
> Or even with 6Gb too.
I have 16 GB, with 8GB for $PORTAGE_TMPDIR on tmpfs. There were issues
with some packages having not enough space, so I have this in
/etc/portage/package.env:
app-office/libreoffice notmpfs.conf
dev-java/icedtea notmpfs.conf
games-fps/alienarena notmpfs.conf
games-fps/worldofpadman notmpfs.conf
games-sports/vdrift notmpfs.conf
mail-client/thunderbird notmpfs.conf
www-client/firefox notmpfs.conf
/etc/portage/env.d/notmpfs.conf has this entry, changing PORTAGE_TMPDIR
to real HDD space:
PORTAGE_TMPDIR=/var/portage/tmp
Most of these packages compile with 8 GB of space, but not with parallel
merges, like when Thunderbird and Firefox are both being built at the
same time.
Alex
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] SSD configuration
2012-11-26 14:01 ` Volker Armin Hemmann
@ 2012-11-26 15:01 ` Daniel Troeder
0 siblings, 0 replies; 22+ messages in thread
From: Daniel Troeder @ 2012-11-26 15:01 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 540 bytes --]
On 26.11.2012 15:01, Volker Armin Hemmann wrote:
> 2 year warranty only covers production defects. Not failure because
> of abuse.
I cannot imagine it to say "do not let your OS swap on this flash disk".
Most people have no clue what swap is, and all those netbooks nowadays
have only a cheap SSD at all... but to be ure, I'll look into the
warrenty later.
Greetings,
Daniel
--
PGP key @
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x837FB8B5BB9D4887
# gpg --recv-keys --keyserver hkp://subkeys.pgp.net 0xBB9D4887
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] SSD configuration
2012-11-26 14:35 ` Alex Schuster
@ 2012-11-26 15:11 ` Daniel Troeder
2012-11-26 15:51 ` Luis Gustavo Vilela de Oliveira
` (2 subsequent siblings)
3 siblings, 0 replies; 22+ messages in thread
From: Daniel Troeder @ 2012-11-26 15:11 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1365 bytes --]
On 26.11.2012 15:35, Alex Schuster wrote:
> Luis Gustavo Vilela de Oliveira writes:
>
>> Well, with 8Gb RAM, i recommend use tmpfs on PORTAGE_TMPDIR, just while
>> u are compiling anything.
>> Or even with 6Gb too.
>
> I have 16 GB, with 8GB for $PORTAGE_TMPDIR on tmpfs. There were issues
> with some packages having not enough space, so I have this in
> /etc/portage/package.env:
>
> app-office/libreoffice notmpfs.conf
> dev-java/icedtea notmpfs.conf
> games-fps/alienarena notmpfs.conf
> games-fps/worldofpadman notmpfs.conf
> games-sports/vdrift notmpfs.conf
> mail-client/thunderbird notmpfs.conf
> www-client/firefox notmpfs.conf
>
> /etc/portage/env.d/notmpfs.conf has this entry, changing PORTAGE_TMPDIR
> to real HDD space:
>
> PORTAGE_TMPDIR=/var/portage/tmp
>
> Most of these packages compile with 8 GB of space, but not with parallel
> merges, like when Thunderbird and Firefox are both being built at the
> same time.
>
> Alex
THANK YOU!!
You solved a problem I have been having for some time.
This should go to the "easy Gentoo tricks" thread :)
Very happy,
Daniel
--
PGP key @
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x837FB8B5BB9D4887
# gpg --recv-keys --keyserver hkp://subkeys.pgp.net 0xBB9D4887
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] SSD configuration
2012-11-26 14:35 ` Alex Schuster
2012-11-26 15:11 ` Daniel Troeder
@ 2012-11-26 15:51 ` Luis Gustavo Vilela de Oliveira
2012-11-26 15:54 ` Jacques Montier
2012-11-26 16:08 ` Dale
3 siblings, 0 replies; 22+ messages in thread
From: Luis Gustavo Vilela de Oliveira @ 2012-11-26 15:51 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1307 bytes --]
Nice way to handle that. I only had problems with libreoffice.
But i mount the tmpdir ondemand, and when libreoffice needs update i use
the SSD instead.
I have 16GB too, and in general use 4GB for tmpfs on TMPDIR, i think only
some packages need more then that.
2012/11/26 Alex Schuster <wonko@wonkology.org>
> Luis Gustavo Vilela de Oliveira writes:
>
> Well, with 8Gb RAM, i recommend use tmpfs on PORTAGE_TMPDIR, just while
>> u are compiling anything.
>> Or even with 6Gb too.
>>
>
> I have 16 GB, with 8GB for $PORTAGE_TMPDIR on tmpfs. There were issues
> with some packages having not enough space, so I have this in
> /etc/portage/package.env:
>
> app-office/libreoffice notmpfs.conf
> dev-java/icedtea notmpfs.conf
> games-fps/alienarena notmpfs.conf
> games-fps/worldofpadman notmpfs.conf
> games-sports/vdrift notmpfs.conf
> mail-client/thunderbird notmpfs.conf
> www-client/firefox notmpfs.conf
>
> /etc/portage/env.d/notmpfs.**conf has this entry, changing PORTAGE_TMPDIR
> to real HDD space:
>
> PORTAGE_TMPDIR=/var/portage/**tmp
>
> Most of these packages compile with 8 GB of space, but not with parallel
> merges, like when Thunderbird and Firefox are both being built at the same
> time.
>
> Alex
>
>
[-- Attachment #2: Type: text/html, Size: 1895 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] SSD configuration
2012-11-26 14:35 ` Alex Schuster
2012-11-26 15:11 ` Daniel Troeder
2012-11-26 15:51 ` Luis Gustavo Vilela de Oliveira
@ 2012-11-26 15:54 ` Jacques Montier
2012-11-26 16:14 ` Luis Gustavo Vilela de Oliveira
2012-11-26 16:08 ` Dale
3 siblings, 1 reply; 22+ messages in thread
From: Jacques Montier @ 2012-11-26 15:54 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1358 bytes --]
2012/11/26 Alex Schuster <wonko@wonkology.org>
> Luis Gustavo Vilela de Oliveira writes:
>
> Well, with 8Gb RAM, i recommend use tmpfs on PORTAGE_TMPDIR, just while
>> u are compiling anything.
>> Or even with 6Gb too.
>>
>
> I have 16 GB, with 8GB for $PORTAGE_TMPDIR on tmpfs. There were issues
> with some packages having not enough space, so I have this in
> /etc/portage/package.env:
>
> app-office/libreoffice notmpfs.conf
> dev-java/icedtea notmpfs.conf
> games-fps/alienarena notmpfs.conf
> games-fps/worldofpadman notmpfs.conf
> games-sports/vdrift notmpfs.conf
> mail-client/thunderbird notmpfs.conf
> www-client/firefox notmpfs.conf
>
> /etc/portage/env.d/notmpfs.**conf has this entry, changing PORTAGE_TMPDIR
> to real HDD space:
>
> PORTAGE_TMPDIR=/var/portage/**tmp
>
> Most of these packages compile with 8 GB of space, but not with parallel
> merges, like when Thunderbird and Firefox are both being built at the same
> time.
>
> Alex
>
>
Ok Alex and Luis,
So i put :
PORTAGE_TMPDIR="tmpfs" in /etc/make.conf
PORTAGE_TMPDIR=/var/tmp/portage (on HDD) in /etc/portage/env
in /etc/portage/package.env :
app-office/libreoffice notmpfs.conf
mail-client/thunderbird notmpfs.conf
www-client/firefox notmpfs.conf
Thanks to both of you :-)
Regards
--
Jacques
[-- Attachment #2: Type: text/html, Size: 2085 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] SSD configuration
2012-11-26 14:35 ` Alex Schuster
` (2 preceding siblings ...)
2012-11-26 15:54 ` Jacques Montier
@ 2012-11-26 16:08 ` Dale
3 siblings, 0 replies; 22+ messages in thread
From: Dale @ 2012-11-26 16:08 UTC (permalink / raw
To: gentoo-user
Alex Schuster wrote:
> Luis Gustavo Vilela de Oliveira writes:
>
>> Well, with 8Gb RAM, i recommend use tmpfs on PORTAGE_TMPDIR, just while
>> u are compiling anything.
>> Or even with 6Gb too.
>
> I have 16 GB, with 8GB for $PORTAGE_TMPDIR on tmpfs. There were issues
> with some packages having not enough space, so I have this in
> /etc/portage/package.env:
>
> app-office/libreoffice notmpfs.conf
> dev-java/icedtea notmpfs.conf
> games-fps/alienarena notmpfs.conf
> games-fps/worldofpadman notmpfs.conf
> games-sports/vdrift notmpfs.conf
> mail-client/thunderbird notmpfs.conf
> www-client/firefox notmpfs.conf
>
> /etc/portage/env.d/notmpfs.conf has this entry, changing
> PORTAGE_TMPDIR to real HDD space:
>
> PORTAGE_TMPDIR=/var/portage/tmp
>
> Most of these packages compile with 8 GB of space, but not with
> parallel merges, like when Thunderbird and Firefox are both being
> built at the same time.
>
> Alex
>
>
I used to have trouble with LOo but a few versions ago, that stopped.
It now compiles with 8Gbs of tmpfs. You may want to try removing it and
see if you get the same results. I have also never had trouble with
Firefox or icedtea but don't think I have the others installed.
Just a thought.
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or how you interpreted my words!
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-user] SSD configuration
2012-11-26 15:54 ` Jacques Montier
@ 2012-11-26 16:14 ` Luis Gustavo Vilela de Oliveira
0 siblings, 0 replies; 22+ messages in thread
From: Luis Gustavo Vilela de Oliveira @ 2012-11-26 16:14 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1836 bytes --]
I think u misunderstand, i belive that what Schuster have is tmpfs always
mounted on /var/tmp/portage, and PORTAGE_TMPDIR will be that.
When he need more than 8Gb in some package PORTAGE_TMPDIR will be
/var/portage/tmp and that on HDD.
What i have is /var/tmp/portage on tmpfs config in fstab with noauto, so
when i want to emerge a lot of things i mount that.
2012/11/26 Jacques Montier <jmontier@gmail.com>
> 2012/11/26 Alex Schuster <wonko@wonkology.org>
>
>> Luis Gustavo Vilela de Oliveira writes:
>>
>> Well, with 8Gb RAM, i recommend use tmpfs on PORTAGE_TMPDIR, just while
>>> u are compiling anything.
>>> Or even with 6Gb too.
>>>
>>
>> I have 16 GB, with 8GB for $PORTAGE_TMPDIR on tmpfs. There were issues
>> with some packages having not enough space, so I have this in
>> /etc/portage/package.env:
>>
>> app-office/libreoffice notmpfs.conf
>> dev-java/icedtea notmpfs.conf
>> games-fps/alienarena notmpfs.conf
>> games-fps/worldofpadman notmpfs.conf
>> games-sports/vdrift notmpfs.conf
>> mail-client/thunderbird notmpfs.conf
>> www-client/firefox notmpfs.conf
>>
>> /etc/portage/env.d/notmpfs.**conf has this entry, changing
>> PORTAGE_TMPDIR to real HDD space:
>>
>> PORTAGE_TMPDIR=/var/portage/**tmp
>>
>> Most of these packages compile with 8 GB of space, but not with parallel
>> merges, like when Thunderbird and Firefox are both being built at the same
>> time.
>>
>> Alex
>>
>>
>
> Ok Alex and Luis,
>
> So i put :
> PORTAGE_TMPDIR="tmpfs" in /etc/make.conf
> PORTAGE_TMPDIR=/var/tmp/portage (on HDD) in /etc/portage/env
> in /etc/portage/package.env :
> app-office/libreoffice notmpfs.conf
> mail-client/thunderbird notmpfs.conf
> www-client/firefox notmpfs.conf
>
> Thanks to both of you :-)
>
> Regards
>
> --
> Jacques
>
[-- Attachment #2: Type: text/html, Size: 3366 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
end of thread, other threads:[~2012-11-26 16:16 UTC | newest]
Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-25 15:36 [gentoo-user] SSD configuration Jacques Montier
2012-11-25 15:44 ` Luis Gustavo Vilela de Oliveira
2012-11-25 16:34 ` Jacques Montier
2012-11-25 18:27 ` Florian Philipp
2012-11-25 21:37 ` Jacques Montier
2012-11-25 16:19 ` Florian Philipp
2012-11-25 17:23 ` Jacques Montier
2012-11-25 16:30 ` Volker Armin Hemmann
2012-11-25 20:18 ` Alex Schuster
2012-11-25 21:43 ` Jacques Montier
2012-11-26 0:33 ` microcai
2012-11-26 7:45 ` Daniel Troeder
2012-11-26 13:33 ` Jacques Montier
2012-11-26 14:21 ` Luis Gustavo Vilela de Oliveira
2012-11-26 14:35 ` Alex Schuster
2012-11-26 15:11 ` Daniel Troeder
2012-11-26 15:51 ` Luis Gustavo Vilela de Oliveira
2012-11-26 15:54 ` Jacques Montier
2012-11-26 16:14 ` Luis Gustavo Vilela de Oliveira
2012-11-26 16:08 ` Dale
2012-11-26 14:01 ` Volker Armin Hemmann
2012-11-26 15:01 ` Daniel Troeder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox