Re: How to dump a 4gig system on panic ?

2002-05-18 Thread Marc G. Fournier


Well, I have a machine to debug/test this on, if you can provide some
directions on how to debug and get her up to date? :)

With the larger and larger systems that ppl are implementing, is this
something that might be useful to get into the core system?

On Sat, 18 May 2002, Andrew Gallatin wrote:

>
> Marc G. Fournier writes:
>  >
>  > Okay, seem to be about halfway there ... client kldload's no problem,
>  > server runs ... do a ctl-alt-esc to get into DDB and type panic, and it
>  > gives a message that its looking for the server and it finds it on the
>  > right IP ... then it prints out a '1023' and finishes the panic ...
>  >
>  > On the 'dump server', a vmcore gets created, but its zero length ...
>  >
>  > thoughts?
>
> As I said, it hasn't been used for quite some time.  It may require
> work to get it working again.
>
> Drew
>


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: How to dump a 4gig system on panic ?

2002-05-18 Thread Andrew Gallatin


Marc G. Fournier writes:
 > 
 > Okay, seem to be about halfway there ... client kldload's no problem,
 > server runs ... do a ctl-alt-esc to get into DDB and type panic, and it
 > gives a message that its looking for the server and it finds it on the
 > right IP ... then it prints out a '1023' and finishes the panic ...
 > 
 > On the 'dump server', a vmcore gets created, but its zero length ...
 > 
 > thoughts?

As I said, it hasn't been used for quite some time.  It may require
work to get it working again.

Drew

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: How to dump a 4gig system on panic ?

2002-05-17 Thread Marc G. Fournier


Okay, seem to be about halfway there ... client kldload's no problem,
server runs ... do a ctl-alt-esc to get into DDB and type panic, and it
gives a message that its looking for the server and it finds it on the
right IP ... then it prints out a '1023' and finishes the panic ...

On the 'dump server', a vmcore gets created, but its zero length ...

thoughts?

On Fri, 17 May 2002, Andrew Gallatin wrote:

>
> Marc G. Fournier writes:
>  >
>  > Well, downloaded the files (a .tar.gz would be nice? *grin*) and the
>  > client built perfectly, and kldload worked fine ... is there some way
>  > someone can suggest of 'simulating a crash'?  Some way to test to make
>  > sure that it is working as expected?  I have a 4.6-PRE machine on my desk
>  > that I'd like to test with before I try it on "the real thing", if at all
>  > possible?
>
> break into ddb & do:
>   ddb > call dumpsys()
>
> Unless you're running a savecore which supports partial dumps, you
> need to disable partial dumps (sysctl net.net_dump.partial=0).
>
> And remember, you'll be spewing the contents of your ram (possibly
> passwords, etc) across the network in clear text.
>
> Drew
>


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: How to dump a 4gig system on panic ?

2002-05-17 Thread Andrew Gallatin


Marc G. Fournier writes:
 > 
 > Well, downloaded the files (a .tar.gz would be nice? *grin*) and the
 > client built perfectly, and kldload worked fine ... is there some way
 > someone can suggest of 'simulating a crash'?  Some way to test to make
 > sure that it is working as expected?  I have a 4.6-PRE machine on my desk
 > that I'd like to test with before I try it on "the real thing", if at all
 > possible?

break into ddb & do: 
  ddb > call dumpsys()

Unless you're running a savecore which supports partial dumps, you
need to disable partial dumps (sysctl net.net_dump.partial=0).

And remember, you'll be spewing the contents of your ram (possibly
passwords, etc) across the network in clear text.

Drew

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: How to dump a 4gig system on panic ?

2002-05-17 Thread Hiten Pandya

--- "Marc G. Fournier" <[EMAIL PROTECTED]> wrote:
> Well, downloaded the files (a .tar.gz would be nice? *grin*) and the
> client built perfectly, and kldload worked fine ... is there some way
> someone can suggest of 'simulating a crash'?  Some way to test to make
> sure that it is working as expected?  I have a 4.6-PRE machine on my desk
> that I'd like to test with before I try it on "the real thing", if at all
> possible?

If you have DDB in your kernel, then you can press Ctrl+Alt+Esc; by doing
that, you will enter into the kernel debugger (DDB).  At the prompt
displayed,
type 'panic' without the quotes and then should hopefully generate a dump.

Regards.

  -- Hiten

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: How to dump a 4gig system on panic ?

2002-05-17 Thread Marc G. Fournier


Well, downloaded the files (a .tar.gz would be nice? *grin*) and the
client built perfectly, and kldload worked fine ... is there some way
someone can suggest of 'simulating a crash'?  Some way to test to make
sure that it is working as expected?  I have a 4.6-PRE machine on my desk
that I'd like to test with before I try it on "the real thing", if at all
possible?

On Fri, 17 May 2002, Andrew Gallatin wrote:

>
> Marc G. Fournier writes:
>  >
>  > Oh, I like the netdump one ... I have a machine sitting right beside this
>  > one that I can use to dump to ... has anyone thought to include this as a
>  > 'standard' sort of thing with FreeBSD?  So that it keeps up with the
>  > current code?
>  >
>  >
>
> I plan to integrate partial dumps as an option at some point, but my
> only -current machines are alphas, so I need to get gdb working again
> there first.
>
> Drew
>


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: How to dump a 4gig system on panic ?

2002-05-17 Thread Andrew Gallatin


Marc G. Fournier writes:
 > 
 > Oh, I like the netdump one ... I have a machine sitting right beside this
 > one that I can use to dump to ... has anyone thought to include this as a
 > 'standard' sort of thing with FreeBSD?  So that it keeps up with the
 > current code?
 > 
 > 

I plan to integrate partial dumps as an option at some point, but my
only -current machines are alphas, so I need to get gdb working again
there first.

Drew

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: How to dump a 4gig system on panic ?

2002-05-17 Thread Marc G. Fournier


Oh, I like the netdump one ... I have a machine sitting right beside this
one that I can use to dump to ... has anyone thought to include this as a
'standard' sort of thing with FreeBSD?  So that it keeps up with the
current code?


On Fri, 17 May 2002, Andrew Gallatin wrote:

>
>
> There are 3 things you could do:
>
> a) Limit your memory size in the loader
>
> b) Use partial dumps
>
> c) Use network dumps if you have another machine to run the dump
> server on.
>
> Both the netdump & partial dump code can be found at:
>
>  http://www.cs.duke.edu/~anderson/freebsd/
>
> Both may be a little out of date & require some work to get working
> with a recent -stable, as they were developed in the days when 4.0 was
> -current.
>
>
> Drew
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message
>


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message