From owner-freebsd-net@FreeBSD.ORG Thu Jan 16 03:14:09 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 332E81E4 for ; Thu, 16 Jan 2014 03:14:09 +0000 (UTC) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [119.145.14.65]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 803A014FC for ; Thu, 16 Jan 2014 03:14:07 +0000 (UTC) Received: from 172.24.2.119 (EHLO szxeml213-edg.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id BOP65188; Thu, 16 Jan 2014 11:12:36 +0800 (CST) Received: from SZXEML421-HUB.china.huawei.com (10.82.67.160) by szxeml213-edg.china.huawei.com (172.24.2.30) with Microsoft SMTP Server (TLS) id 14.3.158.1; Thu, 16 Jan 2014 11:12:33 +0800 Received: from [127.0.0.1] (10.177.18.75) by szxeml421-hub.china.huawei.com (10.82.67.160) with Microsoft SMTP Server id 14.3.158.1; Thu, 16 Jan 2014 11:12:23 +0800 Message-ID: <52D74E15.1040909@huawei.com> Date: Thu, 16 Jan 2014 11:12:21 +0800 From: Wang Weidong User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Subject: netmap: I got some troubles with netmap Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.18.75] X-CFilter-Loop: Reflected Cc: freebsd-net@freebsd.org, Ding Tianhong X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jan 2014 03:14:09 -0000 Hi Luigi, I learn netmap recently. I have some troubles and problems. Just below: ---------------------------------------------------------- My machine and the netmap and qemu version: netmap version: 20131019. qemu: 'git://git.qemu-project.org/qemu.git', v1.7 NIC hardware: Intel Corporation 82599EB 10-Gigabit SFI/SFP+ Network Connection (rev 01) PC: Suse x86_64 GNU/Linux, the kernel is suse-3.0.58 ---------------------------------------------------------- insmod netmap_lin.ko and ixgbe/ixgbe.ko problem 1: I only use ethtool -A eth2 autoneg/rx/tx off that I can get the speed up to 14.84 Mpps. Or, I only got 500 Kpps. I should do "ethtool -A"? problem 2: I turn intel_iommu=on. When I use pkt-gen -i eth2, I got failed. And the dmesg likes that: DRHD: handling fault status reg 202 DMAR:[DMA Read] Request device [03:00.0] fault addr 1f6bfbd000 Is that netmap no support IOMMU? Problem 3: "qemu-system-x86_64 -m 1024 -boot c -net nic -net netmap,ifname=vale0:1 -hda /home/disk/nm_d0 -enable-kvm -vnc :0", Use that command to start a vm. I test on the vm. #pkt-gen -i eth0 -f tx -l 60 -n 20000000, the speed is up to 1.02 Mpps. I do "vale-ctl -h vale0:eth2", then I test on the vm, the speed is up to 558.57 Kpps. While "vale-ctl -a vale0:eth2", the speed is up to 800 kpps. I did something wrong? ------ thanks, Wang