All of lore.kernel.org
 help / color / mirror / Atom feed
* 3.7-rc6 soft lockup in kswapd0
@ 2012-11-22 17:58 George Spelvin
  2012-11-22 22:06   ` Jan Kara
  0 siblings, 1 reply; 36+ messages in thread
From: George Spelvin @ 2012-11-22 17:58 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux

I'm having an interesting issue with a uniprocessor Pentium 4 machine
locking up overnight.  3.6.5 didn't do that, but 3.7-rc6 is not doing
so well.

It's kind of a funny lockup.  Some things work:

- TCP SYN handshake
- Alt-SysRq

And others don't:

- Caps lock
- Shift-PgUp
- Alt-Fn
- Screen unblanking
- Actually talking to a daemon

This is a "headless" machine that boots to a text console and has zero
console activity until the lockup.

This has happened overnight, three nights in a row.  I had to turn screen
blanking off to see anything on the screen.  Running the daily cron jobs
manually just now didn't trigger it, so I haven't found a proximate cause.

The *first* error has scrolled off the screen, but what I can see
an infinite stream (at about 20s intervals) of:

BUG: soft lockup - CPU#0 stuck for 22s! [kswapd0:317]
Pid: 317, comm: kswapd0 Not tainted 3.7.0-RC6 #224 HP Pavilion 04 P6319A-ABA 750N/P4B266LA
EIP: 0060:[<c10571f7>] EFLAGS: 00000202 CPU: 0
EIP is at __zone_watermark_ok+0x5f/7e, 0x67/7e, 0x6e/0x7e, or 0x74/7e
(Didn't type registers & stack)
Call Trace:
 [<c105774f>] ? zone_watermark_ok_safe+0x34/0x3a
 [<c105ec7e>] ? kswapd+0x2fa/0x6f6
 [<c105e984>] ? try_to_free_pages+0x4b8/0x4b8
 [<c103106b>] ? kthread+0x67/0x6c
 [<c12559b7>] ? ret_from_kernel_thread+0x1b/0x28
 [<c1031004>] ? -_kthread_parkme+0x4c.0x4c
Code: (didn't type in first line)
                                5f                        67                     6e                  74                             7e
 c9 39 d6 7f 14 eb 1c 6b c1 2c <8b> 44 05 60 d3 e0 29 c6 <d1> fb 39 de 7e 09 41 <39> f9 7c ea b0 01 <eb> 02 31 c0 5a 5b 5e 5f 5d c3 01 14 85 7c 16


The lack of scrollback limits me to 49 lines of SysRq output, and usually the most interesting
part disappears off the screen.  Two things I can see:

- SysRq-W shows no blocked tasks
- SysRq-M shows zero swap in use, and apparently adequate free memory
	DMA: <various segments> = 9048kB
	Normal: <various> = 116312kB
	HighMem: <various> = 41660kB
	416557 total pagecache pages
	0 pages in swap cache
	Swap cache stats: add 0, delete 0, find 0/0
	Free swap  = 4883724kB
	Total swap = 4883724kB
	524260 pages RAM
	296958 pages HighMem
	5221 pages reserved
	406417 pages shared
	351419 pages non-shared

Does anyone have any debugging suggestions?  Waiting overnight to
make a good/bad decision makes bisecting pretty slow...

^ permalink raw reply	[flat|nested] 36+ messages in thread
* Re: 3.7-rc6 soft lockup in kswapd0
@ 2012-11-23 10:13 Tomas Racek
  0 siblings, 0 replies; 36+ messages in thread
From: Tomas Racek @ 2012-11-23 10:13 UTC (permalink / raw)
  To: Mel Gorman
  Cc: linux-kernel, linux-mm, Jan Kara, Dave Hansen, George Spelvin,
	riel

Hi Mel,

I've encoutered the same problem as George yesterday running xfstests in qemu with latest git sources:
 
 BUG: soft lockup - CPU#0 stuck for 23s! [kswapd0:31]
 irq event stamp: 9740956
 hardirqs last  enabled at (9740955): [<ffffffff8166c273>] restore_args+0x0/0x30
 hardirqs last disabled at (9740956): [<ffffffff8166d9ad>] apic_timer_interrupt+0x6d/0x80
 softirqs last  enabled at (9740954): [<ffffffff8105c887>] __do_softirq+0x167/0x3d0
 softirqs last disabled at (9740949): [<ffffffff8166e0fc>] call_softirq+0x1c/0x30
 CPU 0 
 Pid: 31, comm: kswapd0 Not tainted 3.7.0-rc6+ #232 Bochs Bochs
 Process kswapd0 (pid: 31, threadinfo ffff88003d2cc000, task ffff88003d2d8000)
 Call Trace:
  [<ffffffff8113bb81>] zone_watermark_ok_safe+0x71/0x100
  [<ffffffff8113baff>] ? zone_watermark_ok+0x1f/0x30
  [<ffffffff8114bd6e>] kswapd+0x2fe/0xd70
  [<ffffffff8114ba70>] ? try_to_free_pages+0x830/0x830
  [<ffffffff8107f9bd>] kthread+0xed/0x100
  [<ffffffff8107f8d0>] ? insert_kthread_work+0x80/0x80
  [<ffffffff8166cdac>] ret_from_fork+0x7c/0xb0
  [<ffffffff8107f8d0>] ? insert_kthread_work+0x80/0x80
 Code: 4c 2b 8f 00 01 00 00 48 d1 fa 49 39 d1 7e 30 31 c9 eb 20 0f 1f 80 00 00 00 00 48 8b 87 58 01 00 00 48 d1 fa 48 83 c7 58 48 d3 e0 <49> 29 c1 49 39 d1 7e 0f 83 c1 01 39 f1 75 e0 b8 01 00 00 00 5d 

Git bisect pointed me to:

c654345924f mm: remove __GFP_NO_KSWAPD

[adding Rik to Cc:]

Prior to this commit I wasn't able to reproduce it.

(BTW: I hope I managed to send this mail with proper Reply-To:, strangely your mail and those from Honza were not delivered to my mailbox.)

Tom

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2012-12-03 18:28 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-22 17:58 3.7-rc6 soft lockup in kswapd0 George Spelvin
2012-11-22 22:06 ` Jan Kara
2012-11-22 22:06   ` Jan Kara
2012-11-22 22:36   ` Jan Kara
2012-11-22 22:36     ` Jan Kara
2012-11-23  8:51   ` Mel Gorman
2012-11-23  8:51     ` Mel Gorman
2012-11-23 10:02     ` George Spelvin
2012-11-23 10:02       ` George Spelvin
2012-11-24  7:52       ` George Spelvin
2012-11-24  7:52         ` George Spelvin
2012-11-26  3:58     ` George Spelvin
2012-11-26  3:58       ` George Spelvin
2012-11-26 10:01       ` Mel Gorman
2012-11-26 10:01         ` Mel Gorman
2012-11-26 13:05         ` George Spelvin
2012-11-26 13:05           ` George Spelvin
2012-11-26 18:32           ` Johannes Weiner
2012-11-26 18:32             ` Johannes Weiner
2012-11-26 18:53             ` George Spelvin
2012-11-26 18:53               ` George Spelvin
2012-11-26 19:09               ` Mel Gorman
2012-11-26 19:09                 ` Mel Gorman
2012-11-27 21:25                 ` George Spelvin
2012-11-27 21:25                   ` George Spelvin
2012-11-28 11:39                   ` Mel Gorman
2012-11-28 11:39                     ` Mel Gorman
2012-11-29 14:54                     ` George Spelvin
2012-11-29 14:54                       ` George Spelvin
2012-11-29 15:20                       ` Mel Gorman
2012-11-29 15:20                         ` Mel Gorman
2012-11-29 17:08                       ` Johannes Weiner
2012-11-29 17:08                         ` Johannes Weiner
2012-12-03 18:28                       ` George Spelvin
2012-12-03 18:28                         ` George Spelvin
  -- strict thread matches above, loose matches on Subject: below --
2012-11-23 10:13 Tomas Racek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.