Comment 12 for bug 608278

Revision history for this message
Andrew LeCody (andrewlecody) wrote :

This fix doesn't take into account multi-processor systems. I suggest that the system information be suppressed if the load average divided by the number of CPUs is greater than 1. As it stands right now landscape-sysinfo is disabled 100% of the time for my 8 core server, even though a load average of 1 would be considered low. I have attached a patch with my suggested change.

I know that counting processors in /proc/cpuinfo isn't accurate when HyperThreading is being used, but I couldn't think of a simple and effective way to determine the number of real cores. So hopefully someone much smarter than me will come up with a snippet of bash to resolve the issue.