From owner-freebsd-current@freebsd.org Wed Jul 29 20:20:42 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 0C7D99ADEDA for ; Wed, 29 Jul 2015 20:20:42 +0000 (UTC) (envelope-from micchie@sfc.wide.ad.jp) Received: from mail.sfc.wide.ad.jp (shonan.sfc.wide.ad.jp [IPv6:2001:200:0:8803::53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C9AE6C3E for ; Wed, 29 Jul 2015 20:20:41 +0000 (UTC) (envelope-from micchie@sfc.wide.ad.jp) Received: from [10.64.74.159] (x5ce3979f.dyn.telefonica.de [92.227.151.159]) by mail.sfc.wide.ad.jp (Postfix) with ESMTPSA id 89033278185 for ; Thu, 30 Jul 2015 05:20:37 +0900 (JST) User-Agent: Microsoft-MacOutlook/0.0.0.150618 Date: Wed, 29 Jul 2015 22:20:26 +0200 Subject: Shutdown fails when there is an active kthread pinned to CPU core 0 From: Michio Honda To: "freebsd-current@freebsd.org" Message-ID: Thread-Topic: Shutdown fails when there is an active kthread pinned to CPU core 0 Mime-version: 1.0 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: quoted-printable 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, 29 Jul 2015 20:20:42 -0000 Hi, When I create a kthread (kthread_add()) and pin it to CPU 0 (sched_bind() i= n the beginning of its worker function),=20 shutdown (from the command line) is stuck on a message of "Waiting (max 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 bf0aa3510005188e55285fbed4= 3d93a34448e377 (on July 3rd). Do you have any idea to successfully shutdown the system while leaving a kt= hread pinned on CPU 0? (I have this problem in the process of implementing a polling kthread for V= ALE.) Cheers, - Michio