Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disk usage stats.
#1
Hi folks.

I'm using all the usual code to get the main disk usage info, how big is the disk, how much available etc. but how can I get a current overhead snapshot like you get with the cpu readings?

If I ask the the cpu readings with the correct utils I get 27%, 32%, 3%, 56%. 4 readings, 1 for each cpu. This is the 'percentage' of processor overhead, or actually strain at that time.

I can't find anyway to get this snapshot for the disk. How much is the disk buffer being hammered at 'now' ?

Is this possible? I notice htop doesn't show this information.

Many thanks.
Reply
#2
for disk access stats, you might find something here: https://pypi.org/search/?q=real+time+disk+access+stats+
Reply
#3
Some interesting stuff, but sadly nothing that will do exactly what I need.

With a mixture of iotop atop ntop, etc I could get the numbers and calculate what I need, but that would be a real overhead problem. Running the utils needed, grepping (if even possible) the data I need, then compiling it will totally skew the processor usage.

I need this for a live monitor util which collects data and writes it out to a DB, a separate node runs a graphical interface to view live information of all 128 nodes. So anything that hammers the system is a problem. At the moment my monitoring code runs just under 2% of total processor time, I need to keep close to that.

Anyway... If anyone has anything please let me know.
Thanks.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Hard disk structure like a file selection dialog malonn 2 795 Aug-09-2023, 09:14 PM
Last Post: malonn
  sports Stats > table output loop problems paulfearn100 3 2,510 Jul-22-2020, 03:21 AM
Last Post: c_rutherford
  How to Calculate CPU, Disk, Memory and Network utilization rate skvivekanand 1 2,051 Jun-16-2020, 08:53 PM
Last Post: jefsummers
  how to write offset number to disk use python? Pyguys 4 3,056 Apr-11-2020, 07:53 AM
Last Post: Pyguys
  Exotic stats problem ; mode, fuzzy clusters, etc amyvaulhausen 5 3,852 Aug-06-2018, 04:10 PM
Last Post: Vysero
  Preventing useless multiple disk writes Steffenwolt 9 4,656 Jul-28-2018, 06:39 PM
Last Post: gontajones
  RAW IO disk access for SD Card shift838 1 8,585 Feb-27-2017, 03:35 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020