System freezing every 2-3min
My laptop is freezing for 5-6 sec and starts working again. This is occuring once in 2-3 minutes. I am just using it for web browsing.
From my observation i am getting those freezes when there is a watchdog line in my journalctl log
output of inxi :
CPU: Quad Core AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx (-MT MCP-) speed/min/max: 1372/1600/2000 MHz
Kernel: 5.4.2-arch1-1 x86_64 Up: 1h 34m Mem: 3835.4/7665.3 MiB (50.0%) Storage: 931.51 GiB (15.0% used) Procs: 221
kernel params
iommu=pt idle=nomwait rcu_nocbs=0-7 systemd.log_level=debug
journalctl log:
Dec 10 12:56:23 sathya kwin_x11[1303]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 35584, resource id: 12642099, major code: 3 (GetWindowAttributes), minor code: 0
Dec 10 12:56:23 sathya kwin_x11[1303]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 35585, resource id: 12642099, major code: 14 (GetGeometry), minor code: 0
Dec 10 12:56:23 sathya kwin_x11[1303]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 35588, resource id: 12642099, major code: 3 (GetWindowAttributes), minor code: 0
Dec 10 12:56:23 sathya kwin_x11[1303]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 35589, resource id: 12642099, major code: 14 (GetGeometry), minor code: 0
Dec 10 12:56:36 sathya systemd[1]: Received SIGCHLD from PID 7348 (less).
Dec 10 12:56:36 sathya systemd[1]: Child 7348 (less) died (code=exited, status=2/INVALIDARGUMENT)
Dec 10 12:56:36 sathya systemd[1]: session-2.scope: Failed to read oom_kill field of memory.events cgroup attribute: No such file or directory
Dec 10 12:56:36 sathya systemd[1]: session-2.scope: Child 7348 belongs to session-2.scope.
Dec 10 12:56:41 sathya systemd[1]: systemd-udevd.service: Got notification message from PID 326 (WATCHDOG=1)
Dec 10 12:56:41 sathya systemd[1]: systemd-logind.service: Got notification message from PID 851 (WATCHDOG=1)
Dec 10 12:56:44 sathya kwin_x11[1303]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 37605, resource id: 12642215, major code: 3 (GetWindowAttributes), minor code: 0
Dec 10 12:56:44 sathya kwin_x11[1303]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 37606, resource id: 12642215, major code: 14 (GetGeometry), minor code: 0
Dec 10 12:56:44 sathya kwin_x11[1303]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 37609, resource id: 12642215, major code: 3 (GetWindowAttributes), minor code: 0
Dec 10 12:56:44 sathya kwin_x11[1303]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 37610, resource id: 12642215, major code: 14 (GetGeometry), minor code: 0
Dec 10 12:57:41 sathya systemd[1]: systemd-journald.service: Got notification message from PID 307 (WATCHDOG=1)
Dec 10 12:58:00 sathya org_kde_powerdevil[1347]: powerdevil: Scheduling inhibition from ":1.15" "/usr/lib/chromium/chromium" with cookie 20 and reason "Video Wake Lock"
Dec 10 12:58:00 sathya org_kde_powerdevil[1347]: powerdevil: Scheduling inhibition from ":1.73" "/usr/lib/chromium/chromium" with cookie 21 and reason "Video Wake Lock"
Dec 10 12:58:05 sathya org_kde_powerdevil[1347]: powerdevil: Releasing inhibition with cookie 21
Dec 10 12:58:05 sathya org_kde_powerdevil[1347]: powerdevil: It was only scheduled for inhibition but not enforced yet, just discarding it
Dec 10 12:58:05 sathya org_kde_powerdevil[1347]: powerdevil: Releasing inhibition with cookie 20
Dec 10 12:58:05 sathya org_kde_powerdevil[1347]: powerdevil: It was only scheduled for inhibition but not enforced yet, just discarding it
Dec 10 12:58:05 sathya plasmashell[1311]: qml: applet destroyed
Dec 10 12:58:05 sathya org_kde_powerdevil[1347]: powerdevil: Enforcing inhibition from ":1.15" "/usr/lib/chromium/chromium" with cookie 20 and reason "Video Wake Lock"
Dec 10 12:58:05 sathya org_kde_powerdevil[1347]: powerdevil: By the time we wanted to enforce the inhibition it was already gone; discarding it
Dec 10 12:58:05 sathya org_kde_powerdevil[1347]: powerdevil: Enforcing inhibition from ":1.73" "/usr/lib/chromium/chromium" with cookie 21 and reason "Video Wake Lock"
Dec 10 12:58:05 sathya org_kde_powerdevil[1347]: powerdevil: By the time we wanted to enforce the inhibition it was already gone; discarding it
Dec 10 12:58:41 sathya systemd[1]: systemd-journald.service: Got notification message from PID 307 (WATCHDOG=1)
Dec 10 12:58:41 sathya systemd[1]: systemd-logind.service: Got notification message from PID 851 (WATCHDOG=1)
Dec 10 12:58:41 sathya systemd[1]: systemd-udevd.service: Got notification message from PID 326 (WATCHDOG=1)
Dec 10 13:00:41 sathya systemd[1]: systemd-journald.service: Got notification message from PID 307 (WATCHDOG=1)
Dec 10 13:00:41 sathya systemd[1]: systemd-udevd.service: Got notification message from PID 326 (WATCHDOG=1)
Dec 10 13:00:41 sathya systemd[1]: systemd-logind.service: Got notification message from PID 851 (WATCHDOG=1)
Dec 10 13:00:58 sathya kwin_x11[1303]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 54396, resource id: 12643708, major code: 3 (GetWindowAttributes), minor code: 0
Dec 10 13:00:58 sathya kwin_x11[1303]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 54397, resource id: 12643708, major code: 14 (GetGeometry), minor code: 0
Dec 10 13:00:58 sathya kwin_x11[1303]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 54400, resource id: 12643708, major code: 3 (GetWindowAttributes), minor code: 0
Dec 10 13:00:58 sathya kwin_x11[1303]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 54401, resource id: 12643708, major code: 14 (GetGeometry), minor code: 0
Dec 10 13:01:05 sathya kwin_x11[1303]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 55849, resource id: 12643755, major code: 3 (GetWindowAttributes), minor code: 0
Dec 10 13:01:05 sathya kwin_x11[1303]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 55850, resource id: 12643755, major code: 14 (GetGeometry), minor code: 0
Dec 10 13:01:05 sathya kwin_x11[1303]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 55853, resource id: 12643755, major code: 3 (GetWindowAttributes), minor code: 0
Dec 10 13:01:05 sathya kwin_x11[1303]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 55854, resource id: 12643755, major code: 14 (GetGeometry), minor code: 0
Dec 10 13:01:41 sathya systemd[1]: systemd-journald.service: Got notification message from PID 307 (WATCHDOG=1)
Dec 10 13:02:38 sathya kwin_x11[1303]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 63089, resource id: 12644192, major code: 3 (GetWindowAttributes), minor code: 0
Dec 10 13:02:38 sathya kwin_x11[1303]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 63090, resource id: 12644192, major code: 14 (GetGeometry), minor code: 0
Dec 10 13:02:38 sathya kwin_x11[1303]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 63093, resource id: 12644192, major code: 3 (GetWindowAttributes), minor code: 0
Dec 10 13:02:38 sathya kwin_x11[1303]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 63094, resource id: 12644192, major code: 14 (GetGeometry), minor code: 0
Dec 10 13:02:41 sathya systemd[1]: systemd-logind.service: Got notification message from PID 851 (WATCHDOG=1)
Dec 10 13:02:41 sathya systemd[1]: systemd-udevd.service: Got notification message from PID 326 (WATCHDOG=1)
can anyone help me with whats the problem here?
About this post
- Posted
- Archived
- Score
- 39 · 100% up
- Kind
- Text
- ID
- e8nmal
33 comments
Not sure if it will help, but have you tried this? https://bbs.archlinux.org/viewtopic.php?id=232774
I think watchdog comes to play when something is stopped working, It will take it to previous working state. So I need to know what caused the watchdog to know the problem
try the newest kernel from linux mainline (aur) and lose the kernel params
It was working fine until 5.4 has been out
next rev has a lot of amd fixes
What are your temperatures like?
Normal
Might be a kernel issue. Have you tried downgrading your kernel to maybe the LTS version and see if it is still reproducible?
I had the same problem with LTS this morning. But didn't try with current kernel parameters (recommend for ryzen). Will try with those and update
For LTS I could only find those lags in heavy workload(found when playing games).
Edit : it might be problem with the game. Everything else working fine
I second this. I used to try to debug and solve weird problems like this for the current base kernel. Now I tend to just boot into LTS when I have such an issue. I periodically boot into the mainline kernel and eventually the issue disappears.
Thank you to the great Arch and/or *nix folks that fix those things so I don't have to.
Obviously this isn't always practical or desirable, but I use my Arch machine for work and can't always do fun *nix/Arch debugging.
I have the same problem when I upgraded to kernel 5.4.1, I fixed downgrading to kernel 5.3.13.
Also I use intel instead of AMD.
Maybe downgrading to some version you already used could help you.
See https://bugs.archlinux.org/task/64791?project=1&string=linux and the linked issue. But I don't see how it could affect OP.
I've found it prudent to have LTS, Standard and Zen (my preferred, specially for gaming) installed, with boots for all (I like rEFInd, YMMV, I'm sure grub works) and fallback low parameter versions. After getting bitten by kernel/nvidia before, it's worth the tiny extra space, and you can suck it up on a lesser kernel until the next update. Plus the troubleshooting potential is golden.
I too have freezes on every chromium-based browsers, but Firefox works fine.
Try linux-zen and Also bios updates solves some issues Also use linux-amd from aur
Are u using Wayland. Can u switch to xorg and try.
Using KDE with xorg
Same problem for me.
It started yesterday, after I freshly installed Arch and (for the first time ever) only installed Wayland/Sway, ie without Xorg. I assumed it was some weird Wayland issue.
It seems to be related to Firefox - and I've tried a couple of versions of Firefox out of AUR, including the fedora-firefox-wayland-bin one. I'm still narrowing it down though.
It's a Lenovo Ideapad 720s, so: AMD Ryzen 7 2700U with Radeon Vega 8. (I'll come back with error logs later today)
Disk?
It's also related to p states
This is just a rule of thumb, but when there are pauses in a system, the first thing to check is storage (disk).
What file system are you running? Try setting the dirty write cache (dirty_background_bytes=1 or similar) to something that won't go blocking to see if that clears up your problem.
If that doesn't work, and you don't have any log entries that point to the problem, it'll be guesswork to find the source of the issue. Physical observation and trial and error.
I can confirm - 5.4.2 is unusable for me right now. Sticking to 5.4.1.x seems to be the only solution.
This seems to be one of those regressions that affect only Ryzen laptops. I have the exact same thing on my 2700U laptop on 5.4 and above. I hope it gets fixed soon.
Does anyone know if this was reported upstream?