| 438 | |
| 439 | = SSD = |
| 440 | * archja:Solid_State_Drives |
| 441 | * [http://bernaerts.dyndns.org/linux/74-ubuntu/250-ubuntu-tweaks-ssd Ubuntu - Tweaks for SSD drive] |
| 442 | > * /etc/udev/rules.d/60-schedulers.rules |
| 443 | > {{{ |
| 444 | > # Handle the scheduler choice according to the type of disk detected |
| 445 | > |
| 446 | > # system default : set cfq scheduler for rotating disks |
| 447 | > ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="cfq" |
| 448 | > |
| 449 | > # SSD specific : set deadline scheduler for non-rotating disks |
| 450 | > ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline" |
| 451 | > }}} |
| 452 | * [https://wiki.debian.org/SSDOptimization SSDOptimization - Debian Wiki] |
| 453 | > To check if the kernel knows about SSDs try: |
| 454 | > {{{ |
| 455 | > # for f in /sys/block/sd?/queue/rotational; do printf "$f is "; cat $f; done |
| 456 | > }}} |