optimizing sendfile

2007-04-05 Thread Yaar Schnitman
Hi, How can I control the size of the block requests the sendfile() syscall performs against the disk? I'm using sendfile (on a 2.6.18 kernel) to copy 1M file chunks into a socket. The socket send buffer size is 2MB, and I verify that its empty before making the call. Indeed, 1M chunk is

optimizing sendfile

2007-04-05 Thread Yaar Schnitman
Hi, How can I control the size of the block requests the sendfile() syscall performs against the disk? I'm using sendfile (on a 2.6.18 kernel) to copy 1M file chunks into a socket. The socket send buffer size is 2MB, and I verify that its empty before making the call. Indeed, 1M chunk is