LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   /proc/stat whats the meaning of the 10th col?? (https://www.linuxquestions.org/questions/linux-software-2/proc-stat-whats-the-meaning-of-the-10th-col-674619/)

wkhoo 10-06-2008 01:45 PM

/proc/stat whats the meaning of the 10th col??
 
On an embedded system (kernal 2.6.21), when I cat /proc/stat I noticed there are 10 columns on the CPU. I google around but I am unable to find info. What are these values? Are the last 2 in addition to the orginal 8 (kernal 2.6.11)?

-------------
cpu 16118 0 9479 654 0 282 6 0 0 2
cpu0 16118 0 9479 654 0 282 6 0 0 2
intr 170000 0 0 0 0 0 0 0 0 0 0 103 0 0 2289 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 26539 0 0 0 138381 186 0 0 2175 0 0 0 0 0 0 0 327 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ctxt 950940
btime 10
processes 616
procs_running 3
procs_blocked 0
pi_init: 0
nr_running(): 3
nr_uninterruptible(): 0
nr_uninterruptible(0): 0
rt_nr_running(): 0
rt_nr_running(0): 0
nr_rt_uninterruptible(): 0
nr_rt_uninterruptible(0): 0

syg00 10-06-2008 04:13 PM

On a (non-imbedded, non-rt) system at 2.6.24 I get the nine fields as documented in "man proc".

wkhoo 10-07-2008 11:53 AM

after much googling I found that the last 2 values are user_rt and system_rt. Anyone know who these values play into computation of the CPU usage?


http://www.kernel.org/pub/linux/kern...2.6.23-rc1-rt1

Quote:

seq_printf(p, "cpu %llu %llu %llu %llu %llu %llu %llu %llu %llu %llu\n",
(unsigned long long)cputime64_to_clock_t(user),
(unsigned long long)cputime64_to_clock_t(nice),
(unsigned long long)cputime64_to_clock_t(system),
static int show_stat(struct seq_file *p,
(unsigned long long)cputime64_to_clock_t(iowait),
(unsigned long long)cputime64_to_clock_t(irq),
(unsigned long long)cputime64_to_clock_t(softirq),
- (unsigned long long)cputime64_to_clock_t(steal));
+ (unsigned long long)cputime64_to_clock_t(steal),
+ (unsigned long long)cputime64_to_clock_t(user_rt),
+ (unsigned long long)cputime64_to_clock_t(system_rt));


All times are GMT -5. The time now is 05:06 PM.