What fields are presented in /var/lve/info?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • p.bylina
    Junior Member
    • Mar 2021
    • 7

    #1

    What fields are presented in /var/lve/info?

    Im creating my own system to drawing charts in real-time mode. File /var/lve/info seems to be the best way to get current info but what fields are presented in it?

    First is of course lve_id but the rest?

    [root@king ~]# cat /var/lve/info
    0,0,20,0,12,0,262144,0,0
    640,0,20,2,10,0,51200,0,0
    642,0,20,1,10,0,51200,0,0
    646,3,25,1,12,51886,230400,0,0
    550,1,20,4,10,4030,51200,0,0
    999,0,20,1,10,0,51200,0,0
    941,1,20,1,10,1422,51200,0,0
  • iseletsk
    Senior Member
    • Dec 2017
    • 1199

    #2
    The best way to go is not /var/lve/info
    but /var/lve/lveinfo.db
    It has historical data for all the LVEs. (it is an sqlite db)
    Also, it would be easier to read, as it has db schema that you can explore

    Comment

    • p.bylina
      Junior Member
      • Mar 2021
      • 7

      #3
      But lveinfo.db has not current data (?).

      sqlite> sel ect max(created) fr om history;
      2011-04-03 16:02:41.68
      sqlite> SELECT datetime(
      ow);
      2011-04-03 16:03:37

      I would like to refresh my chart every 5 seconds.

      Comment

      • iseletsk
        Senior Member
        • Dec 2017
        • 1199

        #4
        we only store data to db once every minute (we don want it to grow too large)
        Here is format for /var/lve/info file (which is updated every 5 seconds)
        LVE_ID, EP, lEP, CPU, lCPU, MEM, lMEM, fMEM, fEP

        EP -- entry processes
        Prefixes:
        l -- limit
        f -- fault

        Comment

        • p.bylina
          Junior Member
          • Mar 2021
          • 7

          #5
          Thank you ;-)

          Comment

          Working...