По непонятной причине не работает трим. Установил себе SSD, в fstab прописал discard — трим все равно не заработал. ОС — Debian Squeeze c ядром 3.2 из Backports, ФС — ext4, журналирование не отключал, система работает в режиме ACHI.
Выводы команд и конфиги — ниже под спойлером:
uname -a$ uname -a
$ Linux erdees-netbook 3.2.0-0.bpo.2-686-pae #1 SMP Mon Apr 23 09:33:57 UTC 2012 i686 GNU/Linux
Проверка работоспособности трима проверялась так:
# dd if=/dev/urandom of=tempfile count=10 bs=512k oflag=direct
# hdparm --fibmap tempfile
# hdparm --read-sector [ADDRESS] /dev/sda
# rm tempfile
# sync
После повторения шага 3 изменений не наблюдалось.
fstab$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda1 during installation
UUID=eb07b6cb-e4ed-47a7-9518-19272a91a01a / ext4 noatime,discard,errors=remount-ro 0 1
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
tmpfs /tmp tmpfs defaults 0 0
tmpfs /var/tmp tmpfs defaults 0 0
tmpfs /var/lock tmpfs defaults 0 0
dmesg | grep -С2 fs[ 0.156347] Brought up 2 CPUs
[ 0.156425] Total of 2 processors activated (6666.08 BogoMIPS).
[ 0.157046] devtmpfs: initialized
[ 0.157046] PM: Registering ACPI NVS region at 7f69e000 (270336 bytes)
[ 0.157046] print_constraints: dummy:
--
[ 0.312573] pci 0000:00:1d.7: PCI INT A disabled
[ 0.312677] PCI: CLS 32 bytes, default 64
[ 0.312798] Unpacking initramfs...
[ 0.812392] Freeing initrd memory: 9320k freed
[ 0.820263] audit: initializing netlink socket (disabled)
--
[ 1.383550] atl1c 0000:01:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[ 1.383665] atl1c 0000:01:00.0: setting latency timer to 64
[ 1.457277] usbcore: registered new interface driver usbfs
[ 1.457436] usbcore: registered new interface driver hub
[ 1.459375] SCSI subsystem initialized
--
[ 4.046459] sda: sda1
[ 4.047279] sd 0:0:0:0: [sda] Attached SCSI disk
[ 4.431266] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 4.780181] udev[278]: starting version 164
[ 4.947507] input: Lid Switch as /devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input1
--
[ 6.451865] psmouse serio1: synaptics: Touchpad model: 1, fw: 7.2, id: 0x1a0b1, caps: 0xd04733/0xa40000/0xa0000
[ 6.531948] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio1/input/input10
[ 6.567201] EXT4-fs (sda1): re-mounted. Opts: (null)
[ 6.615786] EXT4-fs (sda1): re-mounted. Opts: discard,errors=remount-ro
[ 6.660193] loop: module loaded
[ 7.150429] fuse init (API version 7.17)
P.S. — SSD — SSDNow V200 128 GB