Re: Shutdown fails when there is an active kthread pinned to CPU core 0

From: John Baldwin <jhb_at_freebsd.org>
Date: Tue, 04 Aug 2015 22:13:21 -0700
On Wednesday, July 29, 2015 10:20:26 PM Michio Honda wrote:
> Hi,
> 
> When I create a kthread (kthread_add()) and pin it to CPU 0 (sched_bind() in the beginning of its worker function), 
> shutdown (from the command line) is stuck on a message of "Waiting (max 60 seconds) for system process `vnlru' to stop..”. If I pin it to CPU 1 there is no problem.
> I’m using FreeBSD CURRENT whose last commit is bf0aa3510005188e55285fbed43d93a34448e377 (on July 3rd).
> 
> 
> Do you have any idea to successfully shutdown the system while leaving a kthread pinned on CPU 0?
> (I have this problem in the process of implementing a polling kthread for VALE.)

Can you break into ddb and see what your pinned thread is doing when the
shutdown hangs?  A general 'ps' from DDB would be good as well.

-- 
John Baldwin
Received on Wed Aug 05 2015 - 03:27:38 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:59 UTC