Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • The sysstat package contains some utilities you might look in to like; iostat and sar. There is also a tool called iotop that you may find useful. Several answers in a similar vein that may help you here: unix.stackexchange.com/questions/55212/… Commented May 20, 2023 at 18:52
  • Thanks. It seems all these tools report bytes per second, is there any tool that print just total bytes in a time window that I specified ? Or probably I missed some command line flags in them? Commented May 20, 2023 at 23:15
  • You could always just run smartctl against the device and parse the output. Commented May 21, 2023 at 10:05
  • The question is not clear. Do you want only to know how much this specific program wrote to the disk? You also said that the program might "delete some intermediate data, write extra data". Why does it matter? If the program wrote intermediate data and deleted it, you don't want it to be included in the calculation? And what does "extra data" even mean? What types of "data" are there? Commented May 22, 2023 at 15:51