On 07/01/2025 21:08, Stefan Monnier wrote:
Something I'd run, passing it a PID and which would display a regularly
refreshed status of what the process is doing: MB/s read from the
filesystem, MB/s written to the filesystem

Just some ideas, perhaps to be discarded after evaluation.

It seems iotop may monitor specific process, atop may write logs. However IO accounting is tricky due to buffers, shared caches, and async queues.

You may try cgroup accounting by starting a process as a systemd unit. For ad hoc ones, see systemd-run (maybe with --scope).

To monitor list of opened files I would have a look into auditd. There is a chance that custom eBPF programs may be injected into suitable debug endpoints.

Reply via email to