Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 STXXL,有人可以帮我找到号码吗?我的程序(或算法或进程)完成了多少 I/O(或传输的块)?我知道如何限制任何特定进程的内存使用量,但不知道如何限制 STXXL 中的块大小以及如何计数。块转移。
STXXL 提供了一个I/O 性能计数器,请参阅此处,它存储各种测量的 I/O 数据(包括传输的块数)。
如果您在 Linux 上,blktrace将为您跟踪块 I/O。我不知道其他系统。