LunaVulpo
LunaVulpo

Reputation: 3221

What result of uptime command means on android?

I run uptime command on android shell and I get quit different result than for same command on Linux. What this result means exactly?

up time: 01:53:22, idle time: 00:37:26, sleep time: 01:08:02

up time is total time form boot. But what is difference between idle and sleep? and what is

time = uptime - idle_time - sleep_time

it's some kind of run time?

Upvotes: 3

Views: 2650

Answers (1)

dmnc
dmnc

Reputation: 966

I've tried watch -n 1 uptime and did some tests: scrolling home screen, playing some game, locking, unlocking...

uptime - time from boot, it's clear

idle - when I wasn't touching my phone, next this time grows little bit even in some app/game, so it's probably classic linux idle = it grows when kernel, user and i/o are 0%

sleep - locked screen (but it grown very slowly, maybe it has beed disturbed by sshd, my connection and by calling watch` and uptime). In locked screen you should notice than CPU runs only with one core and the lowest frequency, for sure there is more "sleep" and power saving routines in this mode (at least display is off :))

"rest time" - probably when at least CPU has some work :)

Upvotes: 1

Related Questions