Subject: Re: Debugging UVM
To: Julio M. Merino Vidal <jmmv84@gmail.com>
From: blue horn <neelgusano@yahoo.com>
List: tech-kern
Date: 06/19/2006 12:20:42
I tried the following and none of it is working.

- Tried to open a second virtual console such that I
will be able to login. But the machine seems to sucked
into all those scrolling "green messages". I guess
that the machine has not been able to invoke
/sbin/init.

- I commented out /dev/console from
syslog.conf->reboot. No effect which is expected if
the kernel services have not been initialized.

Now here is my 2 cents questions (repeat):
    What is a sane way of debugging UVM? or how does
the NetBSD developers normally debug core kernel
services such as UVM?

Thanks,
BH 

--- "Julio M. Merino Vidal" <jmmv84@gmail.com> wrote:

> On 6/19/06, blue horn <neelgusano@yahoo.com> wrote:
> > Hi
> >       I would like to print some messages to
> > /var/log/message file when certain events are
> being
> > fired inside the uvm. So, I created a vanilla
> kernel
> > with  "options   UVMHIST".
> >
> > If I enable "options  UVMHIST_PRINT", then all the
> > messages from the uvm starts printing; but I'm
> never
> > able to login since the booting is not complete
> (as I
> > understand).
> 
> Hmm, you see a lot of green messages but not the
> login prompt?  If
> that's the case, it probably does not matter.  The
> login prompt just
> scrolled out of the screen; blindly type your
> username and password
> and you should be able to log in, although in a
> quite unusable console
> if the amount of messages is huge.
> 
> You can try to switch to the second virtual console
> and work from that.
> 
> > So, my question is: How do I enable debugging the
> uvm
> > (only my portion) by printing out messages to
> > /var/log/messages? Is there something simiar to
> > "printk" (as in Linux) in NetBSD?
> 
> I think you can do that by tuning your syslog.conf
> file and telling it
> not to redirect kernel messages to the console.  The
> default
> configuration sends them to /var/log/messages too.
> 
> Cheers,
> 
> -- 
> Julio M. Merino Vidal <jmmv84@gmail.com>
> The Julipedia - http://julipedia.blogspot.com/
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com