Re: frequent lockups in 3.18rc4

From: Linus Torvalds
Date: Tue Nov 18 2014 - 23:41:48 EST


On Tue, Nov 18, 2014 at 6:19 PM, Dave Jones <davej@xxxxxxxxxx> wrote:
>
> NMI watchdog: BUG: soft lockup - CPU#2 stuck for 21s! [trinity-c42:31480]
> CPU: 2 PID: 31480 Comm: trinity-c42 Not tainted 3.18.0-rc5+ #91 [loadavg: 174.61 150.35 148.64 9/411 32140]
> RIP: 0010:[<ffffffff8a1798b4>] [<ffffffff8a1798b4>] context_tracking_user_enter+0xa4/0x190
> Call Trace:
> [<ffffffff8a012fc5>] syscall_trace_leave+0xa5/0x160
> [<ffffffff8a7d8624>] int_check_syscall_exit_work+0x34/0x3d

Hmm, if we are getting soft-lockups here, maybe it suggest too much exit-work.

Some TIF_NOHZ loop, perhaps? You have nohz on, don't you?

That makes me wonder: does the problem go away if you disable NOHZ?

> CPU: 0 PID: 27716 Comm: kworker/0:1 Not tainted 3.18.0-rc5+ #91 [loadavg: 174.61 150.35 148.64 9/411 32140]
> Workqueue: events nohz_kick_work_fn
> RIP: 0010:[<ffffffff8a0ffb52>] [<ffffffff8a0ffb52>] smp_call_function_many+0x1b2/0x320
> Call Trace:
> [<ffffffff8a0fa3f5>] tick_nohz_full_kick_all+0x35/0x70
> [<ffffffff8a0ec8fe>] nohz_kick_work_fn+0xe/0x10
> [<ffffffff8a08e61d>] process_one_work+0x1fd/0x590
> [<ffffffff8a08eacb>] worker_thread+0x11b/0x490
> [<ffffffff8a0942e9>] kthread+0xf9/0x110
> [<ffffffff8a7d82ac>] ret_from_fork+0x7c/0xb0

Yeah, there's certainly some NOHZ work going on on CPU0 too.


> CPU: 1 PID: 0 Comm: swapper/1 Not tainted 3.18.0-rc5+ #91 [loadavg: 174.61 150.35 148.64 10/411 32140]
> RIP: 0010:[<ffffffff8a3e14a5>] [<ffffffff8a3e14a5>] intel_idle+0xd5/0x180
> Call Trace:
> [<ffffffff8a666075>] cpuidle_enter_state+0x55/0x1c0
> [<ffffffff8a666297>] cpuidle_enter+0x17/0x20
> [<ffffffff8a0bb323>] cpu_startup_entry+0x433/0x4e0
> [<ffffffff8a02b763>] start_secondary+0x1a3/0x220

Nothing.

> CPU: 3 PID: 0 Comm: swapper/3 Not tainted 3.18.0-rc5+ #91 [loadavg: 174.61 150.35 148.64 10/411 32140]
> RIP: 0010:[<ffffffff8a3e14a5>] [<ffffffff8a3e14a5>] intel_idle+0xd5/0x180
> [<ffffffff8a666075>] cpuidle_enter_state+0x55/0x1c0
> [<ffffffff8a666297>] cpuidle_enter+0x17/0x20
> [<ffffffff8a0bb323>] cpu_startup_entry+0x433/0x4e0
> [<ffffffff8a02b763>] start_secondary+0x1a3/0x220

Nothing.

Hmm. NOHZ?

Linus
--
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/