So this bug isn't a kernel issue at all. the culprit is the following
script:

http://bazaar.launchpad.net/~checkbox-
dev/checkbox/trunk/view/head:/scripts/cpu_offlining

This offlines CPU1, and then tries to grep for cpu1 in /proc/interrupts
for some reason that completely escapes me at the moment, and this grep
fails and the test exits.

I've manually worked through all the CPUs and I can offline them and on-
line them with no problem at all.

I hacked out the dodgy grep and I can run the script and I've observed
the kernel messages stating each CPU is offline'd and on-line'd w/o any
problems:

#!/bin/bash

echo "Beginning CPU Offlining Test"
# Turn CPU cores off
for cpu_num in `ls /sys/devices/system/cpu | grep -o cpu[0-9]*`;
do
        if [ -f /sys/devices/system/cpu/$cpu_num/online ]; then
        echo "Offlining $cpu_num"
                echo 0 > /sys/devices/system/cpu/$cpu_num/online
                #grep -i -q $cpu_num /proc/interrupts

                #if [ $? == 0 ]; then
                        #exit 1
                #fi
        fi
done

# Back on again
for cpu_num in `ls /sys/devices/system/cpu | grep -o cpu[0-9]*`;
do
    if [ -f /sys/devices/system/cpu/$cpu_num/online ]; then
        echo "Onlining $cpu_num"
        echo 1 > /sys/devices/system/cpu/$cpu_num/online
        #grep -i -q $cpu_num /proc/interrupts

        #if [ $? == 1 ]; then
            #exit 1
        #fi
    fi
done


/proc/interrupts displays the CPU number in upper case, not lower case. Just 
checked and it seems to have been doing this since Lucid or even way before 
that, so goodness knows how this script is meant to work correctly.

-- 
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/ubuntu/+source/linux/+bug/926136/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to