From owner-freebsd-net@freebsd.org Sun May 28 08:58:46 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D8666D7B9DC for ; Sun, 28 May 2017 08:58:46 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mx0.gentlemail.de (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8ABC917B9 for ; Sun, 28 May 2017 08:58:46 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mh0.gentlemail.de (ezra.dcm1.omnilan.net [IPv6:2a00:e10:2800::a135]) by mx0.gentlemail.de (8.14.5/8.14.5) with ESMTP id v4S8wgOC094882; Sun, 28 May 2017 10:58:42 +0200 (CEST) (envelope-from freebsd@omnilan.de) Received: from titan.inop.mo1.omnilan.net (titan.inop.mo1.omnilan.net [IPv6:2001:a60:f0bb:1::3:1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mh0.gentlemail.de (Postfix) with ESMTPSA id 5647B66F; Sun, 28 May 2017 10:58:42 +0200 (CEST) Message-ID: <592A9141.4040002@omnilan.de> Date: Sun, 28 May 2017 10:58:41 +0200 From: Harry Schmalzbauer Organization: OmniLAN User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; de-DE; rv:1.9.2.8) Gecko/20100906 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: Vincenzo Maffione CC: FreeBSD Net Subject: Re: [panic] netmap(4) and if_lagg(4) References: <58CBCD7A.8060301@omnilan.de> <58CFA394.8070901@omnilan.de> <5926EE96.1010000@omnilan.de> <5926F9F9.4040706@omnilan.de> <592701D6.7030301@omnilan.de> <592742A8.4010207@omnilan.de> <5927D560.10003@omnilan.de> <5927D77A.60502@omnilan.de> <5927E974.6060706@omnilan.de> <5927EF05.9040208@omnilan.de> <59281DF8.20402@omnilan.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]); Sun, 28 May 2017 10:58:42 +0200 (CEST) X-Milter: Spamilter (Reciever: mx0.gentlemail.de; Sender-ip: ; Sender-helo: mh0.gentlemail.de; ) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 May 2017 08:58:46 -0000 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