[SOLVED] udisksd using lots of CPU

Colin 't Hart

Active Member
Jan 20, 2017
34
4
28
48
Frösön, Sweden
www.hiawathaavenue.com
I'm having a problem that has been reported by other Debian and Ubuntu users that udisksd is using lots of CPU.

Right now I'm investigating workarounds rather than solutions so my question is: Is this service essential to Proxmox? What happens if I stop and disable it?
 

Colin 't Hart

Active Member
Jan 20, 2017
34
4
28
48
Frösön, Sweden
www.hiawathaavenue.com
Thanks. That tells me all I need to know. I'm using Proxmox as my workstation OS, so udisks2 was installed by the act of adding XFCE to the install. Will disable the udisks2 service as I almost never use USB disks and have no plans to add storage to my desktop machine.
 

codejp3

New Member
Nov 29, 2019
10
3
3
41
I ran across this as well. In my case, the udisks2 service was being used by Docker, Cockpit, and for mounting a USB external drive for manual backups.

udisks2 was consuming an average of 30-40% of my CPU at idle!

For now, I disabled Docker, Cockpit, and Udisks2, and my idle CPU is back down to 1-2% with several lxc containers running.

I suspect it's cockpit causing the CPU usage because it uses udisks2 heavily for anything related to drives, but I have not confirmed this yet.

The udisks2 version available in the Buster repo right now is pretty far behind and has known memory leaks and other issues that have since been patched, so perhaps a manual upgrade of that may fix it as well.

It would be nice to find the actual cause and correct it. If I do, I'll update this thread again with the fix.
 

mkaatman

Member
Apr 22, 2016
1
0
21
120
Having this issue after pve 7.x upgrade.

apt-cache rdepends --installed udisks2

udisks2
Reverse Depends:
dbus-user-session
fwupd

Code:
PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
    877 root      20   0  394028  13156  10524 S  52.9   0.0  75:34.42 udisksd
    864 message+  20   0  146948 135496   4080 S  49.0   0.4  72:00.35 dbus-daemon

systemctl stop udisks2.service

Immediately drops the CPU to normal.

systemctl disable udisks2.service may be my solution for now.
 
Last edited:

Crazyachmed123

New Member
Jun 17, 2020
1
0
1
47
I can also see a spike in the load-average from about 1.5 do 7.5 after the update to PVE 7. Stopping udisks2 drops the numbers back down.
 

astrakid

Active Member
Jun 13, 2013
72
1
28
i have those "spikes" for hours (it is not a spike anymore). i am running systemctl stop udisks2 via crontab every 10 minutes.
what is a real solution? why are udisks2 generating high cpu?

regards,
andre
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!