From owner-freebsd-current@FreeBSD.ORG Sat Mar 21 19:04:48 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16F671065673 for ; Sat, 21 Mar 2009 19:04:48 +0000 (UTC) (envelope-from gary.jennejohn@freenet.de) Received: from mout0.freenet.de (mout0.freenet.de [IPv6:2001:748:100:40::2:2]) by mx1.freebsd.org (Postfix) with ESMTP id A2E418FC14 for ; Sat, 21 Mar 2009 19:04:47 +0000 (UTC) (envelope-from gary.jennejohn@freenet.de) Received: from [195.4.92.22] (helo=12.mx.freenet.de) by mout0.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #79) id 1Ll6Uu-00079Z-6x; Sat, 21 Mar 2009 20:04:44 +0100 Received: from t8505.t.pppool.de ([89.55.133.5]:55508 helo=ernst.jennejohn.org) by 12.mx.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #76) id 1Ll6Ut-0008Bv-Ue; Sat, 21 Mar 2009 20:04:44 +0100 Date: Sat, 21 Mar 2009 20:04:41 +0100 From: Gary Jennejohn To: Chuck Robey Message-ID: <20090321200441.573995af@ernst.jennejohn.org> In-Reply-To: <49C5378B.40307@telenix.org> References: <20090321004908.GA9482@narn.knownspace> <20090321102235.1b69134f@ernst.jennejohn.org> <49C5378B.40307@telenix.org> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.14.7; amd64-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Alexander Best , freebsd-current@freebsd.org, Justin Hibbits Subject: Re: weird console output X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gary.jennejohn@freenet.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Mar 2009 19:04:48 -0000 On Sat, 21 Mar 2009 14:52:59 -0400 Chuck Robey wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Gary Jennejohn wrote: > > On Fri, 20 Mar 2009 20:49:08 -0400 > > Justin Hibbits wrote: > > > >> On Sat, Mar 21, 2009 at 01:02:25AM +0100, Alexander Best wrote: > >>> very often when i boot or shutdown my pc i see weird text being output to the > >>> console. to me it seems like 2 messages are being mixed into 1 message. here's > >>> an example: > >>> > >>> "WcAdR0N IaNtG : aWtIaT1N EbSuSs o0p ttiaorng eetn a1b lleudn, 0e > >>> xcpde0c:t r >>> H1W0ANR NJILN1G: DIAG2N>O SRTeImCo voapbtlieo nC De-nRaObMl eSdC,S Ie-x0p > >>> edcetv irceed uc > >>> ecdd 0p:e r3f3o.r0m0a0nMcB/es. > >>> transfers" > >>> > >>> i'm running FreeBSD moshnroll 8.0-CURRENT FreeBSD 8.0-CURRENT #20 r190162M: > >>> Fri Mar 20 19:10:47 UTC 2009 root@moshnroll:/usr/obj/usr/src/sys/ARUNDEL > >>> i386, but i've also had this issue under CURRENT. maybe this issue is smp > >>> related? > >>> > >>> cheers. > >>> alex > >> You are correct, it is smp related. Those are two messages interlaced. I see > >> them often when shutting down my SMP system. > >> > > > > This quesion is asked and answered again and again. > > > > Set "options PRINTF_BUFR_SIZE=128" in your kernel config. > > Gary, do you know why setting it to 128 fixes things? Is the default size 0? I > could see that causing things, but it's hard to believe. I've been watching a > long time to see a fix for this. > Looking at /sys/kern/subr_prf.c, there's apparently no buffering at all when PRINTF_BUFR_SIZE isn't defined. The value 128 has proved itself to be adequate based on experience since most kernel output is smaller than that. Its' what I and others use. --- Gary Jennejohn