From where does the System Monitor calculate its % utilization values?
I need to get those values at a particular instant, to do some rudimentary load balancing.
I'd guess it gets its values from
Simplistically speaking, on a single-core system, a load average of
To get instantaneous load, check the first number of the fourth field of
In this case, the value is
If you really think you need the instant load, then you can use that value. I'd not recommend it, though, as it's going to be very highly variable, and not a good read on what's actually going on with the system. Using this value for load balancing could create undue amounts of churn in your system which would not be ideal. There's a reason that the load average values are there - they're a much better view on what the system is currently dealing with.