From owner-freebsd-net@FreeBSD.ORG Fri Sep 12 17:02:40 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 857EEB5A for ; Fri, 12 Sep 2014 17:02:40 +0000 (UTC) Received: from mail-ie0-x231.google.com (mail-ie0-x231.google.com [IPv6:2607:f8b0:4001:c03::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 56187C06 for ; Fri, 12 Sep 2014 17:02:40 +0000 (UTC) Received: by mail-ie0-f177.google.com with SMTP id rd18so1266167iec.22 for ; Fri, 12 Sep 2014 10:02:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ZE5of5+N7+hEo8vPl1FJ5qVD/DTgX6uQ58OCxFSq9Cw=; b=qP2JfnVX0wzCnqtZngZuablCge6BR8IhwU3joRuzEoHznFe01dWz4V7+fxoafs4Gpq t0kcmLMxTdVCb0EZEV370ueAcPBnM6nHWfUfA9hMT4KjSshboNBsFQZJbFZzcVU7Xkhs ryyxSeZ2nS8SwRd1RQZ7Qg3yWuiE7ungTTkBfZuZnAmYI4g/vZRJZxhCIkINa35wxXgS 7/7e6fFxf4HPZ5mOg4rSg6Vn+2KKsRIbmEPOz5rrWJAEfTzCpQo7QFji+HMU+phjy6mo elc48zPYcyHP0k7U/eH6IVB+8fmMLB4Uo7DuFsoms4TZXBisNIvW1TqKdvRWPjg3ivqZ mo9A== MIME-Version: 1.0 X-Received: by 10.50.88.98 with SMTP id bf2mr3904551igb.11.1410541359774; Fri, 12 Sep 2014 10:02:39 -0700 (PDT) Received: by 10.107.8.132 with HTTP; Fri, 12 Sep 2014 10:02:39 -0700 (PDT) Date: Fri, 12 Sep 2014 11:02:39 -0600 Message-ID: Subject: help creating a send-receive test suit using netmap From: David To: "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Sep 2014 17:02:40 -0000 Hi I am trying to compare the performance of sending packets using netmap, socket and packet mmap. Right now I am working on top of pkt-gen and some other implementations for socket and packet mmap. I'm interested on the relation between packet size and packets I can send per second. I was following the code to check all the steps, and I found it is going throught a memcpy to set the packet on the netmap buffer (as defined on nm_pkt_copy inside netmap_user.h). I am afraid that the data I'm reading is mostly driven by the time the memcpy takes. Is there any other way around to check the performance in "send" to avoid this bottleneck? regards --=20 David D=C3=ADaz Barquero Ingenier=C3=ADa en Computadores Tecnol=C3=B3gico de Costa Rica