* Re: 2.6.12-rc3-mm2 - kswapd0 keeps running
@ 2005-05-02 4:51 Mark McPherson
0 siblings, 0 replies; 10+ messages in thread
From: Mark McPherson @ 2005-05-02 4:51 UTC (permalink / raw)
To: Linux Kernel Mailing List
Hi,
I have noticed since well back in the 2.6.11-mmX series that top always
reports the load average as 1.00 unless and until I kill apcupsd [an APC
ups daemon]. If I do that the load average swiftly drops to 0.00 when
the computer is idle. Thought it was likely an application issue but
perhaps it is related so maybe I had better mention it.
I'm pretty sure the 2.6.12-rcX Linus tree does the same thing, while
vanilla 2.6.11 and the -ac tree don't display this behavior.
apcupsd doesn't seem to actually use excessive resources -- CPU or
memory -- even if I let it run for a long time, and the CPU temperature
remains at the correct idle value when idle [even though the load
average is reported as 1.00].
I don't see corresponding behavior with kswapiod here after a day of
uptime with 2.6.12-rc3-mm2.
Cheers,
Mark
--
Mark McPherson <mark@mahonia.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 2.6.12-rc3-mm2 - kswapd0 keeps running
2005-05-02 18:14 ` Andrew Morton
2005-05-02 21:30 ` Damir Perisa
@ 2005-05-06 18:07 ` Damir Perisa
1 sibling, 0 replies; 10+ messages in thread
From: Damir Perisa @ 2005-05-06 18:07 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 975 bytes --]
Le Monday 02 May 2005 20:14, Andrew Morton a écrit :
> hm. I wonder why you had any cachefs pages anyway. Is the sysrq-P
> trace always the same?
ok, now after collecting the data after a lot of "sysrq-p" after a lot
times running into the same 100% of kswapd0, i am sure: it's always the
same trouble.
it's also reproducable with rc3-mm3
> Does disabling cachefs in kerel config fix it?
it seems so, yes. now i'm running rc3-mm3 with disabled cachefs (config
can be found at [1]) for more than 6 hours (also under heavy I/O on
harddrives) and it is still behaving normal - no running kswapd0 any more
(kswapd0 finally managed to find some sleep ;-) )
greetings,
Damir
[1] :
http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/kernels/kernel26mm/config?rev=1.20&cvsroot=Extra&only_with_tag=CURRENT&content-type=text/vnd.viewcvs-markup
--
"Protozoa are small, and bacteria are small, but viruses are smaller
than the both put together."
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 2.6.12-rc3-mm2 - kswapd0 keeps running
2005-05-04 19:12 ` Cameron Harris
@ 2005-05-04 21:47 ` Damir Perisa
0 siblings, 0 replies; 10+ messages in thread
From: Damir Perisa @ 2005-05-04 21:47 UTC (permalink / raw)
To: Cameron Harris; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 680 bytes --]
Le Wednesday 04 May 2005 21:12, Cameron Harris a écrit :
> I can sort of confirm this, except on a different kernel version.
> This kswapd0 taking 100% cpu is on my 2.6.12-rc2-mm3 compiled with
> cachefs. Next time I boot into it I can check my sysrq-P and see if
> cachefs is causing it on mine...
> It tends to be after something has heavily used my hard drive.
very interesting observation. unfortunately i will be offline untill next
tuesday and cannot check that for my case.
Damir
PS
don't forget your mother ... especially on next sunday
--
To fear love is to fear life, and those who fear life are already three
parts dead.
-- Bertrand Russell
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 2.6.12-rc3-mm2 - kswapd0 keeps running
2005-05-01 15:07 ` 2.6.12-rc3-mm2 - kswapd0 keeps running Damir Perisa
2005-05-01 22:06 ` Andrew Morton
@ 2005-05-04 19:12 ` Cameron Harris
2005-05-04 21:47 ` Damir Perisa
1 sibling, 1 reply; 10+ messages in thread
From: Cameron Harris @ 2005-05-04 19:12 UTC (permalink / raw)
To: linux-kernel
On 5/1/05, Damir Perisa <damir.perisa@solnet.ch> wrote:
> i updated from rc2-mm3 to rc3-mm2 and now i observe something strange:
> the cpu is running all the time at 100% because of the kswapd0 that is
> running always and not becomming idle.
>
> after having the computer running for about one hour, top says this about
> kswapd0:
>
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 155 root 25 0 0 0 0 R 89.6 0.0 38:56.06 kswapd0
>
> the config file you can find here:
> http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/kernels/kernel26mm/config?rev=1.18&cvsroot=Extra
>
> regards,
>
> Damir Perisa
>
> --
> A thing worth doing is worth the trouble of asking somebody else to do it.
>
>
>
I can sort of confirm this, except on a different kernel version.
This kswapd0 taking 100% cpu is on my 2.6.12-rc2-mm3 compiled with cachefs.
Next time I boot into it I can check my sysrq-P and see if cachefs is
causing it on mine...
It tends to be after something has heavily used my hard drive.
--
Cameron Harris
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 2.6.12-rc3-mm2 - kswapd0 keeps running
2005-05-02 18:14 ` Andrew Morton
@ 2005-05-02 21:30 ` Damir Perisa
2005-05-06 18:07 ` Damir Perisa
1 sibling, 0 replies; 10+ messages in thread
From: Damir Perisa @ 2005-05-02 21:30 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 944 bytes --]
Le Monday 02 May 2005 20:14, Andrew Morton a écrit :
> hm. I wonder why you had any cachefs pages anyway. Is the sysrq-P
> trace always the same?
since i modified it to enable magic keys, yes, every time i tried to
output Regs (sysrq-P), the same outputs. i will keep observing and
reporting, if cases with different output appear.
> Does disabling cachefs in kerel config fix it?
unfortunately, the cpu on this machine is busy for the next few days, so i
cannot recompile the kernel right now ... i will recompile disabling
cachefs as soon as i have the resources for it (we all know, students
have limited resources, especially students interested in
bioinformatics). ... or is there a way to disable cachefs on the run
(without recompiling/rebooting)?
untill then, remaining with best regards,
Damir
--
Because we don't think about future generations, they will never forget
us.
-- Henrik Tikkanen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 2.6.12-rc3-mm2 - kswapd0 keeps running
2005-05-02 15:31 ` Damir Perisa
@ 2005-05-02 18:14 ` Andrew Morton
2005-05-02 21:30 ` Damir Perisa
2005-05-06 18:07 ` Damir Perisa
0 siblings, 2 replies; 10+ messages in thread
From: Andrew Morton @ 2005-05-02 18:14 UTC (permalink / raw)
To: Damir Perisa; +Cc: linux-kernel
Damir Perisa <damir.perisa@solnet.ch> wrote:
>
> Le Monday 02 May 2005 08:01, Damir Perisa a écrit :
> > sure. i recompiled the kernel with magic keys and debugger activated
> > [1], and kswapd0 does idle normally, now. it seems to solve my issue,
> > but i don't know why.
>
> now, running the debug-enabled kernel for some time (the whole day - ~7h
> uptime), kswapd0 shows same sympthoms (started at around 4h uptime). it
> is triggered later than before (where it started almost immediately after
> boot), but now i get something more interesting from Regs:
>
> [4314013.408000] SysRq : Show Regs
> [4314013.408000]
> [4314013.408000] Pid: 156, comm: kswapd0
> [4314013.408000] EIP: 0060:[<c05acc49>] CPU: 0
> [4314013.408000] EIP is at _write_lock_irqsave+0x79/0xb0
> [4314013.408000] EFLAGS: 00000282 Not tainted (2.6.12-rc3-mm2-ARCH)
> [4314013.408000] EAX: c15e8ec0 EBX: efb9586c ECX: c15e8ee0 EDX: 00000001
> [4314013.408000] ESI: efcc2000 EDI: efb9586c EBP: efcc3ee4 DS: 007b ES:
> 007b
> [4314013.408000] CR0: 8005003b CR2: b58a4000 CR3: 254e6000 CR4: 00000690
> [4314013.408000] [<c0375be4>] __cachefs_block_put+0x24/0x80
> [4314013.408000] [<c037dae0>] cachefs_releasepage+0x60/0xc0
> [4314013.408000] [<c0154be2>] shrink_list+0x492/0x560
> [4314013.408000] [<c0154fc0>] shrink_cache+0xa0/0x1d0
> [4314013.408000] [<c01555fe>] shrink_zone+0xae/0xe0
> [4314013.408000] [<c0155af1>] balance_pgdat+0x261/0x3f0
> [4314013.408000] [<c013c7e0>] prepare_to_wait+0x20/0x70
> [4314013.408000] [<c0155d64>] kswapd+0xe4/0x140
> [4314013.408000] [<c013c910>] autoremove_wake_function+0x0/0x60
> [4314013.408000] [<c0103142>] ret_from_fork+0x6/0x14
> [4314013.408000] [<c013c910>] autoremove_wake_function+0x0/0x60
> [4314013.408000] [<c0155c80>] kswapd+0x0/0x140
> [4314013.408000] [<c0101225>] kernel_thread_helper+0x5/0x10
>
hm. I wonder why you had any cachefs pages anyway. Is the sysrq-P trace
always the same?
Does disabling cachefs in kerel config fix it?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 2.6.12-rc3-mm2 - kswapd0 keeps running
2005-05-02 6:01 ` Damir Perisa
@ 2005-05-02 15:31 ` Damir Perisa
2005-05-02 18:14 ` Andrew Morton
0 siblings, 1 reply; 10+ messages in thread
From: Damir Perisa @ 2005-05-02 15:31 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1943 bytes --]
Le Monday 02 May 2005 08:01, Damir Perisa a écrit :
> sure. i recompiled the kernel with magic keys and debugger activated
> [1], and kswapd0 does idle normally, now. it seems to solve my issue,
> but i don't know why.
now, running the debug-enabled kernel for some time (the whole day - ~7h
uptime), kswapd0 shows same sympthoms (started at around 4h uptime). it
is triggered later than before (where it started almost immediately after
boot), but now i get something more interesting from Regs:
[4314013.408000] SysRq : Show Regs
[4314013.408000]
[4314013.408000] Pid: 156, comm: kswapd0
[4314013.408000] EIP: 0060:[<c05acc49>] CPU: 0
[4314013.408000] EIP is at _write_lock_irqsave+0x79/0xb0
[4314013.408000] EFLAGS: 00000282 Not tainted (2.6.12-rc3-mm2-ARCH)
[4314013.408000] EAX: c15e8ec0 EBX: efb9586c ECX: c15e8ee0 EDX: 00000001
[4314013.408000] ESI: efcc2000 EDI: efb9586c EBP: efcc3ee4 DS: 007b ES:
007b
[4314013.408000] CR0: 8005003b CR2: b58a4000 CR3: 254e6000 CR4: 00000690
[4314013.408000] [<c0375be4>] __cachefs_block_put+0x24/0x80
[4314013.408000] [<c037dae0>] cachefs_releasepage+0x60/0xc0
[4314013.408000] [<c0154be2>] shrink_list+0x492/0x560
[4314013.408000] [<c0154fc0>] shrink_cache+0xa0/0x1d0
[4314013.408000] [<c01555fe>] shrink_zone+0xae/0xe0
[4314013.408000] [<c0155af1>] balance_pgdat+0x261/0x3f0
[4314013.408000] [<c013c7e0>] prepare_to_wait+0x20/0x70
[4314013.408000] [<c0155d64>] kswapd+0xe4/0x140
[4314013.408000] [<c013c910>] autoremove_wake_function+0x0/0x60
[4314013.408000] [<c0103142>] ret_from_fork+0x6/0x14
[4314013.408000] [<c013c910>] autoremove_wake_function+0x0/0x60
[4314013.408000] [<c0155c80>] kswapd+0x0/0x140
[4314013.408000] [<c0101225>] kernel_thread_helper+0x5/0x10
hope this helps to find out how to solve it.
greetings,
Damir
--
It is much easier to suggest solutions when you know nothing about the
problem.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 2.6.12-rc3-mm2 - kswapd0 keeps running
2005-05-01 22:06 ` Andrew Morton
@ 2005-05-02 6:01 ` Damir Perisa
2005-05-02 15:31 ` Damir Perisa
0 siblings, 1 reply; 10+ messages in thread
From: Damir Perisa @ 2005-05-02 6:01 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2710 bytes --]
Le Monday 02 May 2005 00:06, Andrew Morton a écrit :
> Damir Perisa <damir.perisa@solnet.ch> wrote:
> > i updated from rc2-mm3 to rc3-mm2 and now i observe something
> > strange: the cpu is running all the time at 100% because of the
> > kswapd0 that is running always and not becomming idle.
> Could you type sysrq-P a few times, see if we can work out where it's
> stuck?
>
> Thanks.
sure. i recompiled the kernel with magic keys and debugger activated [1],
and kswapd0 does idle normally, now. it seems to solve my issue, but i
don't know why.
for redundancy, here the Regs (alt-sysrq-p):
[4294742.093000] SysRq : Show Regs
[4294742.093000]
[4294742.093000] Pid: 0, comm: swapper
[4294742.093000] EIP: 0060:[<c03feb42>] CPU: 0
[4294742.093000] EIP is at acpi_processor_idle+0x103/0x29a
[4294742.093000] EFLAGS: 00000246 Not tainted (2.6.12-rc3-mm2-ARCH)
[4294742.093000] EAX: 00000000 EBX: c03fea3f ECX: 00000001 EDX: c072e000
[4294742.093000] ESI: efa4c074 EDI: c0772380 EBP: efa4c000 DS: 007b ES:
007b
[4294742.093000] CR0: 8005003b CR2: f1473b04 CR3: 2f37d000 CR4: 00000690
[4294742.093000] [<c03fea3f>] acpi_processor_idle+0x0/0x29a
[4294742.093000] [<c0100e35>] cpu_idle+0x45/0x80
[4294742.093000] [<c07309e7>] start_kernel+0x197/0x1e0
[4294742.093000] [<c0730390>] unknown_bootoption+0x0/0x1f0
the unknown_bootoption confuses me a little. the only bootoption i use is
"devfs=nomount" because i use udev and because people in archlinux may
use instead of udev the devfs i keep devfs in the kernel.
hope it helps you. as i said, now, with minimal debug options and magic
keys configured into the kernel, the kswapd0 idles normally. (so a
workaround to my issue is activating )
greetings,
Damir
[1] the important part of config:
#
# Kernel hacking
#
CONFIG_PRINTK_TIME=y
CONFIG_DEBUG_KERNEL=y
CONFIG_MAGIC_SYSRQ=y
CONFIG_LOG_BUF_SHIFT=15
CONFIG_DETECT_SOFTLOCKUP=y
# CONFIG_SCHEDSTATS is not set
# CONFIG_DEBUG_SLAB is not set
CONFIG_DEBUG_PREEMPT=y
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
# CONFIG_DEBUG_KOBJECT is not set
# CONFIG_DEBUG_HIGHMEM is not set
CONFIG_DEBUG_BUGVERBOSE=y
# CONFIG_DEBUG_INFO is not set
# CONFIG_PAGE_OWNER is not set
# CONFIG_DEBUG_FS is not set
# CONFIG_FRAME_POINTER is not set
CONFIG_EARLY_PRINTK=y
# CONFIG_DEBUG_STACKOVERFLOW is not set
# CONFIG_KPROBES is not set
# CONFIG_DEBUG_STACK_USAGE is not set
# CONFIG_DEBUG_PAGEALLOC is not set
# CONFIG_4KSTACKS is not set
CONFIG_X86_FIND_SMP_CONFIG=y
CONFIG_X86_MPPARSE=y
# CONFIG_KGDB is not set
--
Customer: "Eudora keeps giving me the error 'connection confused'."
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 2.6.12-rc3-mm2 - kswapd0 keeps running
2005-05-01 15:07 ` 2.6.12-rc3-mm2 - kswapd0 keeps running Damir Perisa
@ 2005-05-01 22:06 ` Andrew Morton
2005-05-02 6:01 ` Damir Perisa
2005-05-04 19:12 ` Cameron Harris
1 sibling, 1 reply; 10+ messages in thread
From: Andrew Morton @ 2005-05-01 22:06 UTC (permalink / raw)
To: Damir Perisa; +Cc: linux-kernel
Damir Perisa <damir.perisa@solnet.ch> wrote:
>
> i updated from rc2-mm3 to rc3-mm2 and now i observe something strange:
> the cpu is running all the time at 100% because of the kswapd0 that is
> running always and not becomming idle.
>
> after having the computer running for about one hour, top says this about
> kswapd0:
>
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 155 root 25 0 0 0 0 R 89.6 0.0 38:56.06 kswapd0
Could you type sysrq-P a few times, see if we can work out where it's stuck?
Thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
* 2.6.12-rc3-mm2 - kswapd0 keeps running
2005-04-30 23:43 2.6.12-rc3-mm2 Andrew Morton
@ 2005-05-01 15:07 ` Damir Perisa
2005-05-01 22:06 ` Andrew Morton
2005-05-04 19:12 ` Cameron Harris
0 siblings, 2 replies; 10+ messages in thread
From: Damir Perisa @ 2005-05-01 15:07 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 662 bytes --]
i updated from rc2-mm3 to rc3-mm2 and now i observe something strange:
the cpu is running all the time at 100% because of the kswapd0 that is
running always and not becomming idle.
after having the computer running for about one hour, top says this about
kswapd0:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
155 root 25 0 0 0 0 R 89.6 0.0 38:56.06 kswapd0
the config file you can find here:
http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/kernels/kernel26mm/config?rev=1.18&cvsroot=Extra
regards,
Damir Perisa
--
A thing worth doing is worth the trouble of asking somebody else to do it.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-05-06 18:15 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-02 4:51 2.6.12-rc3-mm2 - kswapd0 keeps running Mark McPherson
-- strict thread matches above, loose matches on Subject: below --
2005-04-30 23:43 2.6.12-rc3-mm2 Andrew Morton
2005-05-01 15:07 ` 2.6.12-rc3-mm2 - kswapd0 keeps running Damir Perisa
2005-05-01 22:06 ` Andrew Morton
2005-05-02 6:01 ` Damir Perisa
2005-05-02 15:31 ` Damir Perisa
2005-05-02 18:14 ` Andrew Morton
2005-05-02 21:30 ` Damir Perisa
2005-05-06 18:07 ` Damir Perisa
2005-05-04 19:12 ` Cameron Harris
2005-05-04 21:47 ` Damir Perisa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®