Messages in this thread | | | Date | Fri, 15 Jul 2005 12:48:08 +0200 | From | Jan Blunck <> | Subject | [PATCH] generic_file_sendpage |
| |
This is a generic sendpage() for regular files.
With generic_file_sendpage() it is possible to use sendfile() on file targets, instead of only sending data to sockets.
This implementation is basically an extension of Joern's original patch (http://marc.theaimsgroup.com/?l=linux-kernel&m=109455958522766&w=2) but is honoring signals. I also removed some unnecessary code: no IOVs, no AIO.
qemu-debian:/home/root/sendfile_file# time ./fastcp 100mb test real 0m11.037s user 0m0.010s sys 0m7.600s
qemu-debian:/home/root/sendfile_file# time cp 100mb test real 0m13.342s user 0m0.400s sys 0m9.080s
Comments please, Jan
| |