Ubuntu は SSD の Trim に対応しているか

Windows 7SSD の Trim コマンドに対応しているという話をよく目にするのだが、
Linux の状況はどうなのか気になったので少し調べてみた。


Ubuntu 9.10 Karmic Koala ではまだ対応していなさそうだ。

KernelTeam/Specs/KarmicSSD - Ubuntu Wiki

Assumptions

* 2.6.31 will support the ATA TRIM command at the lower device level.
* SSD devices will be ATA TRIM enabled by 9.10 for testing.
* SSD devices can be detected either bit a ATA Spin bit being set to zero or, checking for SSD model in /sys/block/sd*/device/model against a whitelist (SSDs usually have an model string that contains SSD).

NotebookReview

while 2.6.32 supports the ATA TRIM command, it only does so for the btrfs file system. The 2.6.33 kernel released today now also supports it on ext4, nowadays the default file system in many distros.

Trim (computing) - Wikipedia

TRIM has been integrated in Linux 2.6.33

kernel/git/torvalds/linux.git - Linux kernel source tree
Log-structured file systems: There's one in every SSD [LWN.net]


とりあえず Ubuntu 9.10 を ext4 で利用しているが、10.04 が待ち遠しいところ。