Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Mar 2021 11:48:42 +0000
From:      "Alexander V. Chernikov" <melifaro@ipfw.ru>
To:        Mamontov Roman <mr.xanto@gmail.com>
Cc:        FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: Troubles with netdump(4)
Message-ID:  <44FCBDFB-8962-4F5D-BFCE-682662524245@ipfw.ru>
In-Reply-To: <1903978782.20210310130715@gmail.com>
References:  <1903978782.20210310130715@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> On 10 Mar 2021, at 10:07, Mamontov Roman <mr.xanto@gmail.com> wrote:
>=20
> Hello.
>=20
> I try to use netdump(4) option for transmitting kernel dumps to a =
remote server.=20
> When  I caused a kernel panic by sysctl debug.kdb.panic I found, that =
netdumping=20
> to  remote  server  happens very slow: systat -ifstat on remote side =
show speed=20
> around 5KB/s.
>=20
> On netdump-client side I have:
> root@host-1:/home/roman # uname -mv
> FreeBSD 12.2-STABLE GENERIC  amd64
> root@host-1:/home/roman #=20
> root@host-1:/home/roman # dumpon -l
> em0
> root@host-1:/home/roman # cat /etc/rc.local
> #!/bin/sh
> /sbin/dumpon -c 192.168.7.11 -s 192.168.7.12 em0
> root@host-1:/home/roman # ifconfig em0
> em0: flags=3D8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> =
metric 0 mtu 1500
>        =
options=3D81209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAG=
IC,VLAN_HWFILTER>
>        inet 192.168.7.11 netmask 0xffffff00 broadcast 192.168.7.255
>        media: Ethernet autoselect (1000baseT <full-duplex>)
>        status: active
>        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
> root@solution:/home/roman #
>=20
> On netdumpd-side:
> root@host-2:/home/roman # uname -mv
> FreeBSD 12.2-STABLE GENERIC  i386
> root@host-2:/home/roman # ifconfig em0
> em0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu =
1500
>        =
options=3D81209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAG=
IC,VLAN_HWFILTER>
>        inet 192.168.7.12 netmask 0xffffff00 broadcast 192.168.7.255
>        media: Ethernet autoselect (1000baseT <full-duplex>)
>        status: active
>        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
> root@solution-old:/home/roman #
>=20
> Both (host-1 and host-2) have the same stable/12 revision:
> # cat /usr/src/.gituprevision
> stable/12:879039312
> #
>=20
> When  I  try test network bandwith between host-1 and host-2 with =
iperf3, I see=20
> next results:
> root@host-1:/home/roman # iperf3 -u -b 0 -c 192.168.7.12
> Connecting to host 192.168.7.12, port 5201
> [  5] local 192.168.7.11 port 37112 connected to 192.168.7.12 port =
5201
> [ ID] Interval           Transfer     Bitrate         Total Datagrams
> [  5]   0.00-1.00   sec   346 MBytes  2.90 Gbits/sec  248710
> [  5]   1.00-2.00   sec   345 MBytes  2.89 Gbits/sec  247750
> [  5]   2.00-3.00   sec   345 MBytes  2.90 Gbits/sec  247990
> [  5]   3.00-4.00   sec   331 MBytes  2.78 Gbits/sec  238020
> [  5]   4.00-5.00   sec   262 MBytes  2.20 Gbits/sec  188260
> [  5]   5.00-6.00   sec   345 MBytes  2.89 Gbits/sec  247560
> [  5]   6.00-7.00   sec   345 MBytes  2.89 Gbits/sec  247660
> [  5]   7.00-8.00   sec   345 MBytes  2.90 Gbits/sec  247980
> [  5]   8.00-9.00   sec   342 MBytes  2.87 Gbits/sec  245760
> [  5]   9.00-10.00  sec   344 MBytes  2.88 Gbits/sec  246830
> - - - - - - - - - - - - - - - - - - - - - - - - -
> [ ID] Interval           Transfer     Bitrate         Jitter    =
Lost/Total Datagrams
> [  5]   0.00-10.00  sec  3.27 GBytes  2.81 Gbits/sec  0.000 ms  =
0/2406520 (0%)  sender
> [  5]   0.00-10.07  sec  0.00 Bytes  0.00 bits/sec  0.000 ms  0/0 (0%) =
 receiver
>=20
> iperf Done.
> root@host-1:/home/roman #
>=20
> Capturing  traffic  between  host-1 and host-2 not show anything =
criminal (as I=20
> understand).
>=20
> Next  I  try  netdumping  to  another  FreeBSD-host  (virtual machine =
on VMWare=20
> hypervisor):
> root@host-3:~ # uname -mv
> FreeBSD 12.2-STABLE r369412 GENERIC  amd64
> root@host-3:~ # ifconfig em0
> em0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu =
1500
>        =
options=3D81009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,VLAN_HW=
FILTER>
>        inet 192.168.7.18 netmask 0xffffff00 broadcast 192.168.7.255
>        media: Ethernet autoselect (1000baseT <full-duplex>)
>        status: active
>        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
> root@host-3:~ #
>=20
> And netdumping to this host are still slow (~the same 5KB/s).=20
>=20
> Next step another FreeBSD-host (virtual machine on VirtualBox =
hypevisor):
> root@host-4:~ # uname -mv
> FreeBSD 12.2-STABLE r369412 GENERIC  amd64
> root@host-4:~ # ifconfig em0
> em0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu =
1500
>        =
options=3D81009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,VLAN_HW=
FILTER>
>        inet 192.168.7.19 netmask 0xffffff00 broadcast 192.168.7.255
>        media: Ethernet autoselect (1000baseT <full-duplex>)
>        status: active
>        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
> root@host-4:~ #
>=20
> Both (host-3 and host-4) are installed from =
FreeBSD-12.2-STABLE-amd64-20210304-r369412-bootonly.iso
> When  I  caused  a  kernel panic by sysctl debug.kdb.panic on host-4, =
netdumping to=20
> host-3 show the same 5 KB/s.
netdump requires explicit acks from the other side.
Could you try dumping the exchange between the dumping host and the =
server to verify that acks are sent immediately after receiving the next =
chunk?
>=20
> Is  there an particularity in netdump, that can't transmitting crash =
dumps over=20
> network faster than 5KB/s? Or this is a "feature" of my test-suite?
>=20
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to =
"freebsd-stable-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44FCBDFB-8962-4F5D-BFCE-682662524245>