Cpu/online appears twice

Is anyone else seeing this?

adavis@boss5 (- /adavis/slice -) [incus] $ ls -l /var/lib/lxcfs/sys/devices/system/cpu/online*
-r--r--r-- 1 root root 5 Mar 12 22:14 /var/lib/lxcfs/sys/devices/system/cpu/online
-r--r--r-- 1 root root 5 Mar 12 22:14 /var/lib/lxcfs/sys/devices/system/cpu/online

I’m running lxcfs 6.0.6

lxcfs -l --enable-loadavg --enable-cfs --enable-pidfd -o allow_other /var/lib/lxcfs

Yes :slight_smile:

root@nuc3:~# ls /var/lib/incus-lxcfs/sys/devices/system/cpu/
cpu0  cpu2  cpufreq  crash_hotplug  intel_pstate  kernel_max  modalias   offline  online    power    smt     umwait_control
cpu1  cpu3  cpuidle  hotplug        isolated      microcode   nohz_full  online   possible  present  uevent  vulnerabilities
root@nuc3:~# python3
Python 3.10.12 (main, Mar  3 2026, 11:56:32) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> [f for f in os.listdir("/var/lib/incus-lxcfs/sys/devices/system/cpu") if f == "online"]
['online', 'online']
>>>

incus 6.0.5-ubuntu22.04-202601231515

root@nuc3:~# /opt/incus/bin/lxcfs --version
"6.0.5"

I can reproduce the issue too. I’ll get back to you folks. Thanks for reporting!

There is an issue for this: cpu/online file is duplicated · Issue #685 · lxc/lxcfs · GitHub

1 Like