小编fcl*_*lad的帖子

fstrim 和 iostat

我的新笔记本中有一个新的三星 ssd。我调整了所有内容以避免写入磁盘(firefox 配置文件和/var/log内存中),我正在使用ext4fsrelatime并且我fstrim每天使用一次来修剪我的 ssd。

我用iostat -dhm. 运行前fstrim的命令iostat所示

Device:            tps    MB_read/s    MB_wrtn/s    MB_read    MB_wrtn
sda
              4.97         0.05         0.59       1856      20924
Run Code Online (Sandbox Code Playgroud)

修剪后 /home

# fstrim -v /home
/home: 100.2 GiB (107555401728 bytes) trimmed
Run Code Online (Sandbox Code Playgroud)

ìostat 显示

Device:            tps    MB_read/s    MB_wrtn/s    MB_read    MB_wrtn
sda
              5.91         0.05         3.51       1859     123498
Run Code Online (Sandbox Code Playgroud)

MB_wrtn增加了102574 MB。这是否意味着fstrim正在写入102574 MB = 100.2 GB我的磁盘?

Trim 应该“标记”不包含有效数据的页面,而不是写入它们。

我想iostat看到了fstrim作为写作的操作(即使它不是 …

io ssd trim

5
推荐指数
1
解决办法
2035
查看次数

标签 统计

io ×1

ssd ×1

trim ×1