Re: [LAU] [SOLVED] Crackles in audio, drifting intermittent noise etc.

From: Joakim Hernberg <jhernberg@email-addr-hidden>
Date: Wed Nov 30 2016 - 22:05:16 EET

On Tue, 29 Nov 2016 20:02:25 -0500
termtech <termtech@email-addr-hidden> wrote:

> Fascinating! ANY one or two of the cores are OK,
> yet ANY three or all four of them causes the noises.

Don't know what CPU you have, but sounds like SMT (hyperthreading isn't
working well for you?

On my i7-2600k I've never seen problems with it. You could try to
disable it in the BIOS, or try these scripts for turning SMT on and off:

$ cat bin/smt-off
#!/bin/bash

  # Be careful to not skip the space at the beginning nor the end
  CPUS_TO_SKIP=" $(cat /sys/devices/system/cpu/cpu*/topology/thread_siblings_list | sed 's/[^0-9].*//' | sort | uniq | tr "\r\n" " ") "

  for CPU_PATH in /sys/devices/system/cpu/cpu[0-9]*; do
      CPU="$(echo $CPU_PATH | tr -cd "0-9")"
      echo "$CPUS_TO_SKIP" | grep " $CPU " > /dev/null
      if [ $? -ne 0 ]; then
          echo 0 > $CPU_PATH/online
      fi
  done

$ cat bin/smt-on
#!/bin/bash

  # Be careful to not skip the space at the beginning nor the end
  CPUS_TO_SKIP=" $(cat /sys/devices/system/cpu/cpu*/topology/thread_siblings_list | sed 's/[^0-9].*//' | sort | uniq | tr "\r\n" " ") "

  for CPU_PATH in /sys/devices/system/cpu/cpu[0-9]*; do
      CPU="$(echo $CPU_PATH | tr -cd "0-9")"
      echo "$CPUS_TO_SKIP" | grep " $CPU " > /dev/null
      if [ $? -ne 0 ]; then
          echo 1 > $CPU_PATH/online
      fi
  done

-- 
   Joakim
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Thu Dec 1 00:15:01 2016

This archive was generated by hypermail 2.1.8 : Thu Dec 01 2016 - 00:15:01 EET