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.

** Patch added: "landscape-sysinfo.patch"
   
https://bugs.launchpad.net/ubuntu/karmic/+source/landscape-client/+bug/608278/+attachment/1545193/+files/landscape-sysinfo.patch

-- 
Don't run landscape-sysinfo if the load is high
https://bugs.launchpad.net/bugs/608278
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to