Subject: Re: Massive read/write performance problems with 3.0
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Tonnerre LOMBARD <tonnerre@bsdprojects.net>
List: port-amd64
Date: 05/09/2006 07:31:35
--Kynn+LdAwU9N+JqL
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Salut,

On Mon, May 08, 2006 at 01:23:22PM +0200, Manuel Bouyer wrote:
> Can you try the attached program ? It will benchmark the IDE bus's bandwi=
dth:
> ./tst /dev/rwd0d 10000
>=20
> it should run for a few seconds to give usefull results; if it doesn't
> use something larger than 10000

I added the O_SYNC parameter to your open() and it sanitized the output
quite a bit:

vic# ./tst /dev/rwd0d 10000                                                =
    =20
5409749 us, 115.532162 MB/s                                                =
    =20
vic#=20

Bonnie gives the following output:

    -------Sequential Output-------- ---Sequential Input-- --Random--
    -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---
 MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  /sec %CPU
256  4802  3.5  5217  1.8  6430  1.8 105399 75.6 627604 100.0 5970.5 31.6

The worst thing is that sometimes disk I/O operations hang for quite a
while during heavy disk I/O (especially when the I/O takes place from two
or more programs, so it seems that the I/O bandwidth isn't really
distributed equally). I might bring up more test cases on that tonight.

It looks to me that either the VM can't stand much parallel I/O or that
there is a speed issue in the file system layer.

				Tonnerre

--Kynn+LdAwU9N+JqL
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)

iQIVAwUBRGApNu1mMGan/TnWAQKTHxAAlX8niB12cfFIpcTIKVbb6wGKxoHYpbEv
zPXmh5lLNCPJRXQmMwn5qkpKDylecT0MdwBQS69JFDpbxZZzo8kjsHcozgpje8jc
6PziMjy4KXcQPmSJifbmBJvQHLbt+hF4KWdGWKz8IJNspZFyciFYShi9WlnyIi5E
swIdj3I96y0KmhUxRRyjw8aCnzD+25h5REyQJ7OWBXGqRtsCVoRK2TwHCbFizBls
YLNzP5LC40TeFre5JI9EN3ERniVFRozx1ijsvN2/7Tf6ESpr8hz4HpeRCQWnsYA4
V7Ddmol0lU5978Wrr1V+Ejo4OXSbtYmIWVJdlaFR536g0zFN5ehAgbyascJY/TiL
/ca3aPU22wHlwY234dqP0V7q+VyI3vJum3AoORLANCOtqR513Bqx5A/PPR9NPfeD
Hi3KYdmRBUHeXVqvSsg0AdIxxjrOrIwrO9XldjLg7Bae9FaSFUrdUufYCSHNBrNp
t17SklQ1VHUW1Ud41yMqShaiV0Ko6gvtL6DbkScA0doYasqDQHxI42Y8u70+4rxM
mcyOzH/tHsIhMzFFCYBcylNQTyqsN/pPFPmvUjNEYzPBRZMwFNWOr0dDx30N0JGs
iDtdM7b1mN/LIQjrSzlyQ3Gh+wxEz+hXCaCYUnRilNIiUZy7Dx1OMrNnMTPMyhkm
uNkgorFsTjg=
=YnwX
-----END PGP SIGNATURE-----

--Kynn+LdAwU9N+JqL--