From owner-freebsd-current@FreeBSD.ORG Mon Jan 12 10:53:40 2004 Return-Path: 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 173A416A4CE; Mon, 12 Jan 2004 10:53:40 -0800 (PST) Received: from Vitsch.net (b74143.upc-b.chello.nl [212.83.74.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id E104943D2D; Mon, 12 Jan 2004 10:53:37 -0800 (PST) (envelope-from Danovitsch@Vitsch.net) Received: from FreeBSD.Danovitsch.LAN (b83007.upc-b.chello.nl [212.83.83.7]) by Vitsch.net (8.12.3p2/8.11.3) with ESMTP id i0CIrGXe074122; Mon, 12 Jan 2004 19:53:16 +0100 (CET) (envelope-from Danovitsch@Vitsch.net) Content-Type: text/plain; charset="iso-8859-1" From: "Daan Vreeken [PA4DAN]" To: John Baldwin Date: Mon, 12 Jan 2004 19:53:44 +0100 User-Agent: KMail/1.4.3 References: <200401112142.53073.Danovitsch@Vitsch.net> <200401121108.47481.jhb@FreeBSD.org> In-Reply-To: <200401121108.47481.jhb@FreeBSD.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200401121953.44394.Danovitsch@Vitsch.net> cc: FreeBSD-current@FreeBSD.org Subject: Re: Kernel threads and printf locking question X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 12 Jan 2004 18:53:40 -0000 On Monday 12 January 2004 17:08, you wrote: > On Sunday 11 January 2004 03:42 pm, Daan Vreeken [PA4DAN] wrote: > > Hi, > > > > I am writing a kernel module in which I have created a kernel thread = with > > kthread_create. For debugging I have added a couple of printf's in th= e > > thread routine. Running the module on a single-proc system works fine= , > > but when running it on one of my SMP machines the console freezes aft= er a > > couple of seconds. > > [...snip...] > printf really probably does require Giant right now, it just happens to= be > used very often after bootup when SMP is running. Ok, thanks for clarifying. grtz, Daan