From owner-freebsd-current@FreeBSD.ORG Fri Jan 20 03:01:07 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55C4816A41F for ; Fri, 20 Jan 2006 03:01:07 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1008043D45 for ; Fri, 20 Jan 2006 03:01:07 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id DD1791A3C1B; Thu, 19 Jan 2006 19:01:06 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 1284854A44; Thu, 19 Jan 2006 22:01:06 -0500 (EST) Date: Thu, 19 Jan 2006 22:01:05 -0500 From: Kris Kennaway To: Julian Elischer Message-ID: <20060120030105.GA5286@xor.obsecurity.org> References: <43D05151.5070409@elischer.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline In-Reply-To: <43D05151.5070409@elischer.org> User-Agent: Mutt/1.4.2.1i Cc: current@freebsd.org Subject: Re: kernel thread as real threads.. 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: Fri, 20 Jan 2006 03:01:07 -0000 --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 19, 2006 at 06:56:17PM -0800, Julian Elischer wrote: >=20 > some progrsss.. > as the first few lines show, it's not quite perfect yet but it's most of= =20 > the way there.. > (Like proc 1 isn't init) >=20 > SMP: AP CPU #1 Launched! > SMP: AP CPU #2 Launched! > SMP: AP CPU #3 Launched! > panic: blockable sleep lock (sleep mutex) buffer daemon lock @=20 > /usr/src/sys/kern/vfs_bio.c:2048 > cpuid =3D 2 > KDB: enter: panic > [thread pid 0 tid 100051 ] > Stopped at kdb_enter+0x2b: nop =20 > db> ps > pid proc uid ppid pgrp flag stat wmesg wchan cmd > 1 c7cb1000 0 0 0 0000200 [SLPQ g_waitidle=20 > 0xc07239ec][SLP] swapper > 0 c0723c40 0 0 0 0000288 (threaded) swapper > thread 0xc7d6a340 ksegrp 0xc7cb0960 [RUNQ] schedcpu > thread 0xc7d6a4e0 ksegrp 0xc7cb09c0 [RUNQ] nfsiod 3 What about that threads don't show CPU usage or accumulate CPU time? This is annoying enough for user threads but would be a pretty serious usability limitation if it happened for kernel threads too. Kris --Dxnq1zWXvFF0Q93v Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD0FJxWry0BWjoQKURAn5dAKCYShVsA/kdeso3tlmt8ueybzyAkQCg9VIk 1Wi/j79j2fOsRUE538/wPwY= =v9eF -----END PGP SIGNATURE----- --Dxnq1zWXvFF0Q93v--