From owner-freebsd-net@FreeBSD.ORG Fri Dec 13 17:32:11 2013 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 356F01D6 for ; Fri, 13 Dec 2013 17:32:11 +0000 (UTC) Received: from alln-iport-7.cisco.com (alln-iport-7.cisco.com [173.37.142.94]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A4C011CB5 for ; Fri, 13 Dec 2013 17:32:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=28004; q=dns/txt; s=iport; t=1386955930; x=1388165530; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=t4mE0Ksg+K0GyaB8lozeTxL8QtoGH0kdV3XdAWem3+8=; b=mi86h/hMP8wc/e/OIlZLA5jT10ihHfLgRq0WfNyX1Cdmel4YymwQpkVZ /JUtAdZrrrdO7FtLQ1oey7Ko0zI+pR1Oq65aNlv27xM3RejdJ/6yw2aFw qoiMCqebEhpYgT4Nlv7AcUPvv5UfLa4xyUryjwearpILJVGrjiNCHYGwc k=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjgHAJ5Dq1KtJV2d/2dsb2JhbABZFoIwRDhVsAyIA06BJRZ0giUBAQECAgEBASohIAsQAgEIEQMBAQELFgEGBx8CBgEJARQJCAIECAYBBAEHFQSHTwMRDcN+DYcKF40CgTsHAQEeIBEGAQaDHYETBI5Yhm9kgxuLKgOFN4MqbXsJFyI X-IronPort-AV: E=Sophos;i="4.95,480,1384300800"; d="scan'208,217";a="6624484" Received: from rcdn-core-6.cisco.com ([173.37.93.157]) by alln-iport-7.cisco.com with ESMTP; 13 Dec 2013 17:32:08 +0000 Received: from xhc-rcd-x08.cisco.com (xhc-rcd-x08.cisco.com [173.37.183.82]) by rcdn-core-6.cisco.com (8.14.5/8.14.5) with ESMTP id rBDHW8Jq018882 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 13 Dec 2013 17:32:08 GMT Received: from xmb-aln-x09.cisco.com ([169.254.4.234]) by xhc-rcd-x08.cisco.com ([173.37.183.82]) with mapi id 14.03.0123.003; Fri, 13 Dec 2013 11:32:08 -0600 From: "Thirunavukarasu Sengalvarayan -X (tsengalv - HCL TECHNOLOGIES LIMITED at Cisco)" To: Luigi Rizzo Subject: RE: Netmap support for Virtual network driver Thread-Topic: Netmap support for Virtual network driver Thread-Index: AQHO9/dAqTEOXnSetUSeuf+Drq+Rk5pSBvewgAC4AQD//5/isA== Date: Fri, 13 Dec 2013 17:32:07 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-Auto-Response-Suppress: DR, OOF, AutoReply X-MS-TNEF-Correlator: x-originating-ip: [10.77.138.163] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: "waas-dev-hyperv\(mailer list\)" , "net@freebsd.org" 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: Fri, 13 Dec 2013 17:32:11 -0000 Hi Luigi, Hyper-v Driver code is part of Linux kernel code now. I could see it from linux kernel version 3.3. The below link gives you hype= r-v driver code in latest kernel version. http://lxr.free-electrons.com/source/drivers/net/hyperv/ If you don't have the latest kernel code, please let me know I will send th= e hyper-v driver code from it. Thanks Thiru. From: rizzo.unipi@gmail.com [mailto:rizzo.unipi@gmail.com] On Behalf Of Lui= gi Rizzo Sent: Friday, December 13, 2013 10:33 PM To: Thirunavukarasu Sengalvarayan -X (tsengalv - HCL TECHNOLOGIES LIMITED a= t Cisco) Cc: waas-dev-hyperv(mailer list); net@freebsd.org Subject: Re: Netmap support for Virtual network driver On Fri, Dec 13, 2013 at 4:48 PM, Thirunavukarasu Sengalvarayan -X (tsengalv= - HCL TECHNOLOGIES LIMITED at Cisco) > wrote: (Continuing with below mail thread.) Hi Luigi, Thanks a lot for your quick response. Yes we have the source base for hyper-v network driver. Could you please provide us the patch for Netmap support in Hyper-v Network= drivers. sorry i meant that if you send us the guest driver sources we can try to add netmap support to them. Hyper-v has two kinds of NIC, emulated and Synthetic. In general emulated network drivers are relatively slow when compared to Sy= nthetic network drivers. Hence we planned to use synthetic network drivers(netvsc). You have pointed that we could use e1000 emulation as another option. Which driver would be better in terms of performance, Netmap with emulation= driver or Netmap with synthetic driver? it all depends on your usage pattern, on how bad is the hypervisor at emulating the e1000, and especially how slow is the network backend (virtual switch) used. In general netmap operates in batches and especially for the receive side it overcomes some of the limitation of emulation, often leaving the virtual switch as the bottlenecks. In the paper we referenced we elaborate further. in practice, i'd suggest to start with e1000 emulation and see what kind of performance you are getting, and post the numbers so i can tell whether it is worthwhile trying to use a modified synthetic driver. cheers luigi Thanks Thiru. ---------- Forwarded message ---------- From: Luigi Rizzo > Date: Fri, Dec 13, 2013 at 12:54 AM Subject: Re: Netmap support for Virtual network driver To: Thirunavukarasu S > Cc: "freebsd-net@freebsd.org" > On Thu, Dec 12, 2013 at 7:02 PM, Thirunavukarasu S > wrote: Hi I am running a Virtual Linux machine on Hyper-v Microsoft Hypervisor. I am using netvsc drivers provided by Microsoft for virtual interfaces. Now I would like to add Netmap support for netvsc driver, after coming to know about its wide advantages. Does Netmap support for Microsoft Hyper-v Network drivers is already in place. or could you help in integrating netmap support in our netvsc drivers. we can definitely help with the integration as long as you have the hyperv drivers for the guest in source format another option might be to use the e1000 emulation in hyperv. but in any case don't hold your breath for performance, because chances are that the network I/O path in the hypervisor (hyperv in this case) is not able to sustain the data rates that netmap can generate. See the paper at this link to see what we did for QEMU/KVM http://info.iet.unipi.it/~luigi/papers/20130903-rizzo-ancs.pdf to make it run at netmap speeds cheers luigi Thanks Thiru. _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. d= i Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2211611 . via Diotis= alvi 2 Mobile +39-338-6809875 . 56122 PISA= (Italy) -----------------------------------------+------------------------------- -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. d= i Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2211611 . via Diotisalvi 2 Mobile +39-338-6809875 . 56122 PISA (Italy) -----------------------------------------+-------------------------------