操作系统:centos7
测试文件:a.txt 1.2G
监控命令:iostat -xdm 1
The first scene:
cp a.txt b.txt #b.txt is not exist
Run Code Online (Sandbox Code Playgroud)
The second scene:
cp a.txt b.txt #b.txt is exist
Run Code Online (Sandbox Code Playgroud)
为什么第一个场景不消耗IO,而第二个场景消耗IO?