How do I measure net used disk space change due to activity by a given process in Linux?
问题 I'd like to monitor disk space requirements of a running process. Ideally, I want to be able to point to a process and find out the net change in used disk space attributable to it. Is there an easy way of doing this in Linux? (I'm pretty sure it would be feasible, though maybe not very easy, to do this in Solaris with DTrace) 回答1: Probably you'll have to ptrace it (or get strace to do it for you and parse the output), and then try to work out what disc is being used. This is nontrivial, as