From owner-freebsd-xen@freebsd.org Fri Dec 25 15:13:08 2015 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C6004A51158 for ; Fri, 25 Dec 2015 15:13:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B78DB1B28 for ; Fri, 25 Dec 2015 15:13:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id tBPFD8Y4086156 for ; Fri, 25 Dec 2015 15:13:08 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-xen@FreeBSD.org Subject: [Bug 154428] [xen] xn0 network interface and PF - Massive performance drop Date: Fri, 25 Dec 2015 15:13:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-xen@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Dec 2015 15:13:08 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=154428 --- Comment #22 from commit-hook@freebsd.org --- A commit references this bug: Author: kp Date: Fri Dec 25 15:12:12 UTC 2015 New revision: 292731 URL: https://svnweb.freebsd.org/changeset/base/292731 Log: pf: Fix TSO issues In certain configurations (mostly but not exclusively as a VM on Xen) pf produced packets with an invalid TCP checksum. The problem was that pf could only handle packets with a full checksum. The FreeBSD IP stack produces TCP packets with a pseudo-header checksum (only addresses, length and protocol). Certain network interfaces expect to see the pseudo-header checksum, so they end up producing packets with invalid checksums. To fix this stop calculating the full checksum and teach pf to only update TCP checksums if TSO is disabled or the change affects the pseudo-header checksum. PR: 154428, 193579, 198868 Sponsored by: RootBSD Changes: stable/9/sys/contrib/pf/net/pf.c stable/9/sys/contrib/pf/net/pf_ioctl.c stable/9/sys/contrib/pf/net/pf_norm.c stable/9/sys/contrib/pf/net/pfvar.h -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-xen@freebsd.org Fri Dec 25 15:51:39 2015 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EC4ADA51CB0 for ; Fri, 25 Dec 2015 15:51:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D91D2178A for ; Fri, 25 Dec 2015 15:51:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id tBPFpdgT072412 for ; Fri, 25 Dec 2015 15:51:39 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-xen@FreeBSD.org Subject: [Bug 154428] [xen] xn0 network interface and PF - Massive performance drop Date: Fri, 25 Dec 2015 15:51:39 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: kp@freebsd.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: mfc-stable9+ mfc-stable10+ X-Bugzilla-Changed-Fields: assigned_to flagtypes.name cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Dec 2015 15:51:40 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=154428 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-xen@FreeBSD.org |kp@freebsd.org Flags| |mfc-stable9+, mfc-stable10+ CC| |freebsd-xen@FreeBSD.org --- Comment #23 from Kubilay Kocak --- Assign to committer that's taking care of it -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. From owner-freebsd-xen@freebsd.org Sat Dec 26 14:34:19 2015 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 76775A520E8; Sat, 26 Dec 2015 14:34:19 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (moon.peach.ne.jp [203.141.148.98]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2714C1AB7; Sat, 26 Dec 2015 14:34:18 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id AEDB750F2B; Sat, 26 Dec 2015 23:26:26 +0900 (JST) Received: from artemis (unknown [172.18.0.21]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by moon.peach.ne.jp (Postfix) with ESMTPSA id 81AB350F29; Sat, 26 Dec 2015 23:26:26 +0900 (JST) Message-ID: <86DF039090BD474AA2CB2795F6C7A0C7@ad.peach.ne.jp> From: "Daisuke Aoyama" To: Cc: Subject: Xen/dom0/FreeBSD + NAS4Free WebGUI. Date: Sat, 26 Dec 2015 23:26:27 +0900 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_001E_01D14034.D7E410A0" X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8117.416 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8117.416 X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Dec 2015 14:34:19 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_001E_01D14034.D7E410A0 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; reply-type=original Content-Transfer-Encoding: 7bit Hi all, I'm creating NAS4Free dom0 edition. This is simple wrapper of Xen/dom0/FreeBSD. You can upgrade by same way of NAS4Free. You can manage HDD, ZFS, iSCSI target, NFS share by same way of NAS4Free. You can manage DomU(VM) via WebGUI. Japanese blog: http://shell.peach.ne.jp/aoyama/archives/3149 http://shell.peach.ne.jp/aoyama/archives/3135 NAS4Free dom0 topic in English: http://forums.nas4free.org/viewtopic.php?f=17&t=10028 Latest download: http://www.peach.ne.jp/archives/nas4free/test/2244-dom0/ How to install: 1.Download LiveCD iso image. 2.Burn to CD/DVD-RW blank disc. 3.Boot from it. (if your server don't have an optical drive, please use an external USB optical drive) 4.Install to USB Flash drive (2GB or more) from menu #9. 5.Reboot the server after ejecting CD/DVD media. How to upgrade: 1.Navigate to System|Firmware in global menu from web browser. 2.Click "Enable Firmware Update". 3.Select NAS4Free-dom0-embedded-*.img.xz. (don't decompress the image) 4.Click "Upgrade Firmware". Note: At least you need a bridge interface before using. Please create it from Network|Interface Management|Bridge. You can change boot parameters from System|Advanced|loader.conf. If you are interested in the xl.cfg, it is created in /usr/local/etc/xen/vm-.cfg. Known issues: uuid generation of ports/sysutils/xen-tools is broken. You cannot control by UUID. (quick hack patch is attached this mail) xnb device performance is terrible. (it eats 100% CPU on intr while transferring via bridged 10GbE) ---------------------------------------------------------------------- If you don't know about NAS4Free, here is the key feature of NAS4Free: multiple architecture image for amd64, i386, rpi, rpi2, odroid-c1. running on memory disk. (no write access on boot device) minimum memory requirement is 512MB. single configuration file. (except extra service like vbox, syncthing) one click disk import. (easy hardware switchable) For more, please visit: http://www.nas4free.org/ ---------------------------------------------------------------------- Enjoy Xen dom0 and NAS4Free collaboration! Thanks, -- Daisuke Aoyama ------=_NextPart_000_001E_01D14034.D7E410A0 Content-Type: application/octet-stream; name="extra-patch-tools_libxl_xl_cmdimpl.c-n4f" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="extra-patch-tools_libxl_xl_cmdimpl.c-n4f" --- tools/libxl/xl_cmdimpl.c.orig 2015-11-03 18:11:18.000000000 +0900=0A= +++ tools/libxl/xl_cmdimpl.c 2015-12-20 01:09:26.172162000 +0900=0A= @@ -35,6 +35,9 @@=0A= #include =0A= #include =0A= #include =0A= +#ifdef __FreeBSD__=0A= +#include =0A= +#endif=0A= =0A= #include "libxl.h"=0A= #include "libxl_utils.h"=0A= @@ -978,6 +981,15 @@=0A= }else{=0A= libxl_uuid_generate(&c_info->uuid);=0A= }=0A= +#ifdef __FreeBSD__=0A= + /*=0A= + * don't want little endian as raw data at this point=0A= + * sys/uuid.h uses uint32_t and uint16_t but libxl_uuid expects = uint8_t stream=0A= + */=0A= + c_info->uuid.uuid.time_low =3D htobe32(c_info->uuid.uuid.time_low);=0A= + c_info->uuid.uuid.time_mid =3D htobe16(c_info->uuid.uuid.time_mid);=0A= + c_info->uuid.uuid.time_hi_and_version =3D = htobe16(c_info->uuid.uuid.time_hi_and_version);=0A= +#endif=0A= =0A= xlu_cfg_get_defbool(config, "oos", &c_info->oos, 0);=0A= =0A= ------=_NextPart_000_001E_01D14034.D7E410A0--