I'm using Ubuntu MATE since 2 years, and few months ago, my CPU sensor became more high on idle : it was around 30°C before and now it is around 40°C, and CPU is always on use, around 20% which is very high for a Ryzen 5 3600 (it was closed to 0% before).
Strangely, when doing "ps -aux", I don't see any process using CPU a lot, even if I can see a high CPU usage on system monitor, but anyway.
To find which process was using CPU, I tried to stop each process on system monitor, and I find that the problem is because of GVFSD : when I stop it, CPU usage and temperature became normal. But when I'm doing that, I cannot use Ubuntu properly...
There are hundreds of processes running in a Linux environment, how can you be sure that gvfsd is the issue? reboot the desktop so that it is in a clean state, monitor with top or htop. If gvfsd is stopped, why is there process 3130? You're running 20.04 which I do not have anymore to test.
For sure, I cannot be fully sure that it is gvfsd but when I stopped this process, CPU usage became normal. I tried to stopped a lot of processes and it didn't change CPU usage, so my problem is connected to gvfsd.
It's normal to see process 3130 if it is stopped, I didn't killed this process. The status "Tsl" shows it.
Yes, like most cpu nowadays, so do you know what can I do to fix my problem ?
When I'm using a process viewer, process that is using CPU it is not visible, as I showed you with ps command.
Then I stopped gvfsd process : temperature started to be lower as CPU usage. I did an other htop, and I noticed something strange : Xorg started to take a lot of virtual memory ! 24.3Go !
My suggestion: if you have an extra ssd, install um22.04 on that extra ssd and test if you see the same issue. Your Desktop is powerful so you can do the install in 10-15 min. But again, since I don't have a Ryzen cpu on my systems, I cannot offer advice. I hope others read the forum and provide suggestions.
Thank you but I don't have an extra hdd, and I want to try to fix the problem before reinstall. I didn't speak about it but I have a GeForce RTX1650 and I'm using Nvidia-driver-525 pilots, because when I'm using xserver-xorg-video, system is slower (and to change pilots doesn't have any consequence on CPU usage).
I also have an AMD Ryzen 5 3600 and I have a very low CPU usage.
If I run 'htop', 'htop' itself is the one using the most CPU power ( 1% )
GVFSD is the Gnome Virtual File System Daemon.
If other programs don't call it, it will use exactly 0% CPU.
It is a file system service that is kicked in action on behalf of other applications.
Now, what possibly happens is this:
You have one ore more misbehaving applications spamming the hell out of 'gvfsd' which obeys their rants and wishes just as it is designed to do
which , ofcourse, then results in high CPU usage.
Killing 'gvfsd' is killing the wrong shackle in the chain.
gvfsd is responsible for mounting URLs, external media/filesystems and the like.
Your computer is maybe possibly doing something with networked files in a highly uneconomic chatty way like talking SMB (samba) or WebDAV or some other flakey protocol with a lowly microsoft computer or constantly chatting with google-drive or dropbox or facebook or some equivalent online shady business.
So things you have to do:
disable all the frivolous, non-standard, startup items and try to find out which of your startup toys is abusing the hell out of 'gvfsd'.
If you are misfortunate enough to own a NVidia card: remove the proprietary drivers temporarely (use nouveau) and check again
( because since it is closed source, you don't know what it is doing behind your back like calling home via gvfs and continuously downloading drivers and continuously failing ?? who knows ??)
Also, if you need to: Switch off your network interfaces, remove your external drives and check again.
I upgrade to 22.04 and the problem disappeared. It's good but I don't like to "solve" a problem that way. I hope the problem will not be back in the future, because it came several months after installing 20.04.
Gfvsd is a process that did consume a lot of cpu usage in the past. Yes it wont work very well on a 600mhz single core machine but nowadays nearly eevery pc is so fast the speed impact is almost unnoticeable.
Any devices attaxhed that gfvsd might "like" to open but can't?
I add that there can be filesystem errors which cause high CPU usage by gvfs, if it has started after having used the system for a while, it might be the cause. Anyways, I agree that the cause is not gvfs itself, but some underlying problem. More testing would be needed to properly diagnose it.