From: "Tvrtko A. =?iso-8859-2?q?Ur=B9ulin?=" Subject: PHY vs. VD benchmark Date: Tue, 17 Feb 2004 16:01:38 +0100 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: <200402171601.38758.tvrtko@croadria.com> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_SziMAY82AQMZl+H" Return-path: Content-Disposition: inline Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org --Boundary-00=_SziMAY82AQMZl+H Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Content-Disposition: inline I did some quick benchmarks in case somebody is interested. Few words about the setup: DOM1 64Mb RAM, vd:1 (4Gb on real /dev/sdb) DOM2 64Mb RAM, sda1 (4Gb mapped from real /dev/sdc5) sdb is configured with only two VD's (4Gb root + 128Mb swap) so that in both cases partitions lay at the beginning of the physical disk. I suspect at least, because I don't know how VD code allocates space. sdc also has only two phy partitions with the same setup. Both have identical root fs-s. Single run is done while other domains sit idle. Concurrent run is both domain running bonnie++, well, concurrently :) It seems that phy is significantly faster than vd, and that concurrent i/o load on separate disks doesn't hurt performace. Detailed log attached. --Boundary-00=_SziMAY82AQMZl+H Content-Type: text/x-log; charset="iso-8859-2"; name="bonnie-phy-concurrent.log" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bonnie-phy-concurrent.log" xen:~ # bonnie++ -d /tmp -s 256 -u nobody Using uid:65534, gid:65533. Writing with putc()...done Writing intelligently...done Rewriting...done Reading with getc()...done Reading intelligently...done start 'em...done...done...done... Create files in sequential order...done. Stat files in sequential order...done. Delete files in sequential order...done. Create files in random order...done. Stat files in random order...done. Delete files in random order...done. Version 1.01d ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP xen 256M 59542 57 67332 23 14097 3 41517 25 61763 8 246.2 0 ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 3052 95 +++++ +++ +++++ +++ 3492 98 +++++ +++ 12457 100 xen,256M,59542,57,67332,23,14097,3,41517,25,61763,8,246.2,0,16,3052,95,+++++,+++,+++++,+++,3492,98,+++++,+++,12457,100 --Boundary-00=_SziMAY82AQMZl+H Content-Type: text/x-log; charset="iso-8859-2"; name="bonnie-vd-single.log" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bonnie-vd-single.log" xen:~ # bonnie++ -d /tmp -s 256 -u nobody Using uid:65534, gid:65533. Writing with putc()...done Writing intelligently...done Rewriting...done Reading with getc()...done Reading intelligently...done start 'em...done...done...done... Create files in sequential order...done. Stat files in sequential order...done. Delete files in sequential order...done. Create files in random order...done. Stat files in random order...done. Delete files in random order...done. Version 1.01d ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP xen 256M 37163 26 39026 10 15921 4 38466 24 37099 3 235.2 0 ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 3224 98 +++++ +++ +++++ +++ 3621 99 +++++ +++ 11057 95 xen,256M,37163,26,39026,10,15921,4,38466,24,37099,3,235.2,0,16,3224,98,+++++,+++,+++++,+++,3621,99,+++++,+++,11057,95 --Boundary-00=_SziMAY82AQMZl+H Content-Type: text/x-log; charset="iso-8859-2"; name="bonnie-phy-single.log" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bonnie-phy-single.log" xen:~ # bonnie++ -d /tmp -s 256 -u nobody Using uid:65534, gid:65533. Writing with putc()...done Writing intelligently...done Rewriting...done Reading with getc()...done Reading intelligently...done start 'em...done...done...done... Create files in sequential order...done. Stat files in sequential order...done. Delete files in sequential order...done. Create files in random order...done. Stat files in random order...done. Delete files in random order...done. Version 1.01d ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP xen 256M 54668 40 54367 13 27525 6 61607 34 65226 5 249.8 0 ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 3340 99 +++++ +++ +++++ +++ 3574 99 +++++ +++ 10873 99 xen,256M,54668,40,54367,13,27525,6,61607,34,65226,5,249.8,0,16,3340,99,+++++,+++,+++++,+++,3574,99,+++++,+++,10873,99 --Boundary-00=_SziMAY82AQMZl+H Content-Type: text/x-log; charset="iso-8859-2"; name="bonnie-vd-concurrent.log" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bonnie-vd-concurrent.log" xen:~ # bonnie++ -d /tmp -s 256 -u nobody Using uid:65534, gid:65533. Writing with putc()...done Writing intelligently...done Rewriting...done Reading with getc()...done Reading intelligently...done start 'em...done...done...done... Create files in sequential order...done. Stat files in sequential order...done. Delete files in sequential order...done. Create files in random order...done. Stat files in random order...done. Delete files in random order...done. Version 1.01d ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP xen 256M 38234 39 37377 8 14809 4 37686 23 39310 4 224.5 0 ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 3407 97 +++++ +++ +++++ +++ 3514 99 +++++ +++ 10478 97 xen,256M,38234,39,37377,8,14809,4,37686,23,39310,4,224.5,0,16,3407,97,+++++,+++,+++++,+++,3514,99,+++++,+++,10478,97 --Boundary-00=_SziMAY82AQMZl+H-- ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click