Re: Fwd: NFS , Kjournald - status D (uninterruptible sleep) - maquina lenta.

From: Jan Kara
Date: Mon Dec 17 2007 - 10:32:40 EST


> Dears, I've got a double dual xeon wich sometimes is getting too slow.
>
>
> While i was observing one of these slowly times, I realized the time
> wait of processors come close to 100% and nfsd and kjournald process
> become to D status (uniterruptible sleep) .Does someone know why this
> can be happening or how can I troubleshoot it?
>
> Below is a 'draw' of my top at one of these moments.
>
> [root@cromo src]# top
> top - 10:59:02 up 6 days, 19:30, 17 users, load average: 14.77, 13.46, 13.00
> Tasks: 189 total, 1 running, 188 sleeping, 0 stopped, 0 zombie
> Cpu0 : 0.0% us, 0.4% sy, 0.0% ni, 0.2% id, 98.5% wa, 0.0% hi, 0.9% si
> Cpu1 : 0.0% us, 0.4% sy, 0.0% ni, 0.0% id, 99.6% wa, 0.0% hi, 0.0% si
> Cpu2 : 0.0% us, 0.2% sy, 0.0% ni, 7.8% id, 92.0% wa, 0.0% hi, 0.0% si
> Cpu3 : 0.2% us, 0.8% sy, 0.0% ni, 0.0% id, 98.7% wa, 0.2% hi, 0.0% si
All processors are in iowait - i.e. waiting for IO.

> Mem: 4025540k total, 4018264k used, 7276k free, 7908k buffers
> Swap: 4096564k total, 3288k used, 4093276k free, 3553252k cached
>
> 3941 root 15 0 0 0 0 D 2 0.0 80:29.30 nfsd
> 3938 root 15 0 0 0 0 D 1 0.0 81:02.02 nfsd
> 2459 root 15 0 0 0 0 D 1 0.0 30:57.04 kjournald
> 3937 root 15 0 0 0 0 D 1 0.0 82:07.99 nfsd
> 96 root 15 0 0 0 0 S 0 0.0 34:12.48 kswapd0
> 3940 root 15 0 0 0 0 D 0 0.0 80:22.55 nfsd
> 3942 root 15 0 0 0 0 D 0 0.0 80:23.66 nfsd
> 3939 root 15 0 0 0 0 D 0 0.0 82:22.55 nfsd
It seems like heavy disk/network activity. You can try running
vmstat 1
It will print every second the situation of your memory / IO
subsystem. You should especially see the ---io--- column ('bi' means
blocks in, 'bo' blocks outputted). I guess they'd contain some
non-trivial values...
BTW: I guess the processes wake up eventually, don't they?

Honza
--
Jan Kara <jack@xxxxxxx>
SuSE CR Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/