From owner-freebsd-current@FreeBSD.ORG Fri Dec 28 20:39:33 2007 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 B6BCA16A4A5 for ; Fri, 28 Dec 2007 20:39:33 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id AB6A813C4E9; Fri, 28 Dec 2007 20:39:32 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <47755F03.3030909@FreeBSD.org> Date: Fri, 28 Dec 2007 21:39:31 +0100 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Michael Butler References: <20071228120152.GB1544@schweikhardt.net> <4774F09A.3050405@FreeBSD.org> <47754D37.4050702@protected-networks.net> In-Reply-To: <47754D37.4050702@protected-networks.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD current , Jens Schweikhardt Subject: Re: Garbled shutdown message 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, 28 Dec 2007 20:39:33 -0000 Michael Butler wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Kris Kennaway wrote: >> Jens Schweikhardt wrote: >>> If you look at this closely you can find "Syncing (max 60 seconds) for >>> system process" if you read about every other character. It's always the >>> third of the three "Waiting" lines. Anyone else seeing this? >> You have an SMP system and do not have the PRINTF_BUFR option or >> whatever it is. Without it multiple CPUs have no synchronization >> between printfs and will interleave. > > So the recommended value for PRINTF_BUFR_SIZE is ... ? NOTES has 128 I think. > In my (very brief) browse through kern/subr_prf.c, I didn't see any > overflow protection on the stack-allocated buffer ... which makes me > rather nervous. > > Interleaved text is *way* better than clobbered kernel stack .. So either fix it if there is a problem or don't use it if you are scared :) Kris