From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chegu Vinod Subject: Re: Networking performance on a KVM Host (with no guests) Date: Sat, 21 Apr 2012 00:30:34 +0000 (UTC) Message-ID: References: <20120419054306.GV11918@redhat.com> <4F916F96.8070100@hp.com> <20120420193549.GA30585@fermat.math.technion.ac.il> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from plane.gmane.org ([80.91.229.3]:43481 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751826Ab2DUAaq (ORCPT ); Fri, 20 Apr 2012 20:30:46 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SLODs-0008Vp-6m for kvm@vger.kernel.org; Sat, 21 Apr 2012 02:30:44 +0200 Received: from zccy01cs104.houston.hp.com ([15.211.201.84]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Apr 2012 02:30:44 +0200 Received: from chegu_vinod by zccy01cs104.houston.hp.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Apr 2012 02:30:44 +0200 Sender: kvm-owner@vger.kernel.org List-ID: Nadav Har'El math.technion.ac.il> writes: > > On Fri, Apr 20, 2012, Chegu Vinod wrote about "Re: Networking performance on a KVM Host (with no guests)": > > Removing the "intel_iommu=on" boot time parameter in the Config 1 > > case seemed to help > > "intel_iommu=on" is essential with you're mostly running guests *and* > using device assignment. > Yes. I do understand that... > However, unfortunately, it also has a serious performance penalty for > I/O in *host* processes: > > When intel_iommu=on, Linux (completely unrelated to KVM) adds a new level > of protection which didn't exist without an IOMMU - the network card, which > without an IOMMU could write (via DMA) to any memory location, now is > not allowed - the card can only write to memory locates which the OS > wanted it to write. Theoretically, this can protect the OS against > various kinds of attacks. But what happens now is that every time that > Linux passes a new buffer to the card, it needs to change the IOMMU > mappings. This noticably slows down I/O, unfortunately. > Hmm... So if one were to have a private link setup between two hosts to drive some traffic through between the hosts... then we can't expect to get line rate on that private NIC. Thanks much for your response ! Vinod