Comment 807 for bug 1690085

Revision history for this message
In , mclark (mclark-linux-kernel-bugs) wrote :

if I disable multithreading my system that had these crashes is stable for months without them. e.g. run this in rc.local:

#!/bin/bash
#
# disables hyperthreading, which stops the system from crashing
#
   for CPU in /sys/devices/system/cpu/cpu[0-9]*; do
        CPUID=$(basename $CPU)
        echo "CPU: $CPUID";
        if test -e $CPU/online; then
                echo "1" > $CPU/online;
        fi;

        COREID="$(cat $CPU/topology/core_id)";
        eval "COREENABLE=\"\${core${COREID}enable}\"";

        if ${COREENABLE:-true}; then
                echo "${CPU} core=${CORE} -> enable"
                eval "core${COREID}enable='false'";
        else
                echo "$CPU core=${CORE} -> disable";
                echo "0" > "$CPU/online";
        fi;
    done;