System information
Ubuntu 22.04.3
Linux kernel 6.4.6
LXC 5.0.0 (from Ubuntu’s universe repo)
LXCFS service configured with --enable-loadavg, and working perfectly
Question
I would like to read a container’s /proc/loadavg
, but without needing to enter on it to do so.
Is there is any file on the host where I could read this specific virtualized mountpoint without entering in the container itself? Or an lxc command?
I already did a research on many directories, including /sys/fs/cgroup/
, /var/lib/lxc
, /var/lib/lxcfs
, to no avail.
The current challenges:
lxc-top
only provides the current CPU usage, not the three averages (of 1 minute, 5 and 15), like/proc/loadavg
- entering the container to read the file can be susceptible to slowdowns if the container is performing heavy tasks