From owner-freebsd-questions@FreeBSD.ORG Wed Feb 20 19:07:45 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6C1016A404 for ; Wed, 20 Feb 2008 19:07:45 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mail.bsdforen.de (bsdforen.de [212.204.60.79]) by mx1.freebsd.org (Postfix) with ESMTP id 7774413C461 for ; Wed, 20 Feb 2008 19:07:45 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mobileKamikaze.norad (nat-wh-1.rz.uni-karlsruhe.de [129.13.72.169]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bsdforen.de (Postfix) with ESMTP id 36E2F40548C; Wed, 20 Feb 2008 20:07:42 +0100 (CET) Message-ID: <47BC7A3C.9070002@bsdforen.de> Date: Wed, 20 Feb 2008 20:06:36 +0100 From: Dominic Fandrey User-Agent: Thunderbird 2.0.0.9 (X11/20080205) MIME-Version: 1.0 To: Robert Huff References: <200802161142.53044.FreeBSD@insightbb.com> <20080216215521.GB12555@osiris.chen.org.nz> <18359.26373.750798.755610@jerusalem.litteratus.org> In-Reply-To: <18359.26373.750798.755610@jerusalem.litteratus.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org, Steven Friedrich , Jonathan Chen Subject: Re: Shutdown anomaly X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Feb 2008 19:07:45 -0000 Robert Huff wrote: > Jonathan Chen writes: > >> > I am seeing the following messages, which appear to indicate a memory >> > overwrite: >> > Waiting (max 60 seconds) for system processs 'vnlru' to stop...done >> > Waiting (max 60 seconds) for system processs 'bufdaemon' to stop...done >> > a >> > iStyinncgi n(gm adxi s6k0s ,s evcnoonddess) rfeomra isnyisntge.m. .pr0o >> > cess 'syncer' to stop...0 0 done >> > All buffers synced. >> > Uptime: 8m9s >> >> It's an interleaved buffer messages on SMP systems. The problem is >> known, but I haven't heard of a proposed solution yet. > > There is no fix. > The workaround is to increase the size of the kernel printf() > buffer. I don't remember how you do that ... but this is not a new > issue - chech the archives for details. I would like to propose a fix. Care to test it? Just apply this patch and add the following line to your /etc/rc.conf file. shutdown_clean_enable="YES" --- rc.shutdown 2008-02-20 19:28:45.000000000 +0100 +++ /etc/rc.shutdown 2008-02-20 19:59:03.000000000 +0100 @@ -43,10 +43,21 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin export HOME PATH +# The next three lines belong into /etc/defaults/rc.conf. +shutdown_clean_enable="NO" # Set to YES to stop all but the first CPU + # core to prevent mixed buffer output + # upon shutdown. + . /etc/rc.subr load_rc_config 'XXX' +# Fall back to single core mode to guarantee clean output. +if checkyesno shutdown_clean_enable; then + bitmask="$(jot -s '' -b1 $(expr $(sysctl -n hw.ncpu) - 1))0" + sysctl machdep.hlt_cpus=$bitmask +fi + # reverse_list list # print the list in reverse order #