Date: Thu, 28 Nov 2002 01:11:16 +0100 (CET) From: Tomas Pluskal <plusik@pohoda.cz> To: Nick Hibma <n_hibma@van-laarhoven.org> Cc: "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org> Subject: Re: umass driver speed Message-ID: <20021128010728.K395-200000@localhost.localdomain> In-Reply-To: <20021127163541.F99600-100000@uitsmijter.van-laarhoven.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-1294470805-1038442276=:395 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 27 Nov 2002, Nick Hibma wrote: > [pats Joe on the head] Well done! What do you mean by this ? > Well, the only sections that are needed are the ones that relate to > uhci_{add,rem}_loop. Do a diff between RELENG_4 and HEAD and filter out > the stuff that you would need to implmenet the bandwidth reclamation. Well, I tried to make a patch against -STABLE, I am sending it as attachment. I am not sure if I did things right, but it works (I mean doesn't crash). However, the speed has not changed: # dd if=/dev/da0s1 of=/tmp/data bs=65536 count=3 3+0 records in 3+0 records out 196608 bytes transferred in 3.256551 secs (60373 bytes/sec) Tomas > > > It seems to me that it is present in -CURRENT, > > isn't it ? --0-1294470805-1038442276=:395 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="uhci.patch" Content-Transfer-Encoding: BASE64 Content-ID: <20021128011116.Y395@localhost.localdomain> Content-Description: Content-Disposition: attachment; filename="uhci.patch" ZGlmZiAtdSBzdGFibGUvdWhjaS5jIHZlcnplMi91aGNpLmMNCi0tLSBzdGFi bGUvdWhjaS5jCVdlZCBOb3YgIDYgMjE6MjM6NTAgMjAwMg0KKysrIHZlcnpl Mi91aGNpLmMJVGh1IE5vdiAyOCAwMDozNzoyMSAyMDAyDQpAQCAtNzksNiAr NzksOSBAQA0KICNpbmNsdWRlIDxkZXYvdXNiL3VoY2lyZWcuaD4NCiAjaW5j bHVkZSA8ZGV2L3VzYi91aGNpdmFyLmg+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G51bWJlciBvZiBRSHMgdGhhdCB3YW50 cyBsb29waW5nICovDQogDQogCXVoY2lfc29mdF90ZF90ICpzY19mcmVldGRz OwkvKiBURCBmcmVlIGxpc3QgKi8NCiAJdWhjaV9zb2Z0X3FoX3QgKnNjX2Zy ZWVxaHM7CS8qIFFIIGZyZWUgbGlzdCAqLw0K --0-1294470805-1038442276=:395-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021128010728.K395-200000>