gpt4 book ai didi

performance - Mac OS X 中的每个进程磁盘读/写统计

转载 作者:行者123 更新时间:2023-12-03 11:37:43 25 4
gpt4 key购买 nike

如何在 Mac OS X 中以编程方式获取每个进程的磁盘 i/o 统计信息。在“事件监视器”应用程序或“top”命令中,我们只能获取整个系统磁盘 i/o 统计信息。
供引用Similar question asked for PC.

最佳答案

使用 iotop (作为根),例如:

iotop -C 3 10

但最好的方法(对我来说)是:
sudo fs_usage -f filesys

关于performance - Mac OS X 中的每个进程磁盘读/写统计,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15786618/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com