From owner-freebsd-net@freebsd.org Tue Nov 6 09:47:18 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A69C5110DB3F for ; Tue, 6 Nov 2018 09:47:18 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0EAF66F2EB; Tue, 6 Nov 2018 09:47:18 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: by mail-qk1-x72c.google.com with SMTP id o89so18088929qko.0; Tue, 06 Nov 2018 01:47:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jU/tK6RD7F55wVcLS3JdQUwxtbZddl+DJY28qCeuIhs=; b=eXHfy48o2moWlQMv1nH6Qt0giajyAsLUUpjCEIWrhPo7vuUHJBYPTTDanFqIw0pYcR ohEllyoctDWVrVWJYWsv4vP4cJdrLBeyCqR9VRa+xoUsvH1RqIBjQzO9iCCgw1zt9sAq qdjhFwLSV1CK4LUb2rLm/07/7cP6H571dPTYffPjbRAtiwk5tIUbzpV8b6E15bkmSj5Q BD86A4jpQAdfC8YUoewE73rE5SoMlFxZVRhZzKca1kwLafpj+PFaSq1hpjsP5X3fRuIC fvm8COcR6Q7Z88u9yo+x1Bt85UpRywCuxXcwUB03QsLvVV53hC11I3kah28orAybNJ/2 MErg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jU/tK6RD7F55wVcLS3JdQUwxtbZddl+DJY28qCeuIhs=; b=gcLgSUxMvki/kGbdkthvfVcAqLcDGbEpzcR9TDnaJsTLaINKDNkcMoaIzLDIA8uM/S GAgQ7XLYjyx7a/tNfGS4Dd/UlPFUMEdI+pOv3Tgu65DmjDAdW5KgIc8+5q92VMccvEpG wVhBmLy+ef8sO0HT3LctnyBzvlvAxa+ItXEX+9K1aDWxXEHJjGhf4oX/EkrbJd9P0kes fYSu5zRS5U/yX7tIH4cjACohzXbKT4Gn1QLqv4p1nTPNxmIJevxcx0bx9+Z7j2CmtiMR ot1ogNT0oHZbPfOG0cirpg+p+cimehl+bbnSi82qmYJSUXIImapQGZXNssIWJiz8rJPA lq9Q== X-Gm-Message-State: AGRZ1gKBnwRtajWIukRFNgnIMvAGmRWAVpYZCM6bKcgxgRKQYf9zQLL5 oDlfQtQ7FiRpwxghVmntkpNaOT1cmZcn12aiFODjeAl3 X-Google-Smtp-Source: AJdET5f0aWx/4yg1ULlOiKvwE2mewCBCxp8k4UGFa6AmsOuQTU9ngtw9P3sAdh4BZtIi8DiptuJF0pHnN1VkHiIMyIE= X-Received: by 2002:a37:b6c5:: with SMTP id g188-v6mr23490412qkf.188.1541497637337; Tue, 06 Nov 2018 01:47:17 -0800 (PST) MIME-Version: 1.0 References: <3010669715.20181106002053@serebryakov.spb.ru> In-Reply-To: <3010669715.20181106002053@serebryakov.spb.ru> From: Vincenzo Maffione Date: Tue, 6 Nov 2018 10:47:04 +0100 Message-ID: Subject: Re: What is status of `pkt-gen' on FreeBSD? To: lev@freebsd.org Cc: "freebsd-net@freebsd.org" X-Rspamd-Queue-Id: 0EAF66F2EB X-Spamd-Result: default: False [-3.46 / 200.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com]; NEURAL_HAM_MEDIUM(-0.99)[-0.989,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.997,0]; SUBJECT_ENDS_QUESTION(1.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[c.2.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.91)[-0.910,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; IP_SCORE(-0.56)[ipnet: 2607:f8b0::/32(-1.24), asn: 15169(-1.47), country: US(-0.08)]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2018 09:47:19 -0000 Hi, There are two separate issues here. The first it's updating pkt-gen. This is what I'm trying to do right now ( https://reviews.freebsd.org/D17698). The update will land in HEAD and then after 3 days in 12/stable. I will also update 11/stable later. The second issue looks like a problem related to the em driver. As far as I know, netmap support for em driver is now provided by iflib (sys/net/iflib.c). Maybe there is an issue in iflib_netmap_txsync() that prevents progress? Or maybe the interface is down while TX is stuck (thus preventing progress)? Cheers, Vincenzo Il giorno lun 5 nov 2018 alle ore 22:21 Lev Serebryakov ha scritto: > Hello Freebsd-net, > > Is `pkt-gen' (for netmap) supported on FreeBSD? > > ${SRCTOP}/tools/tools/netmap/pkt-gen.c is very old and could not be built > (I've checked stable/11, stable/12 and head). > > ${PORTS}/net/pkt-gen is not so old, but more than year old + patches > > pkt-gen from github could be built on CURRENT, but can not finish > transmission: > > 236.545902 main_thread [2605] 0 pps (0 pkts 0 bps in 1031501 usec) 0.00 > avg_batch 99999 min_space > 237.000000 sender_body [1687] pending tx tail 446 head 448 on ring 0 > 237.000007 sender_body [1687] pending tx tail 446 head 448 on ring 0 > 237.000011 sender_body [1687] pending tx tail 446 head 448 on ring 0 > 237.000016 sender_body [1687] pending tx tail 446 head 448 on ring 0 > 237.000020 sender_body [1687] pending tx tail 446 head 448 on ring 0 > 237.607508 main_thread [2605] 0 pps (0 pkts 0 bps in 1061606 usec) 0.00 > avg_batch 99999 min_space > 238.000000 sender_body [1687] pending tx tail 446 head 448 on ring 0 > 238.000005 sender_body [1687] pending tx tail 446 head 448 on ring 0 > 238.000009 sender_body [1687] pending tx tail 446 head 448 on ring 0 > 238.000013 sender_body [1687] pending tx tail 446 head 448 on ring 0 > 238.000017 sender_body [1687] pending tx tail 446 head 448 on ring 0 > (forever) > > and can not be used in benchmarking scripts... > > Which one should I use? How could I be sure that transmission of given > number of packets will be finished in finite time no matter what? Is this > problem with tx queue really driver problem or netmap problem? > > > -- > Best regards, > Lev mailto:lev@FreeBSD.org > > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > -- Vincenzo