Subject: Re: mc* performance patch
To: Tim Kelly <hockey@dialectronics.com>
From: Michael <macallan18@earthlink.net>
List: port-macppc
Date: 01/13/2005 13:01:41
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

> Alright, I found the problem and turned a previously unuseable mc
> interface into a 980KB/s rip roaring 0 packet loss mc interface. The
> problem turned out to be pretty simple and the temporary fix was only
> one line.

>          * allocate memory for receive buffer and mark it non-cacheable
>          * XXX This should use the bus_dma interface, since the buffer
>          * needs to be physically contiguous. However, it seems that
>          * at least on my system, malloc() does allocate contiguous
>          * memory. If it's not, suggest reducing the number of buffers
>          * to 2, which will fit in one 4K page.
>          */

This explains a lot - with my 400MB RAM I'm pretty likely to get 
contiguous memory I guess :)

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBQea3hcpnzkX8Yg2nAQJ19ggAmmaIuCM84yfX1C0qugp4BfWxEOiro0Is
0NCW1iE/EGQBMo5TgF4Cs5S+b0xGSgaHWdTpa844WgklP4E513Q5+mrEmoaqtwE7
RxI4dgzQFsLm/Pzk0CDyCyCupHSqMvlHmCcZdRjbDQ/HkGHOnyqXT6VmkvSO+2gF
0f4rM6y3gtW9O23sUyidsNS23SPfQYXmxBIcIKRuPfHvmlBB3rTUOxHnWCwN9W2L
utSVuSlTlV5OuTcl29IzRAm6aO8uYE54XcfHAw2EqIvTyqhAKZzp+JxN4Nxm7Id7
cmQ0cIhepZMab3MxfAsAjJ00QCn4M4t6DCE3dp0LV40a0UFAz1XMwA==
=Ixqk
-----END PGP SIGNATURE-----