Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Aug 2015 22:13:21 -0700
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-current@freebsd.org
Cc:        Michio Honda <micchie@sfc.wide.ad.jp>
Subject:   Re: Shutdown fails when there is an active kthread pinned to CPU core 0
Message-ID:  <13841209.1U0VLn5GDu@ralph.baldwin.cx>
In-Reply-To: <BB7DBA71-58A8-423D-8863-E7FB5168EBB1@sfc.wide.ad.jp>
References:  <BB7DBA71-58A8-423D-8863-E7FB5168EBB1@sfc.wide.ad.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, July 29, 2015 10:20:26 PM Michio Honda wrote:
> Hi,
>=20
> When I create a kthread (kthread_add()) and pin it to CPU 0 (sched_bi=
nd() in the beginning of its worker function),=20
> shutdown (from the command line) is stuck on a message of "Waiting (m=
ax 60 seconds) for system process `vnlru' to stop..=E2=80=9D. If I pin =
it to CPU 1 there is no problem.
> I=E2=80=99m using FreeBSD CURRENT whose last commit is bf0aa351000518=
8e55285fbed43d93a34448e377 (on July 3rd).
>=20
>=20
> Do you have any idea to successfully shutdown the system while leavin=
g 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 th=
e
shutdown hangs?  A general 'ps' from DDB would be good as well.

--=20
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?13841209.1U0VLn5GDu>