From owner-freebsd-xen@freebsd.org Mon Aug 15 15:56:08 2016 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 CAFC1BBAE17 for ; Mon, 15 Aug 2016 15:56:08 +0000 (UTC) (envelope-from rainer@ultra-secure.de) Received: from connect.ultra-secure.de (connect.ultra-secure.de [88.198.71.201]) by mx1.freebsd.org (Postfix) with ESMTP id 416C917DC for ; Mon, 15 Aug 2016 15:56:07 +0000 (UTC) (envelope-from rainer@ultra-secure.de) Received: (Haraka outbound); Mon, 15 Aug 2016 17:54:55 +0200 Authentication-Results: connect.ultra-secure.de; auth=pass (login); spf=none smtp.mailfrom=ultra-secure.de Received-SPF: None (connect.ultra-secure.de: domain of ultra-secure.de does not designate 127.0.0.10 as permitted sender) receiver=connect.ultra-secure.de; identity=mailfrom; client-ip=127.0.0.10; helo=connect.ultra-secure.de; envelope-from= Received: from connect.ultra-secure.de (webmail [127.0.0.10]) by connect.ultra-secure.de (Haraka/2.6.2-toaster) with ESMTPSA id 057937A9-93D9-4763-BB2F-9EF358C438BE.1 envelope-from (authenticated bits=0) (version=TLSv1/SSLv3 cipher=AES256-SHA verify=NO); Mon, 15 Aug 2016 17:54:53 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 15 Aug 2016 17:54:52 +0200 From: rainer@ultra-secure.de To: freebsd-xen@freebsd.org Subject: Is it me or is FreeBSD slower on Xen than Linux? Message-ID: X-Sender: rainer@ultra-secure.de User-Agent: Roundcube Webmail/1.2.0 X-Haraka-GeoIP: --, , NaNkm X-Haraka-GeoIP-Received: X-Haraka-p0f: os="undefined undefined" link_type="undefined" distance=undefined total_conn=undefined shared_ip=Y X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on spamassassin X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Haraka-Karma: score: 6, good: 12, bad: 0, connections: 12, history: 12, pass:all_good, relaying X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.22 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: Mon, 15 Aug 2016 15:56:08 -0000 Hi, I've got a problem. For a customer, I run a VM in Xen that should perform a certain task in PHP (written using the ZendFrameWork). That task takes about 18-20 seconds on FreeBSD 10.3 amd64, MariaDB 5.5.0, php 5.5.37 in a VM that has 8 vCPUs and 16GB of memory The "reference" server that the customer uses is somewhere else and manages to perform the same task in 3s. I've tried this with FreeBSD 10.3, PHP7.0 and MariaDB 10.1 and it takes about 9s. I've tried it on physical hardware with 10.3, PHP5.5, MariaDB 5.5 and it also takes about 9s (that machine hosts a load of other sites but has lot of cores and memory available). Then, I've installed an Ubuntu 14 VM in XenServer. It comes with PHP5.5 and MariaDB 5.5 by default. It's VM with 2vCPUs and 8GB RAM. There, the script take about 9s, too (just as if it was running on physical FreeBSD). So, is this expected? Did I do something wrong? We don't run XenServer directly, but use it as part of an Apache CloudStack "Private Cloud". Version is 6.5 SP-something (will have to ask if that is important). The template I use for FreeBSD installation I created myself, by installing from an ISO and selection "FreeBSD 10" as OS. Originally, it was using ZFS for the database-directory, but I moved that to UFS (didn't really lead to a performance break-through, though). What else can I do? Best Regards, Rainer