From owner-freebsd-current@FreeBSD.ORG Thu Aug 13 08:23:25 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 644011065670; Thu, 13 Aug 2009 08:23:25 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id D5F728FC48; Thu, 13 Aug 2009 08:23:24 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id n7D8NJoe013167 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 13 Aug 2009 11:23:19 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id n7D8NIdX055385; Thu, 13 Aug 2009 11:23:18 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n7D8NIOa055384; Thu, 13 Aug 2009 11:23:18 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 13 Aug 2009 11:23:18 +0300 From: Kostik Belousov To: Andrew Thompson Message-ID: <20090813082318.GP1884@deviant.kiev.zoral.com.ua> References: <20090813073002.GA66860@citylink.fud.org.nz> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rdO4WtzmRRaVZcLD" Content-Disposition: inline In-Reply-To: <20090813073002.GA66860@citylink.fud.org.nz> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: current@freebsd.org, Hans Petter Selasky Subject: Re: usb kthreads X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 13 Aug 2009 08:23:25 -0000 --rdO4WtzmRRaVZcLD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 13, 2009 at 12:30:02AM -0700, Andrew Thompson wrote: > Hi, >=20 >=20 > Here is an aesthetic patch to change the usb kernel processes to threads, > this hides them from the usual 'ps' output. Please test and review. >=20 > 1290 ?? DL 0:00.00 [usbus0] > [lots and lots more...] > 1309 ?? DL 0:00.00 [usbus4] >=20 > After the patch they can be seen as kernel threads. >=20 > PID TID COMM TDNAME CPU PRI STATE WCHAN = =20 > 0 100000 kernel swapper 0 68 sleep sched = =20 > 0 100009 kernel firmware taskq 0 92 sleep - = =20 > 0 100020 kernel kqueue taskq 0 92 sleep - = =20 > 0 100021 kernel acpi_task_0 0 92 sleep - = =20 > 0 100022 kernel acpi_task_1 0 92 sleep - = =20 > 0 100023 kernel acpi_task_2 0 92 sleep - = =20 > 0 100027 kernel thread taskq 0 92 sleep - = =20 > 0 100031 kernel bwi0 taskq 0 16 sleep - = =20 > 0 100032 kernel bwi0 taskq 0 16 sleep - = =20 > 0 100106 kernel usbus0 0 20 sleep wmsg = =20 > 0 100107 kernel usbus0 0 16 sleep wmsg = =20 > 0 100108 kernel usbus0 0 20 sleep wmsg = =20 > 0 100109 kernel usbus0 0 20 sleep wmsg = =20 > [ ... ] > 0 100127 kernel usbus4 0 20 sleep wmsg = =20 >=20 Can you use this opportunity to change "wmsg" wait channel name to something having "usb" in the name ? --rdO4WtzmRRaVZcLD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkqDzXYACgkQC3+MBN1Mb4gzhgCgoz+SMUDSIWnyjeFUSmlTBMyW yQIAoMT52vtYFwcYHe0SCvPwhvn7lr1R =7+yf -----END PGP SIGNATURE----- --rdO4WtzmRRaVZcLD--