Re: dmesg : no output on 1 of 2 7-stable boxes

2008-02-20 Thread Oliver Fromme
Julian H. Stacey wrote:
 > Oliver Fromme wrote:
 > > 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` ?

I agree.

 > 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 you have the time, please submit a PR (docs category).
I'll take care of it.

You're a native English speaker.  I am not.  So chances
are that I won't rephrase it, except for technical
reasons.  And even if I did rephrase it, it's still a
good thing to have a PR, so the issue doesn't get lost
and forgotten.

 > > >- I tried loader.confkern.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.
 > [...]
 > Puzzled on syntax to set size in loader.conf ?

Unfortunately it's a kernel constant, not a tunable.
The only way to change it is via "options MSGBUF_SIZE=..."
in your kernel config file, and rebuild the kernel.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"Whatever happened to the days when hacking started
at the cerebral cortex, and not at the keyboard?"
  --  Sid on userfriendly.org by Illiad, 2007-06-20
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: dmesg : no output on 1 of 2 7-stable boxes

2008-02-14 Thread Julian H. Stacey
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.confkern.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
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: dmesg : no output on 1 of 2 7-stable boxes

2008-02-06 Thread Oliver Fromme
Hello Julian,

I'm sorry this is a late reply, but I noticed your post
on the freebsd-stable list just now.

Julian H. Stacey wrote:
 > One of 2 laptops running 7-stable shows nothing with dmesg, (other is OK).

Did you try "dmesg -a"?

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.

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.confkern.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.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"Python tricks" is a tough one, cuz the language is so clean. E.g.,
C makes an art of confusing pointers with arrays and strings, which
leads to lotsa neat pointer tricks; APL mistakes everything for an
array, leading to neat one-liners; and Perl confuses everything
period, making each line a joyous adventure .
-- Tim Peters
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


dmesg : no output on 1 of 2 7-stable boxes

2008-01-26 Thread Julian H. Stacey
One of 2 laptops running 7-stable shows nothing with dmesg, (other is OK).
Needs fresh eyes please, as I've already checked all this:
   - Text is in /var/log/messages, readable to normal users.
   - df shows enough disc
   - I patched out all of loader.conf, except essential hw.ata.ata_dma="0"
(that was to remove any *verbose* that might be overflowing
   - I tried loader.confkern.msgbuf=64000   
   - Tried a Generic kernel
   - I've recompiled & installed dmesg & kernels
   - Haven't done a make world (slow box), but repeated make all ; make install
 with each day's new source.
   - Both hosts running same /usr/src from yesterday:
   /pub/FreeBSD/development/CTM/src-7/src-7.0102.gz
   Jan 25 15:25 TZ=GMT+01:00
   - cd /etc;grep dmesg *
rc.conf:dmesg_enable="YES"  # Save dmesg(8) to /var/run/dmesg.boot
Binary file rc.d matches# Just the standard /etc/rc.d/dmesg
rc.local:/sbin/dmesg > /tmp/dmesg.rc.local
# -rw-r--r--  1 root  wheel  0 Jan 25 14:01 /tmp/dmesg.rc.local
   - mergemaster -sicvP 
Any ideas please ?
Julian
--
Julian Stacey.  Munich Consultant: BSD Linux Unix.  http://berklix.com
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"