Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New Gentoo Install on SSD
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
lum-X
Tux's lil' helper
Tux's lil' helper


Joined: 07 Mar 2011
Posts: 97
Location: Thessaloniki, Greece || Prishtina Kosovo

PostPosted: Sun Dec 25, 2011 5:23 pm    Post subject: New Gentoo Install on SSD Reply with quote

I just got my SSD and i had to change my laptop motherboard because it was broken. I wanted to push the limits by going for another model and it works, but thats a different story.

Now i have 8Gb of RAM, a SSD Crucial M4 128Gb and a HDD WD Scorpio Black 500Gb. I read the guide about SSD and i came up with this fstab.

Code:
#sda1 is SSD,
#sda2 is HDD partition 1 for data and stuff,
#sda3 is HDD partition 2 for gentoo.

#importand directories includinc home
/dev/sda1   /boot         ext4      noauto,noatime,discard   1 2
/dev/sda1   /         ext4      noatime,discard 0 0

#temp, log and other tings that write a lot have been moved to the HDD.
tmpfs      /tmp         tmpfs      defaults   0 0
/dev/sdb3   /usr/portage      ext4      noatime      0 0
/dev/sdb3   /var/tmp      ext4      noatime      0 0
/dev/sdb3   /var/log      ext4      noatime      0 0
/dev/sdb3   /var/db/pkg      ext4      noatime      0 0
tmpfs      /var/tmp/portage   tmpfs      noatime      0 0

#Cdrom and other filesystem mounts
/dev/cdrom   /mnt/cdrom      auto      noauto,user   0 0
/dev/sdc1   /gentoo/mnt/C      ntfs-3g      noatime,discard      0 0
/dev/sda2   /getnoo/mount/D      ntfs-3g      noatime      0 0

proc      /proc         proc      defaults   0 0
shm      /dev/shm      tmpfs      nodev,nosuid,noexec   0 0


This is more or less what i was thinking. I was also thinking to put home at sda3. I am planing to leave ~15Gb on SSD and about 15 on HDD.
What about filesystem should i go for reiserfs and should i install in on HDD and stau out of trouble.
Back to top
View user's profile Send private message
Tolstoi
l33t
l33t


Joined: 20 May 2004
Posts: 631

PostPosted: Mon Dec 26, 2011 6:48 pm    Post subject: Reply with quote

I've got everything on a SSD with ext4.
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1931
Location: Zurich, Switzerland

PostPosted: Mon Dec 26, 2011 7:06 pm    Post subject: Reply with quote

Just to get this straight: you have 2 drives in your laptop, 1 ssd and 1 hdd. right? If not, just drop the idea, and keep everything on the ssd - makes it much easier to handle.
please double check you drives and partition numbers - they not quite add up. And you need 1 partition per mount point(4x sdb3 will cause a mess), or you have to use bind (that is unless you are using btrfs with subvolumes)

from your idea, i would drop /var/db/pkg from the hdd, and keep it on the ssd. it basically describes, what you have installed.
the write access is pretty low, as only when a package is being installed or removed it get written.

On second thought, like Tolstoi said, why no just keep everything on the ssd? modern filesystems (ext4, xfs, btrfs) and 2nd and 3rd generation ssd are more than able to handle the writes. My notebook is running completely on ssd, and I have not yet seen any issues.


V.
_________________
read the portage output!
If my answer is too short, just ask for an explanation.
Back to top
View user's profile Send private message
whig
l33t
l33t


Joined: 27 Nov 2004
Posts: 970
Location: New Zealand

PostPosted: Mon Dec 26, 2011 7:09 pm    Post subject: Reply with quote

Code:
/dev/sda1   /boot         ext4      noauto,noatime,discard   1 2
/dev/sda1   /         ext4      noatime,discard 0 0

Two mount points for sda1, edit: and others - examples I take it.
Back to top
View user's profile Send private message
lum-X
Tux's lil' helper
Tux's lil' helper


Joined: 07 Mar 2011
Posts: 97
Location: Thessaloniki, Greece || Prishtina Kosovo

PostPosted: Mon Dec 26, 2011 8:47 pm    Post subject: Reply with quote

Yes i have 2 HDD. The SSD Crucial M4 128Gb and WD Scorpio Black 500Gb.

Yes i will fix the numbering and i was relying on the Gentoo SSD guide to move things from SSD to HDD. I just saw that i made mistakes on fstab because i wrote it without thinking what partitions layout I will have. I have 8Gb of ram.

I am planing to leave 20Gb for Gentoo and if i decide for the first solution i will leave another 15Gb for partitions it the HDD.

Code:

#sda1 is SSD for stupid Windows System Reserved,
#sda2 is SSD for stupid Windows,
#sda3 is SSD partition for Gentoo kernel /boot,
#sda4 is SSD partition for Gentoo,
#sdb1 for data and stuff,
#sdb2 is HDD partition 2 for gentoo,
#sdb3 is for  /var/tmp,     
#sdb4 is for  /var/log,     

#important directories includinc home
/dev/sda3   /boot         ext2      noauto,noatime,discard   1 2
/dev/sda4  /         ext4      noatime,discard 0 0

#temp, log and other tings that write a lot have been moved to the HDD.
tmpfs      /tmp         tmpfs      nodev,nosuid,noexec,noatime 0 0
/dev/sdb2   /usr/portage      ext4      noatime      0 0
/dev/sdb3   /var/tmp      ext4      noatime      0 0
/dev/sdb4   /var/log      ext4      noatime      0 0
tmpfs      /var/tmp/portage   tmpfs      nodev,nosuid,noexec,noatime 0 0

#Cdrom and other filesystem mounts
/dev/cdrom   /mnt/cdrom      auto      noauto,user   0 0
/dev/sda2   /gentoo/mnt/C      ntfs-3g      noatime   0 0
/dev/sdb1   /getnoo/mount/D      ntfs-3g      noatime      0 0

proc      /proc         proc      defaults   0 0
shm      /dev/shm      tmpfs      nodev,nosuid,noexec   0 0


or just make life easy


Code:

#sda1 is SSD for stupid Windows System Reserved,
#sda2 is SSD for stupid Windows,
#sda3 is SSD partition for Gentoo kernel /boot,
#sda4 is SSD partition for Gentoo,
#sdb1 for data and stuff,

#important directories includinc home
/dev/sda3   /boot         ext2      noauto,noatime,discard   1 2
/dev/sda4  /         ext4      noatime,discard 0 0

#temp, log and other tings that write a lot have been moved to the HDD.
tmpfs      /tmp         tmpfs      nodev,nosuid,noexec,noatime   0 0
tmpfs      /var/tmp/portage   tmpfs      nodev,nosuid,noexec,noatime      0 0

#Cdrom and other filesystem mounts
/dev/cdrom   /mnt/cdrom      auto      noauto,user   0 0
/dev/sda2   /gentoo/mnt/C      ntfs-3g      noatime   0 0
/dev/sdb1   /getnoo/mount/D      ntfs-3g      noatime      0 0

proc      /proc         proc      defaults   0 0
shm      /dev/shm      tmpfs      nodev,nosuid,noexec   0 0


and using noop scheduler for ssd
Grub config
Code:

title Gentoo Linux 2.6.34-r1
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel  /boot/kernel root=/dev/sda3 elevator=noop


or

and write this to rc.local
Code:
echo noop > /sys/block/sda/queue/scheduler


Guides that I used
http://www.zdnet.com/blog/perlow/geek-sheet-a-tweakers-guide-to-solid-state-drives-ssds-and-linux/9190

https://wiki.archlinux.org/index.php/Solid_State_Drives#Disabling_Journaling_on_the_Filesystem.3F
http://en.gentoo-wiki.com/wiki/Solid_State_Disk
http://www.linux-mag.com/id/7564/2/
Back to top
View user's profile Send private message
lum-X
Tux's lil' helper
Tux's lil' helper


Joined: 07 Mar 2011
Posts: 97
Location: Thessaloniki, Greece || Prishtina Kosovo

PostPosted: Tue Dec 27, 2011 2:09 am    Post subject: Reply with quote

what about these options

ext4 without journal with stride and stripe size equal to flash erase block size
btrfs with ssd_spread without treelog (?)
disable readahead

and i was thinking about this in case i want to delete or get something from tmp.
Code:
tmpfs  /media/Ramdisk  tmpfs  defaults,noatime,mode=1777,size=2048M 0


and according to this thread cfq scheduler is the best.
http://forums.gentoo.org/viewtopic-t-834065-start-25.html
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1086
Location: Motown

PostPosted: Thu Feb 16, 2012 5:59 pm    Post subject: Reply with quote

lum-X wrote:
and using noop scheduler for ssd
Grub config
Code:

title Gentoo Linux 2.6.34-r1
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel  /boot/kernel root=/dev/sda3 elevator=noop
or
and write this to rc.local
Code:
echo noop > /sys/block/sda/queue/scheduler


I don't think there's a need to change the default (CFQ) scheduler in later kernels for SSD's. But if you must then using udev is easier (and just like using UUID's for mounting it doesn't matter what your actual drive letter, sda, sdb, etc. is). Set this in your local udev rules (mine is /etc/udev/rules.d/10-local.rules):
Code:
ACTION=="add", SUBSYSTEM=="block", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="noop"
The rule comes from https://bugs.archlinux.org/task/22605, but be sure to note the comments.

Chris
Back to top
View user's profile Send private message
lum-X
Tux's lil' helper
Tux's lil' helper


Joined: 07 Mar 2011
Posts: 97
Location: Thessaloniki, Greece || Prishtina Kosovo

PostPosted: Fri Feb 17, 2012 10:35 am    Post subject: Reply with quote

I read that for multi core systems the best schedulers is CFQ.

i still have to fix some broken hard links for opengl and i have to see want im missing that i have this
Code:
pci0000:00: Requesting ACPI _OSC control (0x1d)
[    1.116845]  pci0000:00: ACPI _OSC request failed (AE_NOT_FOUND), returned control mask: 0x1d
[    1.117044] ACPI _OSC control for PCIe not granted, disabling ASPM


the rest is great and much more stable than it was before but i believe the with time and more experience i will make better gentoo.

thanks guys :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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