Bug 2481050 - High CPU utilization by updatedb when running inside virtual machine with attached virtiofs filesystem.
Summary: High CPU utilization by updatedb when running inside virtual machine with att...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: plocate
Version: 44
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Zbigniew Jędrzejewski-Szmek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-05-24 14:53 UTC by Bronek Kozicki
Modified: 2026-05-24 14:53 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bronek Kozicki 2026-05-24 14:53:43 UTC
I was wondering why my Fedora 44 is slow running inside a virtual machine; finally I found that it is wasting CPU scanning huge imported filesystem from the host, via virtiofs. The fix is very simple, add virtiofs to PRUNEFS list inside /etc/updatedb.conf. Since this list already has 9p and various networked / distributed filesystems, the fact that it does not currently have virtiofs is an obvious omission.

Reproducible: Always

Steps to Reproduce:
1. construct a virtual machine with virtiofs attached, pointing to a very large filesystem
2. install Fedora 44 inside the virtual machine
3. watch updatedb trying to index the imported virtiofs filesystem
Actual Results:
large CPU utilization by /usr/bin/updatedb

Expected Results:
small or no CPU utilization by /usr/bin/updatedb

Additional Information:
Unexpectedly for the user, updatedb is trying to index a virtiofs filesystem. The updatedb.conf can be used to prevent this and indeed it is used for a range of filesystems including 9p (similar filesystem to virtiofs). The fix is for the user to add virtiofs to PRUNEFS in /etc/updatedb.conf, or ideally for the package to do it in the package provided configuration. This configuration is owned by the package itself - plocate project does not have a source file for default configuration.


Note You need to log in before you can comment on or make changes to this bug.