LXC loadavg

Discussion in 'Proxmox VE: Installation and configuration' started by janos, Jun 11, 2018.

Tags:
  1. loomes

    loomes Member

    Joined:
    May 22, 2018
    Messages:
    52
    Likes Received:
    9
    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.
     
    #21 loomes, Apr 20, 2019
    Last edited: Apr 20, 2019
  2. sahostking

    sahostking Member

    Joined:
    Oct 6, 2015
    Messages:
    325
    Likes Received:
    9
    Any reason this is not made default in new proxmox versions yet?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    janos likes this.
  3. oguz

    oguz Proxmox Staff Member
    Staff Member

    Joined:
    Nov 19, 2018
    Messages:
    595
    Likes Received:
    62
    because it's also a relatively new feature for lxcfs, which hasn't been tested thoroughly.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. sahostking

    sahostking Member

    Joined:
    Oct 6, 2015
    Messages:
    325
    Likes Received:
    9
    ok thanks :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice