On 14 Jan 2001, Linus Torvalds wrote: > That's not the point of sendfile(). The point of sendfile() is to be > faster than the _combination_ of: > addr = mmap(file, ...len...); > write(fd, addr, len); > or > read(file, userdata, len); > write(fd, userdata, len); And boy is it ever. It blows both away by more than double. Not only that the mmap one grinds my box into the ground with swapping, while the sendfile() case you can't even tell its running except that the drive is going like mad. > Does anybody but apache actually use it? I wonder why samba doesn't use it. -Dan - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: Is sendfile all that sexy? Ingo Molnar
- Re: Is sendfile all that sexy? Linus Torvalds
- Re: Is sendfile all that sexy? Ingo Molnar
- Re: Is sendfile all that sexy? Gerhard Mack
- Re: Is sendfile all that sexy? Linus Torvalds
- Re: Is sendfile all that sexy? J Sloan
- Re: Is sendfile all that sexy? H. Peter Anvin
- Re: Is sendfile all that sexy? Michael Peddemors
- Re: Is sendfile all that sexy? Florian Weimer
- RE: Is sendfile all that sexy? Tristan Greaves
- Re: Is sendfile all that sexy? Dan Hollis
- Re: Is sendfile all that sexy? Jonathan Thackray
- Re: Is sendfile all that sexy? Matti Aarnio
- Re: Is sendfile all that sexy? H. Peter Anvin
- Re: Is sendfile all that sexy? dean gaudet
- Re: Is sendfile all that sexy? Jonathan Thackray
- Re: Is sendfile all that sexy? Linus Torvalds
- [patch] sendpath() support, 2.4.0-test3... Ingo Molnar
- Re: [patch] sendpath() support, 2.... dean gaudet
- Re: [patch] sendpath() support, 2.... Linus Torvalds
- 'native files', 'object fingerprin... Ingo Molnar