我的新笔记本中有一个新的三星 ssd。我调整了所有内容以避免写入磁盘(firefox 配置文件和/var/log
内存中),我正在使用ext4
fsrelatime
并且我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
作为写作的操作(即使它不是 …