You are not logged in.

#1 2022-12-26 13:29:18

useless.dinosaur
Member
Registered: 2022-12-26
Posts: 7

[SOLVED] Severe lags for few seconds few times a day with minimal load

Hi!

There is fresh arch installation, fully updated. Few times a day there is horrible lag, that affects inputs (cursor moves very slow, with occasional jumps between position), sound output (music starts crackling). That lag may appear when there are firefox and spotify launched only. Can occur in games or vscode, so there is no specific app. After few seconds, lag disappears.

There is no obvious hardware or kernel fault, psensor doesn't show any temp or load spikes. dmesg and journald doesn't have any useful records and most times they are just empty at the time of lag.
Glances doesn't show any disk io spikes or swap usage.

Double checked all motherboard connections, tried disable AMD core boost in Bios, no result either.

PC spec:
cpu: AMD Ryzen 7 3800X
gpu: AMD 6600xt
ssd: WD Blue
ram: G.SKILL Aegis F4-3200C16D, 16gb x 2, xmp enabled

I am completely lost here, any tips what should i seek?

Last edited by useless.dinosaur (2022-12-29 14:43:49)

Offline

#2 2022-12-26 13:40:05

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,408
Website

Re: [SOLVED] Severe lags for few seconds few times a day with minimal load

Is the CPU microcode installed and loaded?


Para todos todo, para nosotros nada

Offline

#3 2022-12-26 13:55:50

useless.dinosaur
Member
Registered: 2022-12-26
Posts: 7

Re: [SOLVED] Severe lags for few seconds few times a day with minimal load

Yep, amd-ucode installed and present in grub.cfg

$ pacman -Ss amd-ucode
core/amd-ucode 20221214.f3c283e-1 [installed]
    Microcode update image for AMD CPUs
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b000ca1f-aca4-4019-b2b5-4084c5feb3aa' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod fat
	search --no-floppy --fs-uuid --set=root 290B-1CB1
	echo	'Loading Linux linux ...'
	linux	/vmlinuz-linux root=UUID=b000ca1f-aca4-4019-b2b5-4084c5feb3aa rw  loglevel=3 quiet resume=/dev/nvme1n1p2
	echo	'Loading initial ramdisk ...'
	initrd	/amd-ucode.img /initramfs-linux.img
}

Last edited by useless.dinosaur (2022-12-26 14:03:28)

Offline

#4 2022-12-26 17:33:01

aenima
Member
Registered: 2022-12-26
Posts: 2

Re: [SOLVED] Severe lags for few seconds few times a day with minimal load

I'm having the exact same issues. I noticed that it occure only with linux 6.1.1, problem disappear with 5.15 LTS kernel.

CPU: AMD Ryzen 9 5950X
GPU: Radeon RX 6900 XT

Offline

#5 2022-12-26 18:08:34

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,408
Website

Re: [SOLVED] Severe lags for few seconds few times a day with minimal load

Looks like amdgpu might be having some issues:

https://bbs.archlinux.org/viewtopic.php?id=282273

https://bbs.archlinux.org/viewtopic.php?id=282293

But weirdly I am not suffering them at all, despite having the exact same hardware as the last poster in the second thread hmm

Has anybody filed any bugs yet? I think https://bugs.archlinux.org/task/75237?p … ring=linux might be relevant here, with https://gitlab.freedesktop.org/drm/amd/-/issues/2079 being the upstream report.

Hopefully loqs will take an interest in this thread, they're much better than me at this sort of thing big_smile


Para todos todo, para nosotros nada

Offline

#6 2022-12-26 19:10:37

useless.dinosaur
Member
Registered: 2022-12-26
Posts: 7

Re: [SOLVED] Severe lags for few seconds few times a day with minimal load

Doesn't look for me as same issues. First one has a dedicated process that causes CPU load and has a large impact, second one occurs on suspend.

I didn't configure hibernation yet, so I doubt bug is the same as in the second thread. And in my case all monitors and graphs don't show any dedicated process or cpu usage. Will post image next time this bug occurs...

I would like to post the bug to kernel or amd issue trackers, but i don't have anything to show, no logs, graphs, etc. I don't even know what is broken, maybe it's just overheated ram or ssd, or even wlroots/sway issue sad

Last edited by useless.dinosaur (2022-12-26 19:11:15)

Offline

#7 2022-12-27 11:52:15

useless.dinosaur
Member
Registered: 2022-12-26
Posts: 7

Re: [SOLVED] Severe lags for few seconds few times a day with minimal load

Got a graphs with nothing interesting on them:

graphs.png

Lag occurs on 14:37:15 - 14:37:30, and there is nothing suspicious on any graph from prometheus-node-exporter.

Last edited by useless.dinosaur (2022-12-27 14:52:41)

Offline

#8 2022-12-27 14:33:06

seth
Member
Registered: 2012-09-03
Posts: 59,588

Re: [SOLVED] Severe lags for few seconds few times a day with minimal load

Please replace the oversized image w/ a link. The board has a 250x250px limit.
And then instead of an image showing explicitly nothing, post the system journal for the boot covering the (one) incident.
Eg.

sudo journalctl -b | curl -F 'file=@-' 0x0.st

for the current boot.

Offline

#9 2022-12-27 15:06:02

useless.dinosaur
Member
Registered: 2022-12-26
Posts: 7

Re: [SOLVED] Severe lags for few seconds few times a day with minimal load

Logs uploaded: logs


This lag occured at 14:37 and 16:42 in the same boot. Maybe more, while I was afk

Last edited by useless.dinosaur (2022-12-27 15:09:20)

Offline

#10 2022-12-27 15:23:33

seth
Member
Registered: 2012-09-03
Posts: 59,588

Re: [SOLVED] Severe lags for few seconds few times a day with minimal load

Did you notice the impressive amount of

kauditd_printk_skb: <n> callbacks suppressed

?
Something is spamming the log.
Likely rtkit-daemon and look what is at the other end of that:

Dec 27 10:15:59 B4M-8L-B33 dbus-daemon[612]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.13' (uid=1000 pid=931 comm="/usr/lib/xdg-desktop-portal")

Try to get rid of flatschpak/xdg-portal* and see whether the issue remains …

Offline

#11 2022-12-27 16:15:40

useless.dinosaur
Member
Registered: 2022-12-26
Posts: 7

Re: [SOLVED] Severe lags for few seconds few times a day with minimal load

I've enabled systemd-homed and spam from xdg-desktop-portal stops.

Just got it with journalctl -f running, and there is no sign of issues there:

Dec 27 19:04:02 rtkit-daemon[1024]: Supervising 12 threads of 7 processes of 1 users.
Dec 27 19:04:02 rtkit-daemon[1024]: Supervising 12 threads of 7 processes of 1 users.
Dec 27 19:11:06 rtkit-daemon[1024]: Supervising 12 threads of 7 processes of 1 users.
Dec 27 19:11:06 rtkit-daemon[1024]: Supervising 12 threads of 7 processes of 1 users.

Got lag this time around 19:10:10-19:10:30.

Tomorrow will try to use lts kernel, as @aenima suggests.

Offline

#12 2022-12-29 14:45:03

useless.dinosaur
Member
Registered: 2022-12-26
Posts: 7

Re: [SOLVED] Severe lags for few seconds few times a day with minimal load

lts kernel doesn't have this bug. Guess, I need to git bisect kernel, to get some valuable info. Closing this thread.

Offline

#13 2022-12-29 18:44:16

aenima
Member
Registered: 2022-12-26
Posts: 2

Re: [SOLVED] Severe lags for few seconds few times a day with minimal load

Hello,
I think I solved the problem with kernel 6.1 updating the bios of my TUF GAMING B550-PLUS. One of the commit says:"Fix AMD fTPM issue causes random stuttering."

You could look for a bios update or disabling fTPM to see if the problem is that.

Never got a stutter since, hope it helps.

Offline

#14 2022-12-29 19:38:56

gulafaran
Member
Registered: 2011-02-09
Posts: 22

Re: [SOLVED] Severe lags for few seconds few times a day with minimal load

yeah had the same problem, solved it by simply turning off the tpm in bios. and this is on a amd 5800h laptop cpu. seems amd has major issues with it https://www.amd.com/en/support/kb/faq/pa-410

Offline

#15 2022-12-31 17:10:36

gnox
Member
Registered: 2013-05-18
Posts: 83

Re: [SOLVED] Severe lags for few seconds few times a day with minimal load

I have the same issue on a 3750h laptop, no tpm option on the bios, had to downgrade to 6.0 .

Offline

#16 2023-02-28 19:20:29

zx2c4
Member
Registered: 2017-12-17
Posts: 2

Re: [SOLVED] Severe lags for few seconds few times a day with minimal load

Offline

Board footer

Powered by FluxBB