Re: FreeBSD 7.1 disk performance issue on ESXi 3.5



Sebastiaan van Erk wrote:
Hi,

I want to deploy a production FreeBSD web site (database cluster, apache
cluster, ip failover using carp, etc.), however I'm experiencing painful
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 Ubuntu
8.10-amd64. These are the results I'm getting with dbench <n>:

<n> 1 2 4
freebsd 12.0009 13.6348 12.9402 (MB/s)
linux 376.145 651.314 634.649 (MB/s)

Both virtual machines run dbench 3.04 and the results are extremely
stable over repeated runs.

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.

Attachment: signature.asc
Description: OpenPGP digital signature



Relevant Pages

  • Re: Freebsd vs. linux
    ... The main reason why I consider Linux inferior to FreeBSD is that Linux ... Linus Torvalds originally wrote only the kernel portion of an operating ... I learned only yesterday that Linux does asynchronous disk ...
    (freebsd-questions)
  • Re: Configuration of Grub?
    ... disk is not existing (don't remember the exact ... If I understood right the hdd in Linux translates to ad3 in FreeBSD? ... with the 'hdx' format that Grub uses. ...
    (freebsd-questions)
  • Re: i have linux mandrake
    ... Lets say you have a large enough disk to make you happy - holds ... few GBytes left over to use for FreeBSD. ... If that Linux stuff is ... First you will need something to shrink the Linux slice split up ...
    (freebsd-questions)
  • harddisk not found on 5.4 and 6.0
    ... I'm trying to put FreeBSD on an older machine, that currently has Linux ... the install CD. ... I can't get the kernel to recognize the disk. ...
    (freebsd-questions)
  • Re: Sharing a harddisk between FreeBSD and Linux (Knoppix, Ubuntu)
    ... try FreeBSD as a desktop system too... ... maintain and use a Linux system too. ... I want, at least, use the same swap partition for both (if ... For a start, I've assigned the whole disk to FreeBSD, and let ...
    (comp.unix.bsd.freebsd.misc)