SSD optimization on Debian (2014)
Hi all,
I wanted to upgrade my system to amd64 and used that opportunity to
install 2 240GB (1GB = 1000MB etc. unfortunately) SSDs on my rig.
The partition map is below:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 223.6G 0 disk
├─sda1 8:1 0 186M 0 part /boot
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 223.4G 0 part
├─gp01-root (dm-0) 254:0 0 1.9G 0 lvm /
├─gp01-swap (dm-1) 254:1 0 1.9G 0 lvm [SWAP]
├─gp01-usr (dm-10) 254:10 0 23.9G 0 lvm /usr
├─gp01-tmp (dm-11) 254:11 0 4.8G 0 lvm /tmp
├─gp01-var (dm-12) 254:12 0 4.8G 0 lvm /var
└─gp01-home (dm-13) 254:13 0 186.2G 0 lvm /home
sdb 8:32 0 223.6G 0 disk
└─sdb1 8:33 0 223.6G 0 part
└─gp02-virtual (dm-2) 254:2 0 143.1G 0 lvm /virtual
so there are two LVM volume groups with the first one on sda hosting the
OS and second on sdb using 1 partition for my VMs.
I have done the following for optimization (ref:
https://wiki.debian.org/SSDOptimization?action=show&redirect=SSDoptimization):
1) Kernel: Linux localhost 3.14-1-amd64 #1 SMP Debian 3.14.9-1
(2014-06-30) x86_64 GNU/Linux
2) Updated the firmware for the Intel 530 240GB disk
3) I have not gone into partition alignment for two reasons: 1) the
article on debian wiki refers to is from a long time ago, 2) blockdev
doesn't indicate misalignment (see below):
$> sudo blockdev --getalignoff /dev/sda1
0
$> sudo blockdev --getalignoff /dev/sda2
0
$> sudo blockdev --getalignoff /dev/sda5
0
4) For mounting file systems, I have added discard in /etc/fstab and
also enabled issue_discards in lvm.conf
5) Enabled deadline scheduler using udev rules as I intend to have two
HDDs reconnected.
6) Added vm.swappiness as kernel option in /etc/sysctl.d/local.conf
What I want to know at this point is:
Is there anything else that is recommended?
The section on RAMDISK options on tmpfs, does that help?
Lastly, the partition alignment discussion on
http://tytso.livejournal.com/2009/02/20/ is from 2009 - is it relevant
today?
Are any of the above "modifications" really necessary?
Thanks,
Kamal
Reply to: