From owner-freebsd-stable@FreeBSD.ORG Fri Feb 15 00:07:23 2008 Return-Path: Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C8B016A418 for ; Fri, 15 Feb 2008 00:07:23 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from flat.berklix.org (flat.berklix.org [83.236.223.115]) by mx1.freebsd.org (Postfix) with ESMTP id D40EB13C447 for ; Fri, 15 Feb 2008 00:07:22 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from js.berklix.net (p549A751E.dip.t-dialin.net [84.154.117.30]) (authenticated bits=0) by flat.berklix.org (8.13.8/8.13.8) with ESMTP id m1F07Kck033962; Fri, 15 Feb 2008 01:07:20 +0100 (CET) (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by js.berklix.net (8.13.8/8.13.8) with ESMTP id m1F09SFa082841; Fri, 15 Feb 2008 01:09:28 +0100 (CET) (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.13.8/8.13.8) with ESMTP id m1F09IPr045943; Fri, 15 Feb 2008 01:09:23 +0100 (CET) (envelope-from jhs@fire.js.berklix.net) Message-Id: <200802150009.m1F09IPr045943@fire.js.berklix.net> To: freebsd-stable@FreeBSD.ORG In-reply-to: <200802061517.m16FHslq067364@lurza.secnetix.de> References: <200802061517.m16FHslq067364@lurza.secnetix.de> Comments: In-reply-to Oliver Fromme message dated "Wed, 06 Feb 2008 16:17:54 +0100." Date: Fri, 15 Feb 2008 01:09:18 +0100 From: "Julian H. Stacey" Cc: Oliver Fromme Subject: Re: dmesg : no output on 1 of 2 7-stable boxes X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Feb 2008 00:07:23 -0000 Oliver Fromme wrote: > Hello Julian, > > I'm sorry this is a late reply, but I noticed your post > on the freebsd-stable list just now. > > One of 2 laptops running 7-stable shows nothing with dmesg, (other is OK). > Did you try "dmesg -a"? Thanks Oliver, Yes, but after posting I think, (Been a while can't remember), Symptom stopped after "cd /usr/local/lib; mv wine wine.MV" (a bad port !). It was filling console buf with junk. > The dmesg buffer is a circular buffer containing both > kernel output and console output. However, "dmesg" > displays only the kernel output. If there was lots of > console output, it filled all of the dmesg buffer, > so "dmesg" displays nothing (all of the kernel output > was overwritten by console output). "dmesg -a" will > display everything, i.e. kernel + console output. Some of that description could usefuly be added to `man dmesg` ? Might some commiter wnat to hack a few words in ? Or do we neeed a formal send-pr (that a commiter would rephrase likely anyway, so best skip the send-pr ? ). > If "dmesg -a" doesn't print anything either, I'm afraid > I have no idea what might be wrong. Well, you could try > "sysctl -b kern.msgbuf" which will retrieve the raw > contents of the dmesg buffer. > > > - I tried loader.conf kern.msgbuf=64000 > > I think it must be a multiple of the pages size, i,e, > 4K = 4096 on FreeBSD/i386. I usually set it to 65536 > or 131072. Ah! Certainly plausible re. 2 base N. On 7.0PRERELEASE I see kern.msgbuf= sundry text diagnostsics so seems inappropriate to set that var to a number. I see kern.consmsgbuf_size: 8192 so tried in /boot/loader.conf kern.consmsgbuf_size=4096 but even reducing size failed to vary size (enlarging had earlier failed) Some clue in sys/kern/tty_cons.c:666 I See kern.msgbuf_clear: Clear kernel message buffer kern.msgbuf: Contents of kernel message buffer Puzzled on syntax to set size in loader.conf ? -- Julian Stacey. BSD Unix Linux Net Consultant, Munich. http://berklix.com