From owner-freebsd-current@freebsd.org Wed Aug 5 05:27:38 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DDB909B41D3 for ; Wed, 5 Aug 2015 05:27:38 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BB51FC22 for ; Wed, 5 Aug 2015 05:27:38 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (75-48-78-19.lightspeed.cncrca.sbcglobal.net [75.48.78.19]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 8C009B953; Wed, 5 Aug 2015 01:27:36 -0400 (EDT) From: John Baldwin To: freebsd-current@freebsd.org Cc: Michio Honda Subject: Re: Shutdown fails when there is an active kthread pinned to CPU core 0 Date: Tue, 04 Aug 2015 22:13:21 -0700 Message-ID: <13841209.1U0VLn5GDu@ralph.baldwin.cx> User-Agent: KMail/4.14.3 (FreeBSD/10.2-PRERELEASE; KDE/4.14.3; amd64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Wed, 05 Aug 2015 01:27:36 -0400 (EDT) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Aug 2015 05:27:39 -0000 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