From owner-freebsd-current@FreeBSD.ORG Wed Sep 29 16:10:44 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41E06106566B; Wed, 29 Sep 2010 16:10:44 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id D1DA08FC18; Wed, 29 Sep 2010 16:10:43 +0000 (UTC) Received: by qyk7 with SMTP id 7so1468345qyk.13 for ; Wed, 29 Sep 2010 09:10:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=3496qKG/dXXyNKRIqEuf4rn7YmzRGPQhs8KSIUhGStA=; b=gON4Vl7FR6FKHkur+QGKEnO26BUPRcouUV3Q06KZ9Rvt7eFHhwYhz983JxEwY4KT/1 P83p5/aEWzuDX6+8WQc6Il8uIxc5hyGQX3La7NAnoT8998rgfjnpTzL1T9sny+t7AUjw 0zy1nC1SGn6919KWCBaFYWwM4BYfGv1tMls6Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=Uyvke3WWKIl13F1XuVCbOcMfLGdBQLw4mNCcN/I2kRS0O5h/uPF96T92upxnjnpepJ SzlDhb7D9FWSZV/8azxt4PWKsB3bt64xiO+DDN5juH+r2VmBK/LMLXXygEqZ3aQN7WOe zibZ47/tXvvBSdYKfnGc6w4Bf69W5n7P8ihLg= MIME-Version: 1.0 Received: by 10.224.19.147 with SMTP id a19mr1294648qab.235.1285776642662; Wed, 29 Sep 2010 09:10:42 -0700 (PDT) Sender: asmrookie@gmail.com Received: by 10.229.221.141 with HTTP; Wed, 29 Sep 2010 09:10:42 -0700 (PDT) In-Reply-To: References: Date: Wed, 29 Sep 2010 18:10:42 +0200 X-Google-Sender-Auth: ZRQ-w5G8dl0FAnwibK5pfCpw6qc Message-ID: From: Attilio Rao To: Sergey Kandaurov Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org, Ryan Stone , FreeBSD Current , Ed Maste Subject: Re: [PATCH] Netdump for review and testing -- preliminary version X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2010 16:10:44 -0000 2010/9/29 Sergey Kandaurov : > [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 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