LXC loadavg

loomes

Active Member
May 22, 2018
101
24
38
42
i have enabled this by add the -l Parameter. Shutdown all LXC's, edit /lib/systemd/system/lxcfs.service, restart lxcfs and startup the containers again. Seems to work but i have lots of messages in syslog:
Apr 20 10:47:42 proxmox lxcfs[20932]: bindings.c: 5478: refresh_load: Open proc_path failed in refresh_load.

Edit:
I think i found the Problem.
After looking at the bindings.c code i sea that every 5 seconds the values where reloaded in proc.
I have multiple lxc containers with screen sessions. In screnn hardline i display some useful infos, also loadavg :) and i reread loadavg every 5 seconds :)
I changed this to 7 seconds and the syslog message is gone.
 
Last edited:

oguz

Proxmox Staff Member
Staff member
Nov 19, 2018
4,994
630
118
because it's also a relatively new feature for lxcfs, which hasn't been tested thoroughly.
 

harvie

Active Member
Apr 5, 2017
130
21
38
32
because it's also a relatively new feature for lxcfs, which hasn't been tested thoroughly.

Well... I run 40+ CTs using it since day one and so far i didn't had any problems. Which means i've tested it for longer time than elapsed between ZFS 8.x stable release and it's inclusion in proxmox :)
 
  • Like
Reactions: alexskysilk

Dunuin

Famous Member
Jun 30, 2020
6,014
1,392
144
Germany
Are there any news on it? Does it still work or is it maybe already somehow implemented in PVE?
 

oguz

Proxmox Staff Member
Staff member
Nov 19, 2018
4,994
630
118
It was more a thread bump to @oguz, but thank you for your feedback.
seems like it's working well for some users, but to be honest i don't see any reason to make it default still. it's rather easy to add the flag and it's a specific use case...
 

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!