From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199610161439.OAA01600@linux.reo.dec.com> Date: Wed, 16 Oct 1996 19:58:56 +0100 (MET) From: Ingo Molnar Subject: Re: Linux-2.1.4 In-Reply-To: <9610161720.AA08025@dcl.MIT.EDU> On Wed, 16 Oct 1996, Theodore Y. Ts'o wrote: > 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.... i think you can do something like this: if (exception()) { printk("this is a test message in the tty exception handler"); return -EFAULT; } byte_by_byte fetching and tty logic; end_exception(); isnt it so, that only the "ordinary" memcpy_from_fs is "penaltized" by installing the exception handler. If you know that you want do fetch bytes from user-space [in a loop], then you can "put the exception handler installation code outside the loop". hope i got it right ... -- mingo -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null