From owner-freebsd-performance@FreeBSD.ORG Tue Feb 10 14:05:06 2009 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81D5C1065679 for ; Tue, 10 Feb 2009 14:05:06 +0000 (UTC) (envelope-from gofp-freebsd-performance@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 080FA8FC1B for ; Tue, 10 Feb 2009 14:05:05 +0000 (UTC) (envelope-from gofp-freebsd-performance@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LWtET-0006pD-Qm for freebsd-performance@freebsd.org; Tue, 10 Feb 2009 14:05:01 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Feb 2009 14:05:01 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Feb 2009 14:05:01 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-performance@freebsd.org From: Ivan Voras Date: Tue, 10 Feb 2009 15:04:42 +0100 Lines: 63 Message-ID: References: <499165F3.6050803@sebster.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig63E293BDE8E85395F4BAC886" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.19 (X11/20090105) In-Reply-To: <499165F3.6050803@sebster.com> X-Enigmail-Version: 0.95.0 Sender: news Subject: Re: FreeBSD 7.1 disk performance issue on ESXi 3.5 X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2009 14:05:10 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig63E293BDE8E85395F4BAC886 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sebastiaan van Erk wrote: > Hi, >=20 > I want to deploy a production FreeBSD web site (database cluster, apach= e > cluster, ip failover using carp, etc.), however I'm experiencing painfu= l > disk I/O throughput problems which currently does not make the above > project viable. I've done some rudimentary benchmarking of two > identically configured virtual machines (2 VCPUs, 512MB memory, 8GB > disk) and installed one with FreeBSD 7.1-amd64 and one with Linux Ubunt= u > 8.10-amd64. These are the results I'm getting with dbench : >=20 > 1 2 4 > freebsd 12.0009 13.6348 12.9402 (MB/s) > linux 376.145 651.314 634.649 (MB/s) >=20 > Both virtual machines run dbench 3.04 and the results are extremely > stable over repeated runs. >=20 > The virtual hardware detected by the FreeBSD machine is as follows: > Does anybody know how I can get proper performance for the drive under > ESXi? VMWare has many optimizations for Linux that are not used with FreeBSD. VMI, for example, makes the Linux guest paravirtualized, and then there are special drivers for networking, its vmotion driver (this one probably doesn't contribute to performance much), etc. and Linux is in any case much better tested and supported. If VMWare allows, you may try changing the type of the controller (I don't know about ESXi but VMWare Server supports LSI or Buslogic SCSI emulation) or switch to ATA emulation and try again. A generic optimization is to reduce kern.hz to something like 50 but it probably won't help your disk performance. As for unixbench, you need to examine and compare each microbenchmark result individually before drawing a conclusion. --------------enig63E293BDE8E85395F4BAC886 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJkYmBldnAQVacBcgRAj+sAJ9El5B5mbejo1c6iRuGXyvLbXgBagCdG/jL BnusTr4XMO023Lxyp3YdFvA= =DezZ -----END PGP SIGNATURE----- --------------enig63E293BDE8E85395F4BAC886--