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
  Mirroring disk structures in nested dictionaries Curbie 12 2,254 Oct-01-2024, 10:52 PM
Last Post: Curbie
  DEC pack, unpack and disk-images Curbie 32 6,976 Aug-23-2024, 03:37 PM
Last Post: Curbie
  Windows Disk Cleanup Code Help Needed nal2us2 3 1,036 Jul-19-2024, 04:03 AM
Last Post: deanhystad
  Hard disk structure like a file selection dialog malonn 2 1,732 Aug-09-2023, 09:14 PM
Last Post: malonn
  sports Stats > table output loop problems paulfearn100 3 3,270 Jul-22-2020, 03:21 AM
Last Post: c_rutherford
  How to Calculate CPU, Disk, Memory and Network utilization rate skvivekanand 1 2,631 Jun-16-2020, 08:53 PM
Last Post: jefsummers
  how to write offset number to disk use python? Pyguys 4 4,192 Apr-11-2020, 07:53 AM
Last Post: Pyguys
  Exotic stats problem ; mode, fuzzy clusters, etc amyvaulhausen 5 5,117 Aug-06-2018, 04:10 PM
Last Post: Vysero
  Preventing useless multiple disk writes Steffenwolt 9 6,112 Jul-28-2018, 06:39 PM
Last Post: gontajones
  RAW IO disk access for SD Card shift838 1 9,539 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