BufferIO与DirectIO的比较
测试方法
使用BufferIO的方式, 测试文件的写入:
1 |
|
使用DirectIO的方式, 测试文件的写入:
1 |
|
运行结果
BufferIO:
1 | [root@ip-172-31-53-200 perf_records]# ./start_test_bufferio.sh |
DirectIO:
1 | [root@ip-172-31-53-200 perf_records]# ./start_test_directio.sh |
Perf 采样结果
BufferIO:

DirectIO:

本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Liarlee's Notebook!


