Страница 1 из 1

Небольшой тест скорости работы FreeBSD на разных виртуалках

Добавлено: 2009-04-27 10:08:37
terminus
http://ivoras.sharanet.org/blog/tree/20 ... marks.html
Some virtualization benchmarks

I did some benchmarks of the three currently most prominent virtualization platforms: VMWare ESX 3.5 U3, Citrix XenServer 5.0 U2, Microsoft Hyper-V 2008 R2 on three 64-bit operating systems: Ubuntu 8.10, FreeBSD 7.1 and Windows Server 2008 R2 beta. The results are mostly better then I thought they will be. Especially suprising was FreeBSD's more than decent performance which actually lead the others in one benchmark.
Keywords: Virtualization, VMWare, ESX, ESXi, Xen, XenServer, Hyper-V

The benchmark was serving PHP pages with Apache, with PHP as FastCGI on Linux and FreeBSD and as mod_php on Windows. There are 3x3 combinations, though I couldn't get Windows 2008 to work as a guest under Xen, so instead there's Linux in paravirtualization (PV) mode. All other combinations use full virtualization, backed by CPU extensions. The host was 2x4-core Xeon 5405 @ 2 GHz and 16 GB RAM, but the guests were always configured with only 4 CPUs and 4 GB RAM. Of course, the machines were configured and benchmarked separately, with only one VM running at any one time.

The PHP test application consisted of some 50,000 lines with 5 include files and outputed content between 1 kB and 5 kB. No PHP accelerators and caches were used. Benchmarks were done with siege by passing it a list of URLs (a population of 5000 references to input files processed by the script, very reproducible). Runs were always done with warm file system caches. The client was connected by giagbit Etheret via a patch cable to the server.

Apache was always threaded - the worker MPM was used on Linux and FreeBSD and the native thread model on Windows. HTTP logging was disabled.

Изображение

can't really explain it, but the wholly-virtualized FreeBSD machine under ESXi was consistently almost as fast as the paravirtualized Xen Linux on this benchmark. Other benchmarks I did did not show such close performance, but FreeBSD still did very good. For example, a similar static HTML page benchmark showed similar trends, with Xen-Linux-PV peaking at 7400 TPS and Xen-FreeBSD peaking at 5600 TPS, (two best results of that test) between 10 and 20 users, but both settled at 5100 TPS with 50 users. Disk performance was decent, but network performance was bad on anything but VMWare.

Since ESXi is now free, it was a clear winner of the test.

Re: Небольшой тест скорости работы FreeBSD на разных виртуалках

Добавлено: 2009-04-27 10:39:38
ProFTP
пачт для ограничения CPU и RAM в jail пишется в 50-100 строк, и xen нафига нужна?

Re: Небольшой тест скорости работы FreeBSD на разных виртуалках

Добавлено: 2009-04-27 17:49:09
hizel
почему этих 50-100 строк нет в продакшене? :Search:

Re: Небольшой тест скорости работы FreeBSD на разных виртуалках

Добавлено: 2009-04-27 19:13:38
InventoR
А смысл, это очень простой патч, его сможет написать любой новичок без знания программирования.

Re: Небольшой тест скорости работы FreeBSD на разных виртуалках

Добавлено: 2009-04-28 4:18:34
ProFTP
hizel писал(а):почему этих 50-100 строк нет в продакшене? :Search:
не знаю, может тестируется
в продакшене оно есть используется в VDS_Meneger

а почему нету патча чтобы mod_php запускать через SuExec, в Linux для Apache 2.0 есть

Re: Небольшой тест скорости работы FreeBSD на разных виртуалках

Добавлено: 2009-04-29 19:00:11
Alex Keda
ProFTP писал(а):а почему нету патча чтобы mod_php запускать через SuExec, в Linux для Apache 2.0 есть
ненужно никому
кому нужно - написали

Re: Небольшой тест скорости работы FreeBSD на разных виртуалках

Добавлено: 2009-05-05 16:37:17
Гость
InventoR писал(а):А смысл, это очень простой патч, его сможет написать любой новичок без знания программирования.
Ссылку на патч or gay!