From owner-freebsd-net@FreeBSD.ORG Mon Jun 27 16:52:49 2011 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0C56106566B for ; Mon, 27 Jun 2011 16:52:49 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id 8C73E8FC13 for ; Mon, 27 Jun 2011 16:52:49 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id E8A3773027; Mon, 27 Jun 2011 19:09:25 +0200 (CEST) Date: Mon, 27 Jun 2011 19:09:25 +0200 From: Luigi Rizzo To: net@freebsd.org Message-ID: <20110627170925.GA2920@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: RTL8169 (if_re) poor tx packet rate ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2011 16:52:49 -0000 Asking just in case someone has experience on the sending rate with Realtek 8168/8169/8110 Gbit cards. On the receive side, using netmap, even with the CPU at 200 MHz the card seems able to receive 1.38 Mpps (the most i can generate with my other, intel 1 Gbit/s cards). But on the receive side the most i get is 370 Kpps (with 64-byte packets), and achieve slightly faster speeds (390Kpps) only sending shorter frames (16 bytes) and relying on the padding inserted by the card. Even the standard drivers reach similar speeds (in the 300Kpps range). I have tried to change several configuration parameters in the NIC settings (tx dma threshold, mitigation, checked the inter-packet gap, increasing the ring size to 1024) but they seem to have no effect. The only improvement (but a very modest one) is if i use the "high priority" tx ring instead of the regular one -- then speed goes up from 365 to 370 Kpps (very reproducible). At much larger packet sizes (1024 and above) the card does line rate with no problems. Has anyone tried to push these cards at high speed, or do you have suggestions on what to try ? cheers luigi http://info.iet.unipi.it/~luigi/netmap/