Editing Vestat
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
The '''/proc/vz/vestat''' file contains statistics for VE CPU usage. | The '''/proc/vz/vestat''' file contains statistics for VE CPU usage. | ||
− | The ''guessed'' content (may the Gods - blessed thy fingers - acknowledge or reject my humble info here | + | The ''guessed'' content (may the Gods - blessed thy fingers - acknowledge or reject my humble info here): |
* '''VEID''': The VE ID, obviously. | * '''VEID''': The VE ID, obviously. | ||
Line 14: | Line 14: | ||
Using cycles: | Using cycles: | ||
− | *seconds = ''measurement'' / | + | *seconds = ''measurement'' / cycles_per_jiffy / jiffies_per_seconds. |
Variables: | Variables: | ||
− | * ''jiffies_per_second'' = 1000 '''( | + | * ''jiffies_per_second'' = 1000 '''(unless you have changed that in kernel config?)''' |
* ''cycles_per_jiffy'' = ''frequency_of_your_cpu'' / ''jiffies_per_second'' | * ''cycles_per_jiffy'' = ''frequency_of_your_cpu'' / ''jiffies_per_second'' | ||
* ''frequency_of_your_cpu'' (in Hz) can be read from /proc/cpuinfo, as: | * ''frequency_of_your_cpu'' (in Hz) can be read from /proc/cpuinfo, as: | ||
− | ** <code>cpu MHz : '' | + | ** <code>cpu MHz : ''frequency_of_your_cpu''</code> |