lkml.org 
[lkml]   [2013]   [Dec]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectQuestion about /proc/uptime
There are two values here, the first is seconds since boot time (which  
is just elapsed time; at one point it was ajusted for suspend and that
was revered as confusing).

The second value isn't documented but looking at fs/proc/uptime.c I
think it's idle time? Except, if yo uadd up the idle time from all
processors wouldn't you get 4x the uptime on a 4-way SMP system that's
been idle since boot?

Also, is this actual "cpu was on but not doing anything" time, so
doesn't count suspend as idle? So if you subtract idle from uptime (on
a uniprocessor system) on a system that spent some of its time
suspended, what do you get? Amount of time the system "wasn't idle"
means... Is suspend time idle or not idle?

Confused,

Rob

\
 
 \ /
  Last update: 2013-12-26 03:41    [W:0.091 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site