LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-06-2008, 01:45 PM   #1
wkhoo
LQ Newbie
 
Registered: Apr 2008
Posts: 16

Rep: Reputation: 0
/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
 
Old 10-06-2008, 04:13 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
On a (non-imbedded, non-rt) system at 2.6.24 I get the nine fields as documented in "man proc".
 
Old 10-07-2008, 11:53 AM   #3
wkhoo
LQ Newbie
 
Registered: Apr 2008
Posts: 16

Original Poster
Rep: Reputation: 0
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));
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
STAT() on directories of PROC ??? abhijit_awalekar Programming 2 09-07-2006 12:26 AM
STAT on directories of PROC ??? abhijit_awalekar Programming 1 09-06-2006 03:34 PM
whats the meaning of grep '[a-9]' .. minil Programming 4 12-29-2005 09:41 PM
/proc/stat values don't add up ! mike0w Linux - General 0 10-25-2005 05:01 AM
/proc/stat cpu ahz Programming 1 04-24-2005 07:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration