LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-29-2011, 10:37 AM   #1
somenathpal
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Rep: Reputation: 1
Question regarding /proc/uptime


Hello All,

In my system when I issue the command

cat /proc/uptime it returns the following
3803.21 14244.93
As per my understanding the first floating point number return the total number of seconds the system has been up and the second how much of that time the machine has spent idle, in seconds. So my question is how the second number is greater than first number?
 
Old 11-29-2011, 12:47 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Honestly I have never seen that. What is outputted when you run the uptime command?
 
Old 11-29-2011, 04:02 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,533

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
The first number is independent of the number of CPUs/cores.
 
Old 11-29-2011, 04:09 PM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Quote:
Originally Posted by syg00 View Post
The first number is independent of the number of CPUs/cores.
Ahh ok, that explains it then. Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Reading /proc/uptime using qt and QString robertjinx Programming 6 10-19-2011 06:10 AM
General Security/Server Uptime Question revenger681 General 1 05-05-2011 05:30 AM
init uptime longer than system uptime? m4rtin Linux - Server 1 09-15-2010 07:45 AM
2 numbers in /proc/uptime?? blackzone Linux - General 2 10-13-2006 10:35 AM
simple uptime question, I think lapthorn Linux - General 1 12-15-2004 07:09 AM


All times are GMT -5. The time now is 12:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration