Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Today a application that I have crashed. I went to check why and is because a new field in /proc/stat:

cpu  635570 3943 1264332 13562455 65965 80 4806 0 0 0
cpu0 311689 2102 654770 6755602 32431 38 4127 0 0 0
cpu1 323881 1840 609562 6806853 33534 41 678 0 0 0 

The last 0 is undocumented, at least in the man page. Does anyone know what is it?

I'm running now in Ubuntu 12.04, and before in 10.04.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

The documentation hasn't been updated together with the code. You can find out what the new field is in the source code. Field #9 is the time spent running in guest virtual machines hosted by this system; field #10 is the time spent in guests with low priority (#10 is to #9 as #2 is to #1).

As a general design note, when there are multiple fields like this, never assume that the total number of fields is fixed. Ignore any extra field.

share|improve this answer
    
thanks very much :) –  Pedro Dusso May 15 '12 at 23:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.