delay when querying /proc/loadavg

Mon Jun 22 16:14:00 GMT 2015


I noticed that there is long delay when getting the content of /proc/ladavg:

$ time cat /proc/loadavg
0.00 0.00 0.00 1/16
cat /proc/loadavg  0.01s user 1.47s system 100% cpu 1.480 total

I am aware that loadavg is not meaningful on cygwin and always returns
"0 0 0", but it is used in many programs and scripts. For example I
noticed it with my .bashrc/.zshrc that I copied from another (native
linux) system.

This slowdown also seems to affect programs like 'top' which takes a
long time to start and behaves very sluggish when navigating due to
updating those values.

Is there a reason it takes that long to react? On every other system
getting the value is instant.


Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list