Re: kswapd at 96% CPU on my 16Mb system

From: Kees Bakker (kees_bakker@tasking.nl)
Date: Fri Jun 16 2000 - 14:32:40 EST


>>>>> "Rik" == Rik van Riel <riel@conectiva.com.br> writes:

Rik> On Thu, 15 Jun 2000, Kees Bakker wrote:
>> With test1-ac17 I still have very bad performance, because
>> kswapd eats almost all of the CPU cycles. The bare test1 was a
>> little better, but not much.
>>
>> With ALT-scroll-lock I was able to see that it spends most of
>> its time in wake_up and friends.

Rik> In wake_up .. interesting.

Let me be more precise. Here is a excerpt from the logging:
Note this is bare test1.

Jun 14 23:12:42 flappie kernel: EIP: 0010:[try_to_swap_out+21/636] EFLAGS: 00000246
Jun 14 23:12:44 flappie kernel: EIP: 0010:[swap_out+107/268] EFLAGS: 00000282
Jun 14 23:12:45 flappie kernel: EIP: 0010:[shrink_mmap+91/520] EFLAGS: 00000286
Jun 14 23:12:50 flappie kernel: EIP: 0010:[__wake_up+26/508] EFLAGS: 00000286
Jun 14 23:13:02 flappie kernel: EIP: 0010:[swap_out_vma+331/448] EFLAGS: 00000246
Jun 14 23:13:15 flappie kernel: EIP: 0010:[default_idle+35/40] EFLAGS: 00000246
Jun 14 23:13:28 flappie kernel: EIP: 0010:[swap_out_vma+324/448] EFLAGS: 00000246
Jun 14 23:13:36 flappie kernel: EIP: 0010:[prune_icache+42/240] EFLAGS: 00000202
Jun 14 23:13:45 flappie kernel: EIP: 0010:[swap_out_vma+403/448] EFLAGS: 00000246
Jun 14 23:13:49 flappie kernel: EIP: 0010:[try_to_swap_out+630/636] EFLAGS: 00000246
Jun 14 23:13:58 flappie kernel: EIP: 0010:[try_to_swap_out+627/636] EFLAGS: 00000246
Jun 14 23:14:10 flappie kernel: EIP: 0010:[try_to_swap_out+614/636] EFLAGS: 00000247
Jun 14 23:14:17 flappie kernel: EIP: 0010:[__wake_up+496/508] EFLAGS: 00000286
Jun 14 23:14:27 flappie kernel: EIP: 0010:[swap_out_vma+324/448] EFLAGS: 00000246
Jun 14 23:14:35 flappie kernel: EIP: 0010:[shrink_mmap+106/520] EFLAGS: 00000246
Jun 14 23:14:46 flappie kernel: EIP: 0010:[prune_icache+109/240] EFLAGS: 00000202
Jun 14 23:14:53 flappie kernel: EIP: 0010:[prune_icache+62/240] EFLAGS: 00000206
Jun 14 23:15:01 flappie kernel: EIP: 0010:[__wake_up+496/508] EFLAGS: 00000286
Jun 14 23:15:09 flappie kernel: EIP: 0010:[try_to_swap_out+7/636] EFLAGS: 00000292
Jun 14 23:15:16 flappie kernel: EIP: 0010:[prune_icache+62/240] EFLAGS: 00000202
Jun 14 23:15:24 flappie kernel: EIP: 0010:[try_to_swap_out+275/636] EFLAGS: 00000202
Jun 14 23:15:32 flappie kernel: EIP: 0010:[try_to_swap_out+627/636] EFLAGS: 00000246
Jun 14 23:15:40 flappie kernel: EIP: 0010:[swap_out_vma+302/448] EFLAGS: 00000287
Jun 14 23:15:48 flappie kernel: EIP: 0010:[try_to_swap_out+3/636] EFLAGS: 00000292
Jun 14 23:15:56 flappie kernel: EIP: 0010:[try_to_swap_out+303/636] EFLAGS: 00000202
Jun 14 23:16:08 flappie kernel: EIP: 0010:[shrink_mmap+91/520] EFLAGS: 00000292
Jun 14 23:16:20 flappie kernel: EIP: 0010:[swap_out+98/268] EFLAGS: 00000202
Jun 14 23:16:33 flappie kernel: EIP: 0010:[__wake_up+496/508] EFLAGS: 00000282
Jun 14 23:16:45 flappie kernel: EIP: 0010:[swap_out_vma+346/448] EFLAGS: 00000202
Jun 14 23:16:58 flappie kernel: EIP: 0010:[swap_out+91/268] EFLAGS: 00000287
Jun 14 23:17:05 flappie kernel: EIP: 0010:[try_to_swap_out+3/636] EFLAGS: 00000292
Jun 14 23:17:13 flappie kernel: EIP: 0010:[try_to_swap_out+41/636] EFLAGS: 00000212
Jun 14 23:17:21 flappie kernel: EIP: 0010:[swap_out_vma+342/448] EFLAGS: 00000202
Jun 14 23:17:30 flappie kernel: EIP: 0010:[try_to_swap_out+3/636] EFLAGS: 00000292

>> Is there a way to tune kswapd behaviour on my machine? Or, are
>> there certain things I can try?

Rik> It would be interesting to see some vmstat figures (and
Rik> other stuff) from your machine so we have a feel for
Rik> what's going on...

Here is output of vmstat:

   procs memory swap io system cpu
 r b w swpd free buff cache si so bi bo in cs us sy id
 0 0 1 0 4752 52 5772 0 0 8 3 122 12 2 94 5

And again, output of vmstat after a few minutes:

   procs memory swap io system cpu
 r b w swpd free buff cache si so bi bo in cs us sy id
 0 0 1 0 4756 52 5772 0 0 2 1 105 5 0 99 1

To be honest, I have no clue what it means, but I'll try to find some doc.

And output of cat /proc/meminfo:
        total: used: free: shared: buffers: cached:
Mem: 14254080 9355264 4898816 0 49152 5906432
Swap: 33026048 0 33026048
MemTotal: 13920 kB
MemFree: 4784 kB
MemShared: 0 kB
Buffers: 48 kB
Cached: 5768 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 13920 kB
LowFree: 4784 kB
SwapTotal: 32252 kB
SwapFree: 32252 kB

Thanks for the help.

-- 
When all else fails, PANIC!

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:12 EST