[panic] netmap(4) and if_lagg(4)
Harry Schmalzbauer
freebsd at omnilan.de
Sun May 28 08:58:46 UTC 2017
Bezüglich Vincenzo Maffione's Nachricht vom 28.05.2017 09:46 (localtime):
>>
>> I also recomplied vale-ctl, but I get the following error when trying to
>> add em0 (lagg-unrelated):
>> 389.083433 [ 835] netmap_obj_malloc netmap_ring request size
>> 65792 too large
>> 389.091593 [1693] netmap_mem2_rings_create Cannot allocate RX_ring
>>
>
> It means that you are giving too many slot to each RX ring, probably 4096.
> Try to use less slots, or to increase the dev.netmap.ring_size sysctl
> (default value is less than 65792).
Hmm, then thn I guess a default like dev.netmap.priv_ring_size has
changed, because my em txd/rxd were default 4096, for both, native
stable/11-netmap and HEAD-netmap...
Reducing r/txd to 1024 solved the problem (hw.em.rxd in loader.conf).
>>
>> Adding lagg still results in a panci, but with your latest
>> "return()"-patch, it's different:
>>
>> 0xffffffff8042aefb is in freebsd_generic_rx_handler
…
>>
>>
> Yeah, the same bug jist slipped back. Discard the previous patch and
> replace it with the attached one.
Thanks a lot!
This patch avoids the panic :-)
But unfortunately kills lagg (existing sockets break, nothing more
tested yet)
488.896454 [ 394] nm_os_generic_find_num_desc called, in tx 1024 rx 1024
488.903445 [ 402] nm_os_generic_find_num_queues called, in txq 0 rxq 0
488.910424 [1252] generic_netmap_attach Created generic NA
0xfffff80036b26400 (prev 0)
488.971772 [ 448] generic_netmap_register Generic adapter
0xfffff80036b26400 goes on
488.980127 [ 495] generic_netmap_register RX ring 0 of generic adapter
0xfffff80036b26400 goes on
488.989917 [ 495] generic_netmap_register RX ring 1 of generic adapter
0xfffff80036b26400 goes on
488.999720 [ 502] generic_netmap_register TX ring 0 of generic adapter
0xfffff80036b26400 goes on
489.009504 [ 502] generic_netmap_register TX ring 1 of generic adapter
0xfffff80036b26400 goes on
489.019802 [3055] netmap_transmit lagg0 drop mbuf requiring
offloadings
490.579512 [3055] netmap_transmit lagg0 drop mbuf requiring
offloadings
491.781780 [3055] netmap_transmit lagg0 drop mbuf requiring
offloadings
…
Have a nice sunday, will try to find some time next week to do more
investigation, must close for today, haven't even read the messages,
just wanted to drop a note.
thnaks,
-harry
More information about the freebsd-net
mailing list