Skip to contentSkip to conversation

uptime is too high. Is it normal?

DISCUSSION colin 2 participants 4 messages Mar 21, 2006 MIPS

lore
Share & tools
lore

colin

author
#0 lore raw

Hi all,
We use MIPS Linux+uClibc0.9.28+busybox 1.1.0 on our machine. After use "uptime" to get the loading of device, it shows:

    03:50:05 up  3:50, load average: 2.00, 2.00, 2.00
Is it normal? It seems too high because my PC Linux has a much lower value:
    20:38:31 up 12 days,  5:11,  5 users,  load average: 0.04, 0.01, 0.00

Regards,
Colin

#1 lore raw
Quoted 6 lines · colin

Hi all,
We use MIPS Linux+uClibc0.9.28+busybox 1.1.0 on our machine. After use "uptime" to get the loading of device, it shows:

    03:50:05 up  3:50, load average: 2.00, 2.00, 2.00
Is it normal? It seems too high because my PC Linux has a much lower value:
    20:38:31 up 12 days,  5:11,  5 users,  load average: 0.04, 0.01, 0.00

Well, check with ps what is causing the load. Look for processes in either 'D' or 'R' state.

Ralf

author
#2 lore raw

Hi Ralf,
Here is the result:

/usr/local/bin # ps -aux
PID Uid VmSize Stat Command
1 root 412 S init
2 root SWN [ksoftirqd/0]
3 root SW< [events/0]
4 root SW< [khelper]
5 root SW< [kthread]
6 root SW< [kblockd/0]
9 root SW [khubd]

   36 root            SW  [pdflush]
   37 root            SW  [pdflush]
   39 root            SW< [aio/0]
   38 root            SW  [kswapd0]
  645 root            SW  [645]
  646 root            DW  [646]
  647 root            DW  [647]
  648 root            SW  [648]
  649 root            SW  [mtdblockd]
  666 root            SW  [kjournald]
  680 root        380 S   /sbin/syslogd -p /tmp/.log -n -m 0
  681 root        348 S   /sbin/klogd -n
  753 root        400 S   inetd
  793 root        572 S   -sh
  794 root        416 S   init
  811 root        416 S   init
  822 root        416 S   init

980 root SW< [rpciod/0]
1015 root 396 R ps -aux
/usr/local/bin # uptime
00:19:29 up 19 min, load average: 2.00, 1.95, 1.41

The uptime value keeps on going higher and higher. It seems that both 646 & 647 process has the same parent "1". Their "utime" are "0".

Thanks and regards,
Colin

----- Original Message -----
From: "Ralf Baechle" <[email protected]>
To: "colin" <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, March 21, 2006 8:52 PM
Subject: Re: uptime is too high. Is it normal?

Quoted 7 lines · colin
Quoted 6 lines

Hi all,
We use MIPS Linux+uClibc0.9.28+busybox 1.1.0 on our machine. After use "uptime" to get the loading of device, it shows:

    03:50:05 up  3:50, load average: 2.00, 2.00, 2.00

Is it normal? It seems too high because my PC Linux has a much lower

value:

Quoted 1 line
Quoted 1 line
    20:38:31 up 12 days,  5:11,  5 users,  load average: 0.04, 0.01,

0.00

Quoted 5 lines

Well, check with ps what is causing the load. Look for processes in either 'D' or 'R' state.

Ralf

#3 lore raw
Quoted 6 lines · colin
  646 root            DW  [646]
  647 root            DW  [647]

The uptime value keeps on going higher and higher. It seems that both 646 & 647 process has the same parent "1". Their "utime" are "0".

Yes, these two are the offenders. A process should never be for a long time in "D" state. You'll have to figure out what these processes are doing, but they something wrong with these two.

The load average btw is a fairly artificial meassure. On a properly working system it describes the burn of the workload of the system reasonably well - but if things go wrong and cause processes to get stuck in D state (aka uninterruptible sleep) then a system may well still be perfectly responsive even though the load is very high.

Ralf