Stuttering video even though enough CPU-power left

Since my switch to manjaro I’ve noticed some very low video playback performance once my CPU utilization goes above 40 or 50 percent because of other processes. The video starts to stutter or freezes completely while only the sound is playing. In other instances the video plays but the sound starts to stutter. Which shouldn’t happen because non of my system parameters are anywhere close to being maxed out in this situation. Disk read is low, load is currently at 4 (with an 8 core CPU) and my cores are running at 40-50% each but I can’t play any video (neither with vlc or mpv). CPU usage and load also doesn’t peak while trying to play the video. Are there any other tools besides top and System Monitor that could help me figuring out where the bottleneck is? Or is this a known problem (maybe because of some missing drivers or missing hardware support)?

I’ve installed manjaro with propritary drivers. I’m running on an i7-6700 with an GeForce GT 710 (driver=nvidia; there is also a second card, but that is used exclusively for virtualization and shouldn’t be used by manjaro at all).

provide formated output from:
inxi -Fazy
mhwd -l && mhwd -li
also try this:
its probably pulse/pipewire issue… install this package: manjaro-pipewire - it will give you dependency issues, so uninstall them first, then instal again the manjaro-pipewire package, reboot and check

Hmm, installing pipewire didn’t solve the issue (and seems to have problems putting out Digital Surround 5.1 which is stuttering everytime - Digital Stereo works fine.)

The other infos you’re asking for:

System:
  Kernel: 5.15.38-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 11.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=/dev/mapper/VolumeGroup-root rw apparmor=1 security=apparmor
    udev.log_priority=3 intel_iommu=on
    vfio-pci.ids=10de:21c4,10de:1aeb,10de:1aec,10de:1aed kvm.ignore_msrs=1
  Desktop: KDE Plasma v: 5.24.5 tk: Qt v: 5.15.3 info: latte-dock
    wm: kwin_x11 vt: 1 dm: SDDM Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: H170-PRO v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 3805
    date: 05/16/2018
CPU:
  Info: model: Intel Core i7-6700 bits: 64 type: MT MCP arch: Skylake-S
    family: 6 model-id: 0x5E (94) stepping: 3 microcode: 0xEC
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 8 MiB desc: 1x8 MiB
  Speed (MHz): avg: 800 min/max: 800/4000 scaling: driver: intel_pstate
    governor: powersave cores: 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800
    8: 800 bogomips: 54417
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf
    mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: conditional, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort mitigation: TSX disabled
Graphics:
  Device-1: NVIDIA GK208B [GeForce GT 710] vendor: Micro-Star MSI
    driver: nvidia v: 470.103.01 alternate: nouveau,nvidia_drm pcie: gen: 2
    speed: 5 GT/s lanes: 8 bus-ID: 01:00.0 chip-ID: 10de:128b class-ID: 0300
  Device-2: NVIDIA TU116 [GeForce GTX 1660 SUPER] vendor: Gigabyte
    driver: vfio-pci v: N/A alternate: nouveau,nvidia_drm,nvidia pcie: gen: 3
    speed: 8 GT/s lanes: 4 link-max: lanes: 16 bus-ID: 07:00.0
    chip-ID: 10de:21c4 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.1
    compositor: kwin_x11 driver: X: loaded: nvidia gpu: nvidia,vfio-pci
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 108 s-size: 602x342mm (23.70x13.46")
    s-diag: 692mm (27.26")
  Monitor-1: DVI-D-0 res: 2560x1440 hz: 60 dpi: 109
    size: 597x336mm (23.5x13.23") diag: 685mm (26.97") modes: N/A
  OpenGL: renderer: NVIDIA GeForce GT 710/PCIe/SSE2
    v: 4.6.0 NVIDIA 470.103.01 direct render: Yes
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a170
    class-ID: 0403
  Device-2: NVIDIA GK208 HDMI/DP Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 8
    bus-ID: 01:00.1 chip-ID: 10de:0e0f class-ID: 0403
  Device-3: C-Media CMI8788 [Oxygen HD Audio] vendor: ASUSTeK CMI8786
    driver: snd_oxygen v: kernel bus-ID: 03:04.0 chip-ID: 13f6:8788
    class-ID: 0401
  Device-4: NVIDIA TU116 High Definition Audio vendor: Gigabyte
    driver: vfio-pci alternate: snd_hda_intel pcie: gen: 3 speed: 8 GT/s
    lanes: 4 link-max: lanes: 16 bus-ID: 07:00.1 chip-ID: 10de:1aeb
    class-ID: 0403
  Sound Server-1: ALSA v: k5.15.38-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.21 running: no
  Sound Server-3: PulseAudio v: 15.0 running: no
  Sound Server-4: PipeWire v: 0.3.51 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK PRIME B450M-A driver: r8169 v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: c000 bus-ID: 06:00.0 chip-ID: 10ec:8168
    class-ID: 0200
  IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: br0 state: down mac: <filter>
  IF-ID-2: virbr0 state: down mac: <filter>
  IF-ID-3: virbr1 state: down mac: <filter>
  IF-ID-4: virbr2 state: down mac: <filter>
  IF-ID-5: virbr3 state: down mac: <filter>
Drives:
  Local Storage: total: 5.46 TiB used: 3.09 TiB (56.6%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 QVO 2TB
    size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 1B6Q scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital
    model: WD30PURZ-85GU6Y0 size: 2.73 TiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
    rev: 0A80 scheme: GPT
  ID-3: /dev/sdc maj-min: 8:32 type: USB vendor: Western Digital
    model: WD My Passport 264F size: 931.48 GiB block-size: physical: 512 B
    logical: 512 B type: N/A serial: <filter> rev: 2005 scheme: GPT
Partition:
  ID-1: / raw-size: 150 GiB size: 146.59 GiB (97.72%) used: 23.89 GiB (16.3%)
    fs: ext4 dev: /dev/dm-2 maj-min: 254:2 mapped: VolumeGroup-root
  ID-2: /boot/efi raw-size: 401 MiB size: 400.2 MiB (99.79%)
    used: 336 KiB (0.1%) fs: vfat dev: /dev/sda2 maj-min: 8:2
  ID-3: /home raw-size: 1000 GiB size: 983.23 GiB (98.32%)
    used: 466.03 GiB (47.4%) fs: ext4 dev: /dev/dm-0 maj-min: 254:0
    mapped: VolumeGroup-home
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 31.06 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/sda8 maj-min: 8:8
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: nvidia temp: 69 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 59%
Info:
  Processes: 310 Uptime: 3m wakeups: 0 Memory: 62.73 GiB used: 2.85 GiB (4.5%)
  Init: systemd v: 250 tool: systemctl Compilers: gcc: 11.2.0 clang: 13.0.1
  Packages: pacman: 1499 lib: 365 flatpak: 0 Shell: Zsh v: 5.8.1 default: Bash
  v: 5.1.16 running-in: konsole inxi: 3.3.15
> 0000:01:00.0 (0300:10de:128b) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
    video-nvidia-470xx            2021.12.18               false            PCI
    video-nvidia-390xx            2021.12.18               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> 0000:07:00.0 (0300:10de:21c4) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
          video-nvidia            2021.12.18               false            PCI
    video-nvidia-470xx            2021.12.18               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> 0000:06:00.0 (0200:10ec:8168) Network controller Realtek Semiconductor Co., Ltd.:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
         network-r8168            2016.04.20                true            PCI


> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
    video-nvidia-470xx            2021.12.18               false            PCI


Warning: No installed USB configs!

nvidia temp: 69 C

Are you playing a game right now, is it really hot in the room you’re in? Is it time to dust the inside of your desktop? Why is the nvidia temp so hot? Mine hovers around 29-30C with regular (when not gaming) use.

so uninstall pipewire if you have issues with it, and install pulse with: manjaro-pulse - it will automatically remove pipewire…
also noticed that you have only nvidia drivers installed even though you have also intel graphics, so install it with:
sudo mhwd -i pci video-linux
reboot

1 Like

Maybe 800Mhz are not enough?

Thank you all for your observations!

That is only while idleing - when used it goes up to 3700 what should be normal.

Are you sure this might be a solution? The intel graphics are the onboard chip that came with the system but I don’t use it and the output is not connected. I’m just using the two nividia cards. Of cause I would be willing to try it, but I’m not particular fond on installing additional drivers for unused hardware because that tends to cause problems.

That is indeed a good observation. I will check on that. One is a fan-less card in a small tower, so this one might be running a little warm, but it stays still well within the manufacture specifications even when under stress. I’m not sure for which of the cards this reading is, because the one with a fan is used for the virtual machine and shows way lower temperatures when used. But than it shouldn’t report a fan speed. But I don’t think this is the problem, because I didn’t change any hardware since switching to manjaro four weeks ago. And the system handled the video playback fine while I was still running Ubuntu.

Edit:
According to nvidia-smi this is indeed the temperature of the fan-less card that for some reason also reports a fan-speed?!?

you can try ‘tweaks’ from this link and see

Are you sure? governor: powersave means: stay always at the lowest clock speed, but sure if a program asks for speed, then the governor changes, for example with gamemoderun.

Same readings while playing a video:

Speed (MHz): avg: 1076 high: 1200 min/max: 800/4000 scaling:
    driver: intel_pstate governor: powersave cores: 1: 1200 2: 1200 3: 1200
    4: 1200 5: 1001 6: 1179 7: 800 8: 834 bogomips: 54417

…and while running the processor at 70% capacity

  Speed (MHz): avg: 2204 high: 3405 min/max: 800/4000 scaling:
    driver: intel_pstate governor: powersave cores: 1: 3405 2: 3100 3: 3100
    4: 3100 5: 840 6: 800 7: 967 8: 2324 bogomips: 54417

I think this looks good or do you disagree?

1 Like

Interesting, so powersave on the intel_pstate module acts like conservative on the acpi-cpufreq module. So it clocks down to lowest possible speed, but clock up if needed.

Good to know that :+1:

What videos are we talking about? 4k or 2k videos? There it doesn’t matter how high the CPU usage is. Without GPU acceleration it will always stutter.

No, we’re talking 720p :slight_smile:

This link does not work anymore (error: Name not resolved).

try this: