简体   繁体   English

如何查找进程是否正在执行顺序/随机写入

[英]How to find if a process is doing sequential/random write

在GNU / Linux中量化这个的最佳技术是什么。

This is not exactly an answer but.. 这不是一个答案,但..

If you mean writing to a file, you can use strace and look for pwrite or lseek + write combination. 如果您的意思是写入文件,您可以使用strace并查找pwritelseek + write组合。 Check for offset in pwrite or lseek to figure out its sequential or not. 检查pwritelseek偏移量以确定其顺序与否。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM