Subject: Re: ide disk performance question on amd64 port
To: rmkml <rmkml@free.fr>
From: Quentin Garnier <cube@cubidou.net>
List: port-amd64
Date: 06/20/2006 22:57:21
--DH4/xewco2zMcht6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jun 20, 2006 at 10:31:09PM +0200, rmkml wrote:
> Hi,
> my test is very simple:
> 1) boot on cdrom netbsd v3 amd64,
>   exit install and launch shell :
>   mount /dev/wd0a /mnt && cd /mnt
>   dd if=3D/dev/zero of=3Dwritefile bs=3D16k count=3D16k
>    29818880 bytes transferred in 24.318 secs (1226206 bytes/sec)
>   rm writefile
>   dd if=3D/dev/zero of=3Dwritefile bs=3D64k count=3D64k
>    17170432 bytes transferred in 11.307 secs (1518566 bytes/sec)
>=20
> 2) boot on cdrom netbsd v3 i386,
>   exit install and launch shell :
>   mount /dev/wd0a /mnt && cd /mnt
>   dd if=3D/dev/zero of=3Dwritefile bs=3D16k count=3D16k
>    268435456 bytes transferred in 4.085 secs (65712473 bytes/sec)
>   rm writefile
>   dd if=3D/dev/zero of=3Dwritefile bs=3D64k count=3D64k
>    4294967296 bytes transferred in 71.731 secs (59876027 bytes/sec)
>=20
> i386 have 10x perf !
>=20
> same disk, just reboot on cdrom amd64/i386 ...
>=20
> anyone have same pb ?
>=20
> dmesg amd64 :
> wd0 at atabus4 drive 0: <ST3200021A>
> wd0: drive supports 16-sector PIO transfers, LBA48 addressing
> wd0: 176 GB, 366247 cyl, 16 head, 63 sec, 512 bytes/sect x 369177306 sect=
ors
> wd0: 32-bit data port
> wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
>=20
> dmesg i386 :
> wd0 at atabus4 drive 0: <ST3200021A>
> wd0: drive supports 16-sector PIO transfers, LBA48 addressing
> wd0: 176 GB, 366247 cyl, 16 head, 63 sec, 512 bytes/sect x 369177306 sect=
ors
> wd0: 32-bit data port
> wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
> wd0(ixpide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using D=
MA)
>=20
> dmesg diff amd64/i386 missing last line on amd64 ! (?)

That's the catch:  amd64's INSTALL doesn't include ixpide(4), so it uses
pciide(4), which is of course suboptimal because it doesn't do DMA.

GENERIC, however, has it, so the problem will disappear as soon as the
system is installed.

I'll add ixpide(4) support to INSTALL.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

--DH4/xewco2zMcht6
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iQEVAwUBRJhhMdgoQloHrPnoAQIAtwf/dYGb0MaksVNviF01ZLNcB+A+BmoRMiU+
v2USMX2f2mok36+JGpIXx+XhJL0IIHxqkCI6S51koDqXX/A9/b8f1AEozUiPI/9g
bO5PBPRB705JVOMdWhobEvUr0kFoVna6Xo59TyFswHUx5UeP+D+Pjt5dZxK7ELfj
GQzvqbFiq8sN79Y7LGJUCPqKMWZIgLMojoGCqnrxMSGMQ+qVMlX5qk06iI4igFi7
skyfbSRlmH4gggSsnZ8tCieDzmLKSkABTN5as6f0RvVUPcr5IgOpwPPfv1Iqh4kC
qv3Nls7an+BJjgPENdIXWFOcH7XL1cTyRyBxi+D5JFRvsq5IY9EuQQ==
=/tmt
-----END PGP SIGNATURE-----

--DH4/xewco2zMcht6--