Posts tagged ‘ssd’

SSD + GPT + grub2 + systemd

Summary of my new Arch setup optimised for SSD. See ArchWiki for more tweaks.

Background

  • Specs: GA-EP45-DS3L, C2D E8400, 4GB DDR2, 512MB HD4850, 1x 640GB WD Black, 2x 1TB WD Green
  • Purchased: 120GB Intel 330 SSD

BIOS/UEFI settings

  • Firmware: EFI/UEFI instead of BIOS
  • SATA Mode: AHCI instead of IDE

Pre Installation

  • Partition: GPT instead of MBR

Arch Installation

  • Filesystem: ext2 for /boot; ext4 for the rest
  • fstab options: noatime, discard
  • Bootloader: GRUB2 instead of GRUB1/GRUB Legacy

Post Installation

  • Init: systemd instead of sysvinit
  • I/O scheduler: noop instead of cfq

Misc Output

systemd-analyze, gdisk, df, fstab, ls: https://gist.github.com/3107896

Udev: Changing SSD’s default (CFQ) I/O Scheduler

Courtesy of falconindy @ #archlinux

1
2
3
4
5
# set a larger readahead size
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/read_ahead_kb}="1024"
 
# set deadline scheduler for non-rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"

To verify:

$ cat /sys/block/sda/queue/scheduler
noop [deadline] cfq