public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: linux-kernel@vger.kernel.org
Cc: Oleg Nesterov <oleg@redhat.com>,
	Martin Schwidefsky <schwidefsky@de.ibm.com>
Subject: Question about /proc/uptime
Date: Wed, 25 Dec 2013 20:30:09 -0600	[thread overview]
Message-ID: <1388025009.1176.17@driftwood> (raw)

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

             reply	other threads:[~2013-12-26  2:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-26  2:30 Rob Landley [this message]
2013-12-27 14:45 ` Question about /proc/uptime 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1388025009.1176.17@driftwood \
    --to=rob@landley.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oleg@redhat.com \
    --cc=schwidefsky@de.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox