Tomas-M / iotop

A top utility for IO
Other
391 stars 51 forks source link

FR: Amount of IO per time #36

Closed pkese closed 1 year ago

pkese commented 2 years ago

Besides 'accumulated', it would be nice to have a view that would present the amount of IO per unit of time (depending on how long iotop or process is running).

I tend to run iotop in -Pa mode in a background terminal, but after a while I forget how long is it since I started iotop, which makes it difficult to calculate how much IO a certain process had done per day.

bbonev commented 2 years ago

Thanks for the suggestion. Most of the data required to implement this is already there and it wouldn't be too hard to implement. Please note that processes' lifetime do not necessarily match iotop's lifetime and iotop can only calculate the rate for the intersection of the lifetimes...

pkese commented 2 years ago

Sure. Anyway it works.

I really love and appreciate this tool.
iotop helped me to figure out that Firefox and Clickhouse together were writing about 1 TB of data each day to my SSD thus shortening lifespan of the disk. It didn't take much to fix the problem, but if I didn't have iotop, I'd just be scratching my head and asking myself, what the hell is eating away my SSD so rapidly.
So thank you. ❤️