I am sorry for bad title but i have no idea where to start looking.
using Glances to monitor processes all i can see is ctx_sw spiking while the computer slows down to a halt, CPU and ram usage is under 50% and little no no swap is in use.
i am not sure if other things causes this to happen but i use the machine primarily to just run part of my web browsing needs as a side computer.
i don’t really know where to start looking. i know there is a week uptime but restarting the computer is not a permanent fix,
(i think it might work for a bit after restart but i am unsure for how long as i have not timed it)
i am fine with just burning it down and reinstalling the OS but it would be nice to find the source of this problem
My computer:
antergos
(taken form screenfetch)
OS: Arch Linux
Kernel: x86_64 Linux 4.16.2-2-ARCH
Uptime: 9d 22h 17m
Packages: 1090
Shell: bash 4.4.19
Resolution: 1920x1080
WM: i3
CPU: Intel Core i5-2310 @ 4x 3.2GHz
GPU: NVC8
RAM: 7961MiB
“ctx_sw: number of context switches (voluntary + involuntary) per second. A context switch is a procedure that a computer’s CPU (central processing unit) follows to change from one task (or process) to another while ensuring that the tasks do not conflict.”
Source: https://glances.readthedocs.io/en/stable/aoa/cpu.html
Firefox extensions:
Adnauseam
Dark Background and Light Text
DuckDuckGo Hide Unwanted Results
Facebook Container
Ghostery
HTTPS Everywhere
Privacy Badger
Tab Suspender
uMatrix
Vimium
Edit 2
i have tried disabling hardware acceleration which did nothing and am currently disabling all Firefox extensions to see if that does anything
Edit 3
looks like xorg is spiking in CPU usage at times, looks like it might be happening while switching to another virtual desktop
Edit 4
i am now seeing iowait also going up while doing stuff
Context Switching is extremely CPU hungry. This happens when the CPU switches from working on Task A (be it a process or thread) to Task B. That’s probably where we’d want to start. What’s running on your system.
I’m assuming this is some sort of Fermi card. It looks like you don’t have your GPU drivers for xorg installed properly.
Make sure you’ve got xf86-video-nouveau installed.
ok, i have installed extra/xf86-video-nouveau 1.0.15-2 (xorg-drivers), it still shows up as GPU: NVC8 in screenfetch but i guess i’ll return if the issue comes back after some use.
Thanks for the help
Edit 1
I installed it and restarted the computer so it might take a couple of days before the issue comes back
If this was an important computer i would do that, but this one i just fuck around with and use to drive my need for many hundreds of browser tabs. Guess it is reinstallation time, Again thanks for everything
Make no mistake, I like Arch. It’s fun, it’s interesting, you get to play with the latest and greatest and you get to tinker with it all you want. I tried it as my daily and went about a month before an update made it so crashy it became unusable. And I’m just not smart enough to figure out why it broke, and I don’t have the patience for my main computer not to work.
If everything appears to be in working order hardware and software wise… The problem might simply be those “hundreds of open tabs” consuming enough CPU cycles over X amount of time considering that amount of tabs is going to build a sizable cache over time to cause just that sort of problem.
Not counting the potential for any hard-drive problems of course.
It might just be all of the tabs. i am not sure how firefox handles everything, does it have a leaking issue of some kind which might be causing it since it only happens after around 5 days of uptime?
with suspending all but currently in use tabs with https://add0n.com/tab-suspender.html how would that influence that?
i also block most stuff with uMatrix and other stuff as listed in OP
Smart says my hard drive looks fine, i know smart is not always accurate but throwing that out there.
Im not a Linux guru. Are you seeing a particular process consuming a good chunk of the system’s resources, i.e CPU, RAM, or Disk?
Also may be worth checking the size of you swap partition. If you are suspending “hundreds” of firefox tabs, it may be filling up your swap.
If it were my system, I would investate for a memory leak.