-1

When i use "cat /proc/uptime" i get result 10257.21 31389.01 what does this mean that my computer is slow? how to read about this more can you recommend me anything?

2 Answers 2

3

/proc/uptime is not a command but a file in a special filesystem named procfs. The man page also gives the meaning of those two numbers.

/proc/uptime

          This file contains two numbers (values in seconds): the
          uptime of the system (including time spent in suspend) and
          the amount of time spent in the idle process.

I don't know why you think a file named uptime says something about your computer slowness but to just know the uptime it is easier to use the command uptime.

2
  • I wish the documentation clarified what "idle process" and "time spent in" meant. In particular I find that enabling/disabling CPUs with chcpu -e/-d affects that value in a way that is not easy to explain. Commented Aug 12, 2023 at 8:11
  • Looks like the system uptime is in wall time, but the idle time is summed across all CPUs. Commented Aug 12, 2023 at 14:08
0

Just find my answer from reddit.

uptime is measured in "wall time", i.e. the number of seconds that have elapsed since the machine was booted. The idle time is the time each processor has spent idle, so it'll be around 2 times higher than I would expect in my case.

[jzhang@centos9 playbooks]$ cat /proc/cpuinfo | grep processor
processor       : 0
processor       : 1
1
  • Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Commented Dec 22, 2023 at 13:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .