What fields are presented in /var/lve/info?
Forum
  1. Forums
  2. General
  3. General Discussion
  1. Pawel Bylina
  2. Sunday, 03 April 2011
  3.  Subscribe via email
I\'m 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?

[[email protected] ~]# 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
Rate this post:
  1. 03.04.2011 12:04:40
  2. # 1
Igor Seletskiy Accepted Answer
Posts: 1200
Joined: 09.02.2010
0
Votes
Undo
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 :)
  1. 03.04.2011 12:04:28
  2. # 2
Pawel Bylina Accepted Answer
Posts: 3
Joined: 03.04.2011
0
Votes
Undo
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(\'now\');
2011-04-03 16:03:37

I would like to refresh my chart every 5 seconds.
  1. 03.04.2011 12:04:44
  2. # 3
Igor Seletskiy Accepted Answer
Posts: 1200
Joined: 09.02.2010
0
Votes
Undo
we only store data to db once every minute (we don\'t 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
  1. 03.04.2011 12:04:11
  2. # 4
Pawel Bylina Accepted Answer
Posts: 3
Joined: 03.04.2011
0
Votes
Undo
Thank you ;-)
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.