Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Nov 2018 10:47:04 +0100
From:      Vincenzo Maffione <v.maffione@gmail.com>
To:        lev@freebsd.org
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: What is status of `pkt-gen' on FreeBSD?
Message-ID:  <CA%2B_eA9iYbokJ991frNmYfYt7Yq7CUYd28aitHdvAbhOFcSRe7w@mail.gmail.com>
In-Reply-To: <3010669715.20181106002053@serebryakov.spb.ru>
References:  <3010669715.20181106002053@serebryakov.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <lev@freebsd.org>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B_eA9iYbokJ991frNmYfYt7Yq7CUYd28aitHdvAbhOFcSRe7w>