From owner-freebsd-net@FreeBSD.ORG Thu Apr 23 23:34:42 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 54B1EB2C for ; Thu, 23 Apr 2015 23:34:42 +0000 (UTC) Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 02F57132B for ; Thu, 23 Apr 2015 23:34:41 +0000 (UTC) Received: by wicmx19 with SMTP id mx19so23192594wic.1 for ; Thu, 23 Apr 2015 16:34:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:content-type:mime-version:subject:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=nJMjjOLJV7FswJ6qymWob0OYTRDVje4IN92FWIO1LlM=; b=XWTE0dhjazo4DOYouOe2NrUjYKh3I7F4ml8TyOOskF4UB61C5ZvQ6Hq5tQMxQnrdHB RqJz50ILqiud8cFD3EFzDTqM3PbIdM0Pth7RTQjKhR6/8zkFieU58/oFZb6rHfzT1IVZ TIdcSvdTfjvPaDyHvQBCaMG99TTc6hmbjB0SfiNTp8TC1Yj5V8jCTl+xYZtTOdrDwS0U pWTKUktL2J5YGXFOxjpg4CTgmJ6CKE8Vw2XsSQx2TELNd3G7qv1GMzJG9FKiF6RpPArW 50elMyuZfY8uLEpR4K1byqs9A+wQpFES+4FU28Q5WiC29F0TwXk1AxfvEj5AOSE69FUo DI3g== X-Received: by 10.194.110.233 with SMTP id id9mr10225052wjb.136.1429832080489; Thu, 23 Apr 2015 16:34:40 -0700 (PDT) Received: from ?IPv6:2a02:a03f:a39:de00:9b8:308d:8797:6d7c? ([2a02:a03f:a39:de00:9b8:308d:8797:6d7c]) by mx.google.com with ESMTPSA id fs9sm14341584wjc.34.2015.04.23.16.34.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 Apr 2015 16:34:39 -0700 (PDT) From: Sydney Meyer X-Google-Original-From: Sydney Meyer Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: IPSec Performance under Xen In-Reply-To: <55397FB3.6080702@yandex.ru> Date: Fri, 24 Apr 2015 01:34:36 +0200 Content-Transfer-Encoding: 7bit Message-Id: References: <55397FB3.6080702@yandex.ru> To: freebsd-net@freebsd.org X-Mailer: Apple Mail (2.2098) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 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, 23 Apr 2015 23:34:42 -0000 Sure.. i'll get back to you.. S. > On Apr 24, 2015, at 01:26, Andrey V. Elsukov wrote: > > On 24.04.2015 01:00, Sydney Meyer wrote: >> Hello, >> >> I have set up 2 VM's under Xen running each one IPSec-Endpoint. >> Everything seems to work fine, but (measured with benchmarks/iperf) >> the performance drops from ~10 Gb/s on a non-IPSec-Kernel to ~200 >> Mb/s with IPSec compiled in, regardless of whether actually using >> IPSec or not. > > Can you test this patch to see the difference? It isn't a fix. It is > just to see how will help avoiding of PCB check. > > --- ip_output.c (revision 281867) > +++ ip_output.c (working copy) > @@ -482,7 +482,7 @@ again: > > sendit: > #ifdef IPSEC > - switch(ip_ipsec_output(&m, inp, &flags, &error)) { > + switch(ip_ipsec_output(&m, NULL, &flags, &error)) { > case 1: > goto bad; > case -1: > > > -- > WBR, Andrey V. Elsukov