Linux kernel 6.4.6
LXC 5.0.0 (from Ubuntu’s universe repo)
LXCFS service configured with --enable-loadavg, and working perfectly
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
/var/lib/lxcfs, to no avail.
The current challenges:
lxc-toponly provides the current CPU usage, not the three averages (of 1 minute, 5 and 15), like
- entering the container to read the file can be susceptible to slowdowns if the container is performing heavy tasks