Everything is laggy

Hello I’m having this weird issue where my browser becomes super laggy and deteriorates over time (EDIT: Now that I’ve ran this distro for a while the lag goes beyond just my browser. All symptoms are the same->). This lag persists across all browsers. I currently use firefox and have tried Brave. Both bring the same lag. The issue is most prevalent in typing tests but it does leaks to other websites. I occasionally get the same input lag in my terminal but It’s not as exaggerated as it is in my browsers. This has been happening since install. I’m running the Community Edition BSPWM install.

This video shows the input lag ← Actually during one its times where the lag is not that bad.

Some other things that could be related?

  • When it does lag, it lags hard. My keyboard is unresponsive and my mouse stutters. Occasionally my mouse will go ballistic and start randomly scrolling. After the lag is done all the input will be done at once, sequentially.

What I’ve done so far:

  • Switched to nvidia drivers
  • Switched back to nouveau because nvidia ruined my X11 configs and made the lag even worse on terminal.
  • Resized my swap partition to be double the size of my ram.
    – I suspect it could be an issue with my memory considering it happens mainly in the browser and occasionally outside of it, but I don’t have any idea on how to fix/diagnose anything to do with memory.

Graphics:
Device-1: NVIDIA GP104 [GeForce GTX 1080] driver: nouveau v: kernel
Display: x11 server: X.Org v: 21.1.7 driver: X: loaded: nouveau
unloaded: modesetting dri: nouveau gpu: nouveau resolution:
1: 1920x1080~60Hz 2: 1920x1080~60Hz 3: 1080x1920~60Hz
API: OpenGL v: 4.3 Mesa 22.3.6 renderer: NV134

[connor@main-desktop ~]$ free -m
total used free shared buff/cache available
Mem: 15925 3692 9442 72 2789 11838
Swap: 30516 0 30516

What CPU do you have?

Ryzen 7 1700X
Edit: Also sorry I keep updating my original post. To sum it up it’s beginning to go beyond just my browser. Everything is pretty laggy now :frowning: .

Run inxi -Fxx0z | eos-sendlog and paste the link here. It helps to know your hardware details.

Please post any config files you changed and why as this could also be a user generated issue.

It sounds like you’re running out of memory though.

welcome at the forum b.t.w. :enos:
sorry to see that you have such an issue running the OS.

You can startinvestiggating from watching journal output while using browser.
journalctl -f in a terminal before starting browser and look what it pulls out…

[connor@main-desktop ~]$ inxi -Fzz0z | eos-sendlog
https://0x0.st/H-YT.txt

I get this spammed:

Mar 20 22:33:57 main-desktop pipewire[1158]: spa.alsa: front:2: (125 missed) snd_pcm_avail after recover: Broken pipe
Mar 20 22:33:59 main-desktop pipewire[1158]: spa.alsa: front:2: (125 missed) snd_pcm_avail after recover: Broken pipe
Mar 20 22:34:01 main-desktop pipewire[1158]: spa.alsa: front:2: (125 missed) snd_pcm_avail after recover: Broken pipe
Mar 20 22:34:03 main-desktop pipewire[1158]: spa.alsa: front:2: (125 missed) snd_pcm_avail after recover: Broken pipe
Mar 20 22:34:05 main-desktop pipewire[1158]: spa.alsa: front:2: (125 missed) snd_pcm_avail after recover: Broken pipe
Mar 20 22:34:07 main-desktop pipewire[1158]: spa.alsa: front:2: (125 missed) snd_pcm_avail after recover: Broken pipe
Mar 20 22:34:09 main-desktop pipewire[1158]: spa.alsa: front:2: (125 missed) snd_pcm_avail after recover: Broken pipe
Mar 20 22:34:11 main-desktop pipewire[1158]: spa.alsa: front:2: (125 missed) snd_pcm_avail after recover: Broken pipe
Mar 20 22:34:13 main-desktop pipewire[1158]: spa.alsa: front:2: (125 missed) snd_pcm_avail after recover: Broken pipe
Could it be the issue?

It’s been happening since install, but so far the only configs I’ve changed were:

  • Kitty
    – Font change
    – Transparency
    – Theme change
  • bspwm
    – Changed color scheme
    – Added picom
    I’ll add If i think of any more.

Try disabling picom. There have been some recent issues there.

1 Like
  1. My inixi command had typo so please run this inxi -Fxx0z|eos-sendlog and post the link here.
  2. As @dalto said try killing picom using pkill picom.

Why not run htop to see what process are slowing your system down.
Also you can try not booting into the GUI just the command line to see if
you system is more responsive. How much memory do you have and what is the cpu?

Sorry for the late response,
Here is the url you asked for - https://0x0.st/Ho1N.txt
I disabled picom but my system still lagged.

Sorry I’m not really sure if this helps, but here are all my system specs : https://0x0.st/Ho1N.txt
I ran htop but I didn’t really see anything fill half of any bar except for some of my cpu processes.

shameless bump

You have nouveau driver with the Nvidia card. I suggest install and use nvidia-inst program to install the nvidia-dkms and related packages (unless you have tried that already).

And while doing it, please show the output of command

pacman -Qs xf86-video