레드햇에서 SSD 사용하시는 분들은 트림지원이 관건이 될거 같네요.
EXT4파일시스템에서만 옵션을 통해서 할수 있다고 하는데
다른 RHEL5의 EXT3에서는 방법이 없을까요..
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/newmds-ssdtuning.html
설정을 위해서는 아래 내용을 참조바랍니다:
/etc/fstab에 아래와 같이 discard 옵션을 넣어주면 됩니다. ext4만 지원합니다.
/dev/sda5 /opt ext4 defaults,discard 0 0
Deployment Considerations
Because of the internal layout and operation of SSDs, it is best to partition devices on an internal erase block boundary. Partitioning utilities in Red Hat Enterprise Linux 6 chooses sane defaults if the SSD exports topology information. This is especially true if the exported topology information includes alignment offsets and optimal I/O sizes.
However, if the device does not export topology information, Red Hat recommends that the first partition be created at a 1MB boundary.
In addition, keep in mind that logical volumes, device-mapper targets, and md
targets do not support TRIM
. As such, the default Red Hat Enterprise Linux 6 installation will not allow the use of the TRIM
command, since this install uses DM-linear targets.
Red Hat also warns that software RAID levels 1, 4, 5, and 6 are not recommended for use on SSDs. During the initialization stage of these RAID levels, some RAID management utilities (such as mdadm
) write to all of the blocks on the storage device to ensure that checksums operate properly. This will cause the performance of the SSD to degrade quickly.
At present, ext4 is the only fully-supported file system that supports TRIM
. To enable TRIM
commands on a device, use the mount
option discard
. For example, to mount /dev/sda2
to /mnt
with TRIM
enabled, run:
mount -t ext4 -o discard /dev/sda2 /mnt
By default, ext4 does not issue the TRIM
command. This is mostly to avoid problems on devices which may not properly implement the TRIM
command. The Linux swap
code will issue TRIM
commands to TRIM
-enabled devices, and there is no option to control this behaviour
첫댓글 그렇군요. 문서에는 ext4에서만 full support되는 군요..