Request for test by users seeing 0.00 load average in spite of a busy system

Christian Franke Christian.Franke@t-online.de
Wed Oct 2 08:09:59 GMT 2024


Mark Geisert via Cygwin wrote:
> Hi folks,
> I may have a handle on why you're seeing 0.00 load averages. Would you 
> kindly compile the attached program, run it, and post its results 
> along with which version of Windows you are running?
> For example,
>     gcc -Wall -ggdb -o test test.c -lpdh
>     ./test
> Thanks for your help,

Same result on Win10 22H2 (10.0.19045.4780, i7-2600K) and Win11 23H2 
(10.0.22631.4037, i7-14700K):

$ ./test
PdhOpenQueryW           returns PDH_CSTATUS_VALID_DATA
PdhAddEnglishCounterW#1 returns PDH_CSTATUS_VALID_DATA
PdhAddEnglishCounterW#2 returns PDH_CSTATUS_VALID_DATA
PdhAddEnglishCounterW#3 returns PDH_CSTATUS_VALID_DATA

$ uname -r
3.5.4-1.x86_64

$ stress-ng --cpu 4 --timeout 30
stress-ng: info:  [586] setting to a 30 secs run per stressor
stress-ng: info:  [586] dispatching hogs: 4 cpu
...
stress-ng: info:  [586] successful run completed in 30.47 secs

$ uptime
  09:59:01 up 28 min,  0 user,  load average: 0.00, 0.00, 0.00

-- 
Regards,
Christian



More information about the Cygwin mailing list