Getting the system boot in Windows

I am looking for a way to get the current load (like on Unix: Number of processes waiting for CPU / data ) on Windows. Is this even possible?

Background: By default, Windows will tell you how much processor or network traffic, RAM, etc. are used. In terms of performance, this is useless. I don't care that 97% of my processor is idle when a virus scanner blocks my IDE. I want to know if processes are blocked waiting for some resource.

+3
source share
1 answer

System\Processor Queue Lengthcounter will tell you how many threads are waiting for CPU resources. LogicalDisk\Current Disk Queue Lengthwill tell you how many requests are waiting for disk I / O.

EDIT: you can draw these values ​​using the "Reliability and Performance Monitor" in Vista or "perfmon.exe" on XP. Unix gives you time-averaged values ​​over various intervals; Perfmon has average counters (a custom sampling interval for all counters together), or you can just get a snapshot of the current queue. I don’t think there is a way to get EMA (exponential moving average), for example, Unix.

+4
source

Source: https://habr.com/ru/post/1704498/


All Articles