Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Sep 2010 18:10:42 +0200
From:      Attilio Rao <attilio@freebsd.org>
To:        Sergey Kandaurov <pluknet@gmail.com>
Cc:        freebsd-net@freebsd.org, Ryan Stone <rstone@sandvine.com>, FreeBSD Current <current@freebsd.org>, Ed Maste <emaste@sandvine.com>
Subject:   Re: [PATCH] Netdump for review and testing -- preliminary version
Message-ID:  <AANLkTi=C5mxKhWdZ12x4=ChKisoOLxcn5-v7iOGSHVAy@mail.gmail.com>
In-Reply-To: <AANLkTinpvSS7%2B=QKyvOpMjPLaTKi%2BYueOi0dK1wzQTWZ@mail.gmail.com>
References:  <AANLkTikA5OUYD1A9pqCqVEZ5qk%2BVECq8x-fnRXnpp0KE@mail.gmail.com> <AANLkTinpvSS7%2B=QKyvOpMjPLaTKi%2BYueOi0dK1wzQTWZ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2010/9/29 Sergey Kandaurov <pluknet@gmail.com>:
> [just don't know what namely need to test, so]
>
> All made according to your instructions.
> The only way I could trigger netdump was
> to run its ddb command by hand. Neither
> debug.kdb.enter nor debug.kdb.panic don't do it.

You probabilly need to use KDB_UNATTENDED.

> Some numbers and output (bit verbose
> but again don't know what need to show here)
> Entered through debug.kdb.panic, thus Panicstring.
> db> netdump
>
> -----------------------------------
> netdump in progress. searching for server.. dumping to xx.xxx.xx.xx
> (00:1a:64:d3:4f:20)
> -----------------------------------
> Physical memory: 2026 MB
> Dumping 1154 MB: 1139 1123 1107 1091 1075 1059 1043 1027 1011 995 979
> 963 947 931 915 899 883 867 851 835 819 803 787 771 755 739 723 707
> 691 675 659 643 627 611 595 579 563 547 531 515 499 483 467 451 435
> 419 403 387 371 355 339 323 307 291 275 259 243 227 211 195 179 163
> 147 131 115 99 83 67 51 35 19 3
> Dump complete
>
> netdump finished.
> cancelling normal dump
>
> # ls -hl /home/fooserv/crash/
> total 1182930
> -rw-r--r-- =C2=A01 root =C2=A0wheel =C2=A0 404B Sep 29 12:05 info.fooserv=
.0
> -rw-r--r-- =C2=A01 root =C2=A0wheel =C2=A0 1.1G Sep 29 12:05 vmcore.foose=
rv.0
>
> Dump from fooserv [xx.xxx.xx.xx]
> =C2=A0Architecture: amd64
> =C2=A0Architecture version: 2
> =C2=A0Dump length: 1210687488B (1154 MB)
> =C2=A0blocksize: 8192
> =C2=A0Dumptime: Wed Sep 29 11:55:30 2010
> =C2=A0Hostname: fooserv
> =C2=A0Versionstring: FreeBSD 9.0-CURRENT #51: Wed Sep 29 07:18:24 UTC 201=
0
> =C2=A0 =C2=A0root@fooserv:/usr/obj/usr/src/sys/GENERIC
> =C2=A0Panicstring: kdb_sysctl_panic
> =C2=A0Header parity check: Pass
> Dump complete
>
> I tried to netdump a bit later again, but it couldn't find server, which
> runs though, and client traffic was seen on server-side (w/o reply).
> db> netdump
>
> -----------------------------------
> netdump in progress. searching for server.. . . . . . . . . . . .
> Failed to contact netdump server

Could you compile the kernel with NETDUMP_CLIENT_DEBUG and retry?
(Warning: the log may be huge, so you may be needing to log with serial lin=
e)

I will try to reproduce locally, if anything.

Thanks,
Attilio


>
> As for netdumpserv,
> it misses #include <sys/cdefs.h> before __FBSDID();
> I happily tested it on 7.3-amd64.

Yes, there are also other small style(9) nits that needs to be
addressed in the netdumpserver as well.

Thanks,
Attilio


--=20
Peace can only be achieved by understanding - A. Einstein



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=C5mxKhWdZ12x4=ChKisoOLxcn5-v7iOGSHVAy>