public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Question about /proc/uptime
@ 2013-12-26  2:30 Rob Landley
  2013-12-27 14:45 ` Oleg Nesterov
  0 siblings, 1 reply; 9+ messages in thread
From: Rob Landley @ 2013-12-26  2:30 UTC (permalink / raw)
  To: linux-kernel; +Cc: Oleg Nesterov, Martin Schwidefsky

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-01-02  8:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-26  2:30 Question about /proc/uptime Rob Landley
2013-12-27 14:45 ` Oleg Nesterov
2013-12-30  8:56   ` Martin Schwidefsky
2013-12-30 15:11     ` Oleg Nesterov
2013-12-30 15:26       ` Martin Schwidefsky
2014-01-01  4:17         ` Rob Landley
2014-01-01 12:41           ` Martin Schwidefsky
2014-01-01 21:21             ` Rob Landley
2014-01-02  8:28               ` Martin Schwidefsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox