Slow, laggy, choppy performance in certain distros
Hello all, this is my first post here since I've been using one Linux system or another a lot more frequently lately...I have an issue I've spent many hours desperately Googling, but can't find an applicable solution anywhere.
First, the system I'm working with: it's a computer I built myself back in 2012 with a Gigabyte Z68MA-D2H-B3 motherboard, Intel Core i5 CPU (Sandy Bridge) running at 3.31 GHz, 8 GB of RAM, a one-TB SSD, and nVidia GeForce GTX 1060 graphics card. I had been using this as a Hackintosh for most of its life but have given that up since it won't run Mojave and I couldn't get it to recognize my graphics card in High Sierra.
So I installed Fedora 30 on it, and it's so slow and choppy to be nearly unusable. Not only when running off a bootable USB but when installed on the SSD. I move the mouse around, and then watch the pointer slowly jump across the screen. I press a key, and then must wait several seconds for the letter to appear, and sometimes the letter gets typed more than once (e.g. I quickly tap "s" and after five seconds "ssss" appears, so I have to backspace it). Obviously this makes typing a single command line excruciatingly long and frustrating.
I've scoured various forums looking for a solution but can't find anything that works for me. In every discussion I've found, the problem was caused by something that doesn't apply to my situation, like running it in Virtualbox, or using some memory-intensive application that I don't even have, or it's only slow when playing a video, etc.
I should add that I have this same problem running Kali off a bootable CD, not only on the desktop but on my laptop (Dell Latitude E6500) which runs Mint just fine.
About this post
- Posted
- Archived
- Score
- 7 · 100% up
- Kind
- Text
- ID
- c16xml
11 comments
Which graphics card driver do you use? I'm afraid that in order to get decent performance from your NVidia card you will have to install the prorietary NVidia driver.
Many distros ship the free / open source driver called nouveau by default, which lacks some features (most notably reclocking) on newer cards. On Fedora you can install the prorietary driver from a place called RPM Fusion.
I'm pretty sure it's running nouveau. I tried to install the NVidia driver following instructions I found on another site, which mostly involved a bunch of command-line inputs that took forever to type because of the lag. Apparently I broke something because now it won't even boot, so I'll have to do a fresh re-install. Hopefully installing via RPM Fusion will work better.
You really, really want NVIDIA blob. Fedora isn't closed software friendly, so if you want to look around first, try something else, like Pop!_OS https://system76.com/pop Here's an ISO for NVIDIA users https://pop-iso.sfo2.cdn.digitaloceanspaces.com/19.04/amd64/nvidia/6/pop-os_19.04_amd64_nvidia_6.iso
Nouveau is unusuable, as in slow, buggy and lacking features (and it's not the fault of its heroic devs). Don't use it except for install.
It's looking like nouveau is the most likely source of the problem. I'll see if I can get the driver working and let you all know how that goes.
Have you already tried the base troubleshooting like installing power management (tlp/tlp-rdw), checked your temperatures, and made sure you have updated firmware/kernel?
Any errors showing up in your journal or logs? Do you have any filesystems that are being mounted as type fuseblk. (I've seen rare issues with NTFS partitions going back and forth between user and kernel mode excessively).
Have you tried running a perf flamegraph to see what your system is spending the most time on?
In my experience, unexplained sluggishness is usually explained by thermal/firmware/hardware problems or excessive syscalls between user and kernel mode for desktop workflows. The flamegraph should help you get to the bottom of it if its not one of the above two.
http://www.brendangregg.com/FlameGraphs/cpuflamegraphs.html
I just tried a little experiment: since Skywave (based on Ubuntu 16) and Slackware run just fine via CD and USB, I booted and ran top (without any other apps open) in each one to see what was using the most CPU and memory, and then did that in Fedora to compare. In those first two, nothing was using much CPU or memory, with the one using the most being Xorg (0.3% CPU in both, 1.6% memory in Slack and 1.3% in Skywave).
Ran top in Fedora and...gnome-shell is consistently using 62% or more CPU, sometimes going over the 100% mark. At one point, for about a second, it was actually reporting 256% CPU usage! Something tells me that's the cause of this problem.
Wouldn't you know it, type "gnome-shell" in Google and the first thing auto-complete comes up with is "gnome-shell high cpu"
Well glad you were able to isolate it down.
A word of warning with using top though; the performance displayed is not necessarily accurate. It does a horrible job of catching transient processes, and the way it samples for load can often lead to inaccurate assumptions. I think in this case it probably doesn't apply but just keep that in mind.
Perf can sample more accurately and flamegraphs show the amount of time the cpu spends over a given sample (even transient processes).
Updating the kernel was one of the things I did the last time I tried to install the nVidia driver, I think that may have been what broke it...I'll be sure to try some of this other stuff too.
Yes, although Linux distros tend to use the same kernel, some might decide to apply a specific patch to address an issue while some other might have a different installation script that might result in a different installation (different settings, different kernel tuning, different windows manager, etc...). For example, installing Ubuntu, Lubuntu, Xubuntu or Kubuntu on the same piece of hardware will produce a completely different product even when they installed the same kernel