Tumbleweed - System freeze every 10 seconds

Hi!

I’m running a fully updated Tumbleweed system, and sometimes I find when I start a Wayland session I am getting a system freeze every 10 seconds or so. The mouse cursor locks up, keypresses will repeat, video output freezes (Games will hang, etc).

I don’t see any CPU usage spikes while this happens but I’m fairly new so not sure what I can do to debug this, the only interesting thing I see in journalctl -b -0 is:

Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!

This isn’t 100% repro, sometimes if I logout and back in, it doesn’t happen anymore, but I’m not sure how to investigate the cause. None of my disks are full and I am using BTRFS.

Thanks for any guidance!

@Shortwave8115:

First, welcome to the openSUSE forums.


Given that it’s possibly a graphics issue, the disk shouldn’t be involved – usually.
But, you’re using a Btrfs file system – which needs some occasional housekeeping, which usually happens automagically and, usually doesn’t show up in any CPU usage traces.

  • The systemd Journal entries regarding the Wayland compositor not processing events in a timely fashion may well the clue …

It’s a long shot but, could you possibly perform some manual Btrfs housekeeping?

  • In particular Btrfs “balance” and “scrub” –
    For a first try, simply manually start the systemd “btrfs-balance” and “btrfs-scrub” services –
    One after the other – not simultaneously.

The balance and scrub parameters used by the systemd services are usually sufficient but, sometimes it’s necessary to manually fine-tune the parameters by means of a CLI call to –

# btrfs balance/scrub <subcommand> <args>

How did you check this?

Can you run on the command line:

sudo turbostat --Summary --quiet --show Busy%,Avg_MHz,PkgTmp,PkgWatt --interval 1

Do you see any pattern in this output? Feel free to share the output in this topic.

How did you check this?

From the ‘History’ tab in System Monitor.

Thanks for the command, I will try this but the issue isn’t 100% repro for me, so might take a couple of sessions for it to rear its head again. Thanks!

1 Like