Tags:
create new tag
view all tags

Using Solid State disks

Whilst SSDs will just work out the box, it is necessary to make some configuration changes to get the best out of them.

The <lcfg/options/ssd-disk.h> has been created to make the following changes for you :-

  • sets the I/O scheduler to 'deadline' for non-rotational disk devices.
    • Defining the LCFG_OPTIONS_SSD_DISK_NOOP_SCHEDULER option (before inclusion of the header) will set the scheduler to 'noop' instead of 'deadline'
  • for SL7/EL7, enables the 'fstrim' service

Partitions on SSD disks should be aligned to 4096 bytes. The LCFG_OPTIONS_SSD_DISK_ALIGNMENT(DISK) macro is provided to achieve this. (eg LCFG_OPTIONS_SSD_DISK_ALIGNMENT(sda) )

The following options are provided (and should be defined before including the header)

LCFG_OPTIONS_SSD_DISK_NOOP_SCHEDULER
for non-rotational devices, will set the scheduler to 'noop' instead of 'deadline'
LCFG_OPTIONS_SSD_DISK_ROOT
use if the SSD disk is being used to host the / and swap partitions. It sets the alignment of /dev/sda (fixed assumption) to 4096 bytes and reduces the kernel swapiness value to avoid writes to swap.

For more information on using SSDs under Linux see :-

-- Main.ascobie - 2016-08-29

Topic revision: r1 - 2016-08-29 - ascobie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback