当前位置:   article > 正文

linux系统会自动trim吗,trim 开了么?

linux默认开启trim吗

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

[ice@ice_lns ~]$ sudo hdparm -Tt /dev/sda

[sudo] password for ice:

/dev/sda:

Timing cached reads: 15696 MB in 2.00 seconds = 7853.21 MB/sec

Timing buffered disk reads: 1562 MB in 3.00 seconds = 520.30 MB/sec

[ice@ice_lns ~]$ sudo hdparm -Tt /dev/sda

/dev/sda:

Timing cached reads: 16334 MB in 2.00 seconds = 8172.50 MB/sec

Timing buffered disk reads: 1564 MB in 3.00 seconds = 520.91 MB/sec

[ice@ice_lns ~]$ dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc

记录了1024+0 的读入

记录了1024+0 的写出

1073741824字节(1.1 GB)已复制,2.2377 秒,480 MB/秒

[ice@ice_lns ~]$ echo 3 > /proc/sys/vm/drop_caches

bash: /proc/sys/vm/drop_caches: 权限不够

[ice@ice_lns ~]$ sudo -s

[root@ice_lns ice]# echo noop > /sys/block/sda/queue/scheduler

[root@ice_lns ice]# dd if=tempfile of=/dev/null bs=1M count=1024

记录了1024+0 的读入

记录了1024+0 的写出

1073741824字节(1.1 GB)已复制,0.148724 秒,7.2 GB/秒

[root@ice_lns ice]# dd if=tempfile of=/dev/null bs=1M count=1024

记录了1024+0 的读入

记录了1024+0 的写出

1073741824字节(1.1 GB)已复制,0.129555 秒,8.3 GB/秒

[root@ice_lns ice]#

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/217450
推荐阅读
相关标签
  

闽ICP备14008679号