From owner-freebsd-net@FreeBSD.ORG Fri Dec 13 17:02:55 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 17C196A0 for ; Fri, 13 Dec 2013 17:02:55 +0000 (UTC) Received: from mail-la0-x231.google.com (mail-la0-x231.google.com [IPv6:2a00:1450:4010:c03::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7E481195F for ; Fri, 13 Dec 2013 17:02:54 +0000 (UTC) Received: by mail-la0-f49.google.com with SMTP id er20so1596919lab.36 for ; Fri, 13 Dec 2013 09:02:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=1KqJeCi40LPtnP+ZMWgCrHnDq0NYwzPwqL9ZBQMJ++c=; b=rpYjq2BHLrjzbuSFMJMzpIM0jVAdLSGNq4ElBeQv29wqhCviKNzUbDpTvN+q1FTFtO 3e5R3YoyGPOOgPphh+eSo/XKM2ITuK2GhTFLW6eb+TLeWzMwlnzDBfyZRBbq0+MJ9+Is 4dR4solnVkSJFJYDqvH/OE5tI66RFhGlvluJFMN/JoPqmru8j5jNpJ03y/1NWKuJRprX CmDRVEXNUTvK0qlV8b6JeYPluedP2zwcTxIZIKHJe+3YGqXBQtlKnXtk/MiU5QTK2EKF zW/h6xRfln0Lqo6zAiY44Tif6nOLAQOf4eVHcAGqZ8+KUupzxT4tw1cCXvZPOULwn+bO AIcg== MIME-Version: 1.0 X-Received: by 10.152.197.35 with SMTP id ir3mr2155875lac.54.1386954172540; Fri, 13 Dec 2013 09:02:52 -0800 (PST) Sender: rizzo.unipi@gmail.com Received: by 10.114.175.180 with HTTP; Fri, 13 Dec 2013 09:02:52 -0800 (PST) In-Reply-To: References: Date: Fri, 13 Dec 2013 18:02:52 +0100 X-Google-Sender-Auth: 6HwIwz7k5Ho2JWU2iAmi-PbaLDg Message-ID: Subject: Re: Netmap support for Virtual network driver From: Luigi Rizzo To: "Thirunavukarasu Sengalvarayan -X (tsengalv - HCL TECHNOLOGIES LIMITED at Cisco)" Content-Type: text/plain; charset=ISO-8859-1 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:02:55 -0000 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 > Synthetic 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. di 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) > -----------------------------------------+------------------------------- > > > -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di 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) -----------------------------------------+-------------------------------