High load average, low cpu usage when /home NFS mounted

High load average, low cpu usage when /home NFS mounted

Post by Ole Jacob Taraldse » Sat, 24 Jul 1999 04:00:00



I have a PII 450 MHz w/512 MB ram and a clean RedHat 6.0 w/updates. The
/home partition is NFS mounted from and SGI. When I take a look at cpu
usage i kpm/qps most of the cpu is idle (~85%), but load average reports
around 2. Isn't load average a function of cpu usage (only, mostly)? Can
it be that some process is running, but not showing in ps/top/kpm? I
feel that the system response has been reduced quite a bit after
upgrading to RedHat 6.0.

Please email me as well as post to this NG!

Ole Jacob
--
GexCon AS, Bergen, Norway  <http://www.gexcon.com>
Tel : +47 55574334 (office) +47 55558650 (home)
Mob.tel. : +47 95080525  Fax : +47 55574331
PGP key : <http://home.c2i.net/ojt/pgp.txt>

 
 
 

High load average, low cpu usage when /home NFS mounted

Post by Paul Kimo » Sat, 24 Jul 1999 04:00:00


[posted and e-mailed]


> The
> /home partition is NFS mounted from [an?] SGI. When I take a look at cpu
> usage i kpm/qps most of the cpu is idle (~85%), but load average reports
> around 2. Isn't load average a function of cpu usage (only, mostly)? Can
> it be that some process is running, but not showing in ps/top/kpm? I
> feel that the system response has been reduced quite a bit after
> upgrading to RedHat 6.0.

The proc(5) man page says

        loadavg

        The load average numbers give the number of jobs in
        the run queue averaged over 1, 5 and 15 minutes.

Processes waiting for (slow NFS) disk operations would be in the run
queue, but not necessarily consuming much CPU.

Have you tried tweaking the NFS mount options to try to get better
performance?

--


 
 
 

High load average, low cpu usage when /home NFS mounted

Post by Kelly Burkhar » Sat, 24 Jul 1999 04:00:00



> [posted and e-mailed]


> > The
> > /home partition is NFS mounted from [an?] SGI. When I take a look at cpu
> > usage i kpm/qps most of the cpu is idle (~85%), but load average reports
> > around 2. Isn't load average a function of cpu usage (only, mostly)? Can
> > it be that some process is running, but not showing in ps/top/kpm? I
> > feel that the system response has been reduced quite a bit after
> > upgrading to RedHat 6.0.

> The proc(5) man page says

>    loadavg

>    The load average numbers give the number of jobs in
>         the run queue averaged over 1, 5 and 15 minutes.

> Processes waiting for (slow NFS) disk operations would be in the run
> queue, but not necessarily consuming much CPU.

<snip>

Really?  I thought processes waiting on IO were not in the run queue;
only processes that were "ready to run".  Am I completely off base?

--
Kelly R. Burkhart

[The litigation] industry was, of course, up and running before the
tobacco litigation, but that taught lawyers just how lucrative it
could be to blame individuals' foolishness on, say, Joe Camel.
   -- George F. Will

 
 
 

High load average, low cpu usage when /home NFS mounted

Post by Peter Stein » Mon, 26 Jul 1999 04:00:00



>>        loadavg

>>        The load average numbers give the number of jobs in
>>         the run queue averaged over 1, 5 and 15 minutes.

The manpage is wrong.

Quote:>Really?  I thought processes waiting on IO were not in the run queue;
>only processes that were "ready to run".

That should be correct.

The loadavg shows the number of "active" tasks. Active does not only
mean "running", but also "doing critical I/O".

kernel/sched.c:

static unsigned long count_active_tasks(void)
{
        struct task_struct *p;
        unsigned long nr = 0;

        read_lock(&tasklist_lock);
        for_each_task(p) {
                if ((p->state == TASK_RUNNING ||
                     p->state == TASK_UNINTERRUPTIBLE ||
                     p->state == TASK_SWAPPING))
                        nr += FIXED_1;
        }
        read_unlock(&tasklist_lock);
        return nr;

Quote:}

All tasks are counted that are either TASK_RUNNING,
TASK_UNINTERRUPTIBLE or TASK_SWAPPING.

Peter
--
   _   x    ___

  \/>'~~~~//
    \_____/   signature V0.2 alpha

 
 
 

High load average, low cpu usage when /home NFS mounted

Post by Paul Kimo » Tue, 27 Jul 1999 04:00:00





>>>     [from the proc(5) man page:]
>>>    loadavg
>>>    The load average numbers give the number of jobs in
>>>         the run queue averaged over 1, 5 and 15 minutes.
>> Really?  I thought processes waiting on IO were not in the run queue;
>> only processes that were "ready to run".
> The manpage is wrong.
> The loadavg shows the number of "active" tasks. Active does not only
> mean "running", but also "doing critical I/O".

[code from kernel/sched.c snipped]

Quote:> All tasks are counted that are either TASK_RUNNING,
> TASK_UNINTERRUPTIBLE or TASK_SWAPPING.

Okay, but try the following experiment on an NFS client:

#!/bin/sh
while /bin/true; do
   cat > /dev/null LIST_OF_LONG_NFS_MOUNTED_FILES
done

In my list of long files I have stuff like the emacs-20.4 source tar
file (i.e., several MB long).  Each "cat" is taking ~1 minute, and
"top" reports its %CPU at ~10%, but my load average is slightly above
1.

--

 
 
 

High load average, low cpu usage when /home NFS mounted

Post by Peter Stein » Wed, 28 Jul 1999 04:00:00



>> All tasks are counted that are either TASK_RUNNING,
>> TASK_UNINTERRUPTIBLE or TASK_SWAPPING.

>Okay, but try the following experiment on an NFS client:

>#!/bin/sh
>while /bin/true; do
>   cat > /dev/null LIST_OF_LONG_NFS_MOUNTED_FILES
>done

Your tasks are doing I/O. They are most likely in the state
TASK_UNINTERRUPTIBLE and thus increasing the load. That's expected
behaviour. Load does not mean "CPU load" but more generally "system
load".

Peter
--
   _   x    ___

  \/>'~~~~//
    \_____/   signature V0.2 alpha

 
 
 

1. High load average, low cpu usage

I have a PII 450 MHz w/512 MB ram and a clean RedHat 6.0 w/updates .
When I take a look at cpu usage i kpm/qps most of the cpu is idle
(~85%), but load average reports around 2. Isn't load average a function
of cpu usage (only, mostly)? Can it be that some process is running, but
not showing in ps/top/kpm? I feel that the system response has been
reduced quite a bit after upgrading to RedHat 6.0.

Please email me as well as post to this NG!

Ole Jacob
--
GexCon AS, Bergen, Norway  <http://www.gexcon.com>
Tel : +47 55574334 (office) +47 55558650 (home)
Mob.tel. : +47 95080525  Fax : +47 55574331
PGP key : <http://home.c2i.net/ojt/pgp.txt>

2. announce: cgi++ v2.0: a c++ library for cgi script handling

3. CD Burning problems - High CPU usage, low buffer

4. overiding .profile execution

5. Surprisingly high load averages on an NFS server

6. IRC Server software for rh 5.2

7. CPU with good uptime, low energy usage and low heat

8. mv command not executing in cron job

9. xseti@home and high X CPU usage

10. Help: strange high load of SYS cpu usage.

11. Relationship between load average and CPU busy or CPU idle

12. System Load average: How much load average is good for?

13. How High Is High ? (CPU Load)