Mint broke: severe stutter

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
DanR
Level 1
Level 1
Posts: 44
Joined: Mon May 22, 2023 4:27 am

Mint broke: severe stutter

Post by DanR »

I dunno why most of my hard problems always come on Saturdays... :)
Looks like my third Linux installation - 2 Ubuntu after a month or two of normal work, and this time Mint, also after a couple months of work - got a problem. I did not install anything on it to justify change in behavior. It was as usually running multi-core apps in background. I am very conservative with any new installations, but this did not help.

In my case Timeshift failed to work from the start because it also chose to save snapshots in small /boot partition of other Linux OS, always failed and did not report what the problem is.

Approximately with the same diagnosis got corrupted my Ubuntu - it initially lost sound settings with no reason at all and did not got back no matter what the cure was, then stutter in apps started larger and larger. Stutter feels like your wireless mouse almost lost the battery - you try to move window and need to do that few times because mouse permanently loses the grip. Or you need to click several times on x in the right upper corner of window of any app to close it, you click OK and nothing happens. You try to highlight the text with the mouse and mostly fail or highlight only part of text...

Worst of all mpirun stopped working with the error

Code: Select all

[proxy:0:0@dr-System-Product-Name] HYDU_sock_write (utils/sock/sock.c:254): write error (Broken pipe)
[proxy:0:0@dr-System-Product-Name] HYD_pmcd_pmip_control_cmd_cb (pm/pmiserv/pmip_cb.c:932): unable to write to downstream stdin
[proxy:0:0@dr-System-Product-Name] HYDT_dmxu_poll_wait_for_event (tools/demux/demux_poll.c:76): callback returned error status
[proxy:0:0@dr-System-Product-Name] main (pm/pmiserv/pmip.c:169): demux engine error waiting for event
[mpiexec@dr-System-Product-Name] control_cb (pm/pmiserv/pmiserv_cb.c:206): assert (!closed) failed
[mpiexec@dr-System-Product-Name] HYDT_dmxu_poll_wait_for_event (tools/demux/demux_poll.c:76): callback returned error status
[mpiexec@dr-System-Product-Name] HYD_pmci_wait_for_completion (pm/pmiserv/pmiserv_pmci.c:160): error waiting for event
[mpiexec@dr-System-Product-Name] main (ui/mpich/mpiexec.c:325): process manager error waiting for completion
Ubuntu despite of terrible stutter, not functioning sound and jagged video works with MPI no problem as well as with WINE.
Mint apps under WINE work also OK like nothing happened, looks like Linux gamers desperately wanted Windows to work flawlessly no matter what :)

Is this possible that this is caused by the fact that i always installed Linux on the NVMe drives and by some reason some places of it got excessive wear?
I noticed that one of my older NVMe drives (all are WD 850x) copying files 10x slower than newer ones. Typical usage of these drives is pretty large, a couple TB per week. All manufacturers claim a petabyte of endurance for lifetime but who believes the claims when most of users will never reach 1% of that hence you can claim anything you want even infinite life

By the way i only ones needed to repair Windows 20 years ago and never needed to repair Android despite of gazillion of installs and tons apps there
Last edited by LockBot on Sun Dec 03, 2023 11:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
mikeflan
Level 16
Level 16
Posts: 6969
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: Mint broke: severe stutter

Post by mikeflan »

Please type this in a terminal:

Code: Select all

inxi -Fxxxmprz
Post the output to this forum in "Code" tags. The button that inserts these tags is marked </>, which is in the mini toolbar above the edit box where you type your reply.
viewtopic.php?f=42&t=364929

If your Linux Mint install isn't in English, prefix any commands that you want to share output of with LC_ALL=C. That forces output to be English. For example instead of running the command "inxi -Fxxxmprz", you'd run the command "LC_ALL=C inxi -Fxxxmprz".
More info:
viewtopic.php?f=90&t=318644
viewtopic.php?p=2148154#p2148154dsk
viewtopic.php?t=318644
DanR
Level 1
Level 1
Posts: 44
Joined: Mon May 22, 2023 4:27 am

Re: Mint broke: severe stutter

Post by DanR »

Hi mikeflan,
Here it is:

Code: Select all

System:
  Kernel: 5.15.0-56-generic x86_64 bits: 64 compiler: gcc v: 11.3.0 Desktop: Cinnamon 5.6.8
    tk: GTK 3.24.33 wm: muffin dm: LightDM Distro: Linux Mint 21.1 Vera base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: TUF GAMING X570-PRO (WI-FI) v: Rev X.0x serial: <superuser required>
    UEFI: American Megatrends v: 3001 date: 12/04/2020
Battery:
  Device-1: hidpp_battery_0 model: Logitech M720 Triathlon Multi-Device Mouse serial: <filter>
    charge: 55% (should be ignored) status: Discharging
CPU:
  Info: 16-core model: AMD Ryzen 9 5950X bits: 64 type: MT MCP arch: Zen 3 rev: 0 cache:
    L1: 1024 KiB L2: 8 MiB L3: 64 MiB
  Speed (MHz): avg: 3991 high: 4009 min/max: 2200/5980 boost: enabled cores: 1: 3990 2: 4000
    3: 3999 4: 3998 5: 3995 6: 4000 7: 4009 8: 3991 9: 3976 10: 3997 11: 3966 12: 4006 13: 3996
    14: 3998 15: 3997 16: 3998 17: 3990 18: 3998 19: 3978 20: 3995 21: 3978 22: 3973 23: 4000
    24: 3998 25: 3996 26: 3996 27: 3997 28: 3995 29: 3978 30: 3963 31: 3999 32: 3991
    bogomips: 255980
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA GA102 [GeForce RTX 3090] vendor: eVga.com. driver: nvidia v: 525.105.17 pcie:
    speed: 2.5 GT/s lanes: 16 ports: active: none off: HDMI-A-1 empty: DP-1,DP-2,DP-3
    bus-ID: 0b:00.0 chip-ID: 10de:2204
  Device-2: HP HP Webcam HD 5210 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 1-1.2:4
    chip-ID: 03f0:cf07
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia display-ID: :0 screens: 1
  Screen-1: 0 s-res: 4096x2160 s-dpi: 96
  Monitor-1: HDMI-0 res: 4096x2160 dpi: 406 diag: 289mm (11.4")
  OpenGL: renderer: NVIDIA GeForce RTX 3090/PCIe/SSE2 v: 4.6.0 NVIDIA 525.105.17
    direct render: Yes
Audio:
  Device-1: NVIDIA GA102 High Definition Audio vendor: eVga.com. driver: snd_hda_intel v: kernel
    pcie: speed: 16 GT/s lanes: 16 bus-ID: 0b:00.1 chip-ID: 10de:1aef
  Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie:
    speed: 16 GT/s lanes: 16 bus-ID: 0d:00.4 chip-ID: 1022:1487
  Device-3: HP HP Webcam HD 5210 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 1-1.2:4
    chip-ID: 03f0:cf07
  Sound Server-1: ALSA v: k5.15.0-56-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: speed: 5 GT/s lanes: 1
    bus-ID: 06:00.0 chip-ID: 8086:2723
  IF: wlp6s0 state: down mac: <filter>
  Device-2: Intel Ethernet I225-V vendor: ASUSTeK driver: igc v: kernel pcie: speed: 5 GT/s
    lanes: 1 port: N/A bus-ID: 07:00.0 chip-ID: 8086:15f3
  IF: enp7s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-4:8 chip-ID: 8087:0029
  Report: hciconfig ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 3.0 lmp-v: 5.2
    sub-v: 237e
Drives:
  Local Storage: total: 56.39 TiB used: 32.92 TiB (58.4%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: WD BLACK SN850X 2000GB size: 1.82 TiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 42.9 C
  ID-2: /dev/nvme1n1 vendor: Western Digital model: WDS200T1X0E-00AFY0 size: 1.82 TiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 42.9 C
  ID-3: /dev/nvme2n1 vendor: Western Digital model: WD BLACK SN850X 2000GB size: 1.82 TiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 41.9 C
  ID-4: /dev/sda vendor: Western Digital model: WD161KRYZ-01AGBB0 size: 14.55 TiB
    speed: 6.0 Gb/s serial: <filter>
  ID-5: /dev/sdb vendor: Western Digital model: WD161KRYZ-01AGBB0 size: 14.55 TiB
    speed: 6.0 Gb/s serial: <filter>
  ID-6: /dev/sdc type: USB vendor: HGST (Hitachi) model: HUH721212ALE604 size: 10.91 TiB
    serial: <filter>
  ID-7: /dev/sdd type: USB vendor: HGST (Hitachi) model: HUH721212ALE604 size: 10.91 TiB
    serial: <filter>
Partition:
  ID-1: / size: 136.45 GiB used: 17.69 GiB (13.0%) fs: ext4 dev: /dev/nvme2n1p2
  ID-2: /boot size: 445.9 MiB used: 245.6 MiB (55.1%) fs: ext2 dev: /dev/nvme2n1p1
  ID-3: /boot/efi size: 96 MiB used: 31.1 MiB (32.4%) fs: vfat dev: /dev/nvme1n1p1
  ID-4: /home size: 1.43 TiB used: 1.03 TiB (72.1%) fs: ext4 dev: /dev/nvme2n1p4
Swap:
  ID-1: swap-1 type: partition size: 238.42 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme2n1p3
  ID-2: swap-2 type: partition size: 391.43 GiB used: 0 KiB (0.0%) priority: -3
    dev: /dev/nvme0n1p6
Sensors:
  System Temperatures: cpu: N/A mobo: N/A gpu: nvidia temp: 38 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Repos:
  Packages: 2540 apt: 2531 flatpak: 9
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http: //packages.linuxmint.com vera main upstream import backport
    2: deb http: //archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http: //archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/opera-stable.list
    1: deb https: //deb.opera.com/opera-stable/ stable non-free
  Active apt repos in: /etc/apt/sources.list.d/skype-stable.list
    1: deb [arch=amd64] https: //repo.skype.com/deb stable main
  Active apt repos in: /etc/apt/sources.list.d/teamviewer.list
    1: deb [signed-by=/usr/share/keyrings/teamviewer-keyring.gpg] https: //linux.teamviewer.com/deb stable main
Info:
  Processes: 607 Uptime: 3m Memory: 125.7 GiB used: 5.96 GiB (4.7%) Init: systemd v: 249
  runlevel: 5 Compilers: gcc: 11.3.0 alt: 11/12 Client: Cinnamon v: 5.6.8 inxi: 3.3.13
motoryzen
Level 10
Level 10
Posts: 3443
Joined: Sun Dec 08, 2019 12:25 am

Re: Mint broke: severe stutter

Post by motoryzen »

In my case Timeshift failed to work from the start because it also chose to save snapshots in small /boot partition of other Linux OS
0.o *scratches chin curiously*. No offense but I'm missing the reason why that would make any sense? You saved Timeshift snapshots...in a /boot partition.

/boot is for ..booting an OS. :P
Mint 21.2 Cinnamon 5.8.4
asrock x570 taichi ...bios p5.00
ryzen 5900x
128GB Kingston Fury @ 3600mhz
Corsair mp600 pro xt NVME ssd 4TB
three 4TB ssds
dual 1TB ssds
Two 16TB Toshiba hdd's
24GB amd 7900xtx vid card
Viewsonic Elite UHD 32" 144hz monitor
DanR
Level 1
Level 1
Posts: 44
Joined: Mon May 22, 2023 4:27 am

Re: Mint broke: severe stutter

Post by DanR »

Was it chosen by mistake or some other reason - Timeshit did not complain when started its snapshot, then it got out of space of course, it failed, stopped without warning or anything and left me without any snapshots. Which was unclear until i actually found i needed them. Even worse, i spend half a day to clean /boot manually because it could not see what it have done there and hence could not delete from partition anything.

This is just one badly written app, totally counterintuitive. I still do not know what needed to be saved in the snapshots to repair from the problems like i have today. Do /boot also needed to include into snapshots?
mikeflan
Level 16
Level 16
Posts: 6969
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: Mint broke: severe stutter

Post by mikeflan »

Was it chosen by mistake or some other reason
I don't know. When you first set up Timeshift it will present various options for where to install the snapshots to. I think it offers all nearby EXT4 drives. Your OS partition is 128 GB. Not huge, but large enough for quite a a few Timeshift snapshots since you are only using 17% or so of the partition. Storing on another dedicated EXT4 partition is also OK, but it needs to be much larger than that boot partition. A minimum of 40 GB if you ask me.
DanR
Level 1
Level 1
Posts: 44
Joined: Mon May 22, 2023 4:27 am

Re: Mint broke: severe stutter

Post by DanR »

LM lives by its own and surprises again. I rebooted it and the mouse stutter was smaller though the broken pipe error still did not allow multi-core processes MPI to work. Without any action from my side not working the same way the whole day at the end of the day the stutter ended completely and broken pipe error disappeared by itself with MPI started to work. Looks like wear leveling mechanism of NVMe succeeded to recovered lost bits normalizing the OS? Typically my runs generate around 0.5TB of data per day
motoryzen
Level 10
Level 10
Posts: 3443
Joined: Sun Dec 08, 2019 12:25 am

Re: Mint broke: severe stutter

Post by motoryzen »

Typically my runs generate around 0.5TB of data per day
0.o Um. Unless there is something I'm misunderstanding here. You may want to create a script/command that runs a manual trim...such as the command below

sudo fstrim -v '/dev/nvme0n1p3'

** note if you separated your /home as a separate partition..the replace /dev/nvme0n1p3 with '/home' or it won't work **
Mint 21.2 Cinnamon 5.8.4
asrock x570 taichi ...bios p5.00
ryzen 5900x
128GB Kingston Fury @ 3600mhz
Corsair mp600 pro xt NVME ssd 4TB
three 4TB ssds
dual 1TB ssds
Two 16TB Toshiba hdd's
24GB amd 7900xtx vid card
Viewsonic Elite UHD 32" 144hz monitor
motoryzen
Level 10
Level 10
Posts: 3443
Joined: Sun Dec 08, 2019 12:25 am

Re: Mint broke: severe stutter

Post by motoryzen »

Given you "generate" ( did you mean..write data? ) around 500GBs per day to that drive, unless I'm misunderstanding something here.... I recommend you run that trim command basically daily.

sudo fstrim -v '/dev/nvme0n1p3'
** note...if you separated your /home folder as a separate partition like I did...the correct command would be below...

sudo fstrim -v '/home'

You can also easily make a gui launcher button or add it to panel, or if you're comfortable creating bash scripts..you could always create a bashscript of what you do that runs the 500GBs a day and at to the very end of it as the last step that fstrim command like this

#!/bin/bash

command or commands that generate 500GBs daily here && sudo fstrim commmand


If you use gnome-terminal to run that command or those commands that generate 500GBs daily..or if you want to see what's up. then it would be something like

#!/bin/bash

gnome-terminal -x bash -c " command or commands that generate 500GBs daily here && sudo fstrim command
Mint 21.2 Cinnamon 5.8.4
asrock x570 taichi ...bios p5.00
ryzen 5900x
128GB Kingston Fury @ 3600mhz
Corsair mp600 pro xt NVME ssd 4TB
three 4TB ssds
dual 1TB ssds
Two 16TB Toshiba hdd's
24GB amd 7900xtx vid card
Viewsonic Elite UHD 32" 144hz monitor
DanR
Level 1
Level 1
Posts: 44
Joined: Mon May 22, 2023 4:27 am

Re: Mint broke: severe stutter

Post by DanR »

Generate means created by the number crunching code. This is particle code, they are all like that.
Thanks, motoryzen, probably trimming is a good idea despite of pretty large speed of SN850X
Locked

Return to “Software & Applications”