From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9610161720.AA08025@dcl.MIT.EDU> Date: Wed, 16 Oct 1996 13:20:15 -0400 From: Theodore Y. Ts'o Subject: Re: Linux-2.1.4 In-Reply-To: Date: Wed, 16 Oct 1996 10:18:45 +0300 (EET DST) From: Linus Torvalds Trust me, the new code still _is_ snappier than just about everything. In fact, I can more-or-less guarantee that it cannot be done faster than we do it now (modulus some localized optimizations). But the new code is also _different_ than the old code, and doing loops a byte at a time degraded from just "stupid" (in 2.0.x) to outright "insane" (in 2.1.x). Well, the tty layer code does this all over, mostly to avoid the number of copies that it needed to make --- remember, for the tty code a "byte" is the natural size that you generally want to work with. (For an i386 running at 40MHz, that is the fastest way to do things; I can understand that on an Alpha w/o byte instructions, it might be much more painful.) So will it be faster now to copy everything from userspace into a kernel "bounce buffer" first, instead of fetching things from user space one byte at a time? That seems counter-intuitive, since traditionally the way you get speedups is to *reduce* the number of memory copies while going through a network or tty layer.... - Ted -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null