@Brendan the reason why it fails on machines with 10 or more CPUs is
because one is grep'ing for cpu1 which matches on CPU10, CPU11, CPU12,
CPU13, CPU14, CPU15 on the 16 CPU machine. So the script is broken.

It looks like /proc/interrupts CPU* headed columns end with trailing
spaces, so we could bodge around this using:

grep -i -q "$cpu_num " /proc/interrupts

note the trailing space after $cpu_num.

But the /proc/interrupts format may change and remove those trailing
spaces sometime in the future. So perhaps the line should be something
like:

cat /proc/interrupts | grep CPU | tr '\n' ' ' | grep -i -q $cpu_num

..just in case one day they remove the trailing spaces after the last
CPU number.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/926136

Title:
  CPU1 on Dell PowerEdge M610, R715  and IBM X3500 M3 goes offline after
  exercising frequency governors

To manage notifications about this bug go to:
https://bugs.launchpad.net/checkbox/+bug/926136/+subscriptions

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

Reply via email to