On 3/28/07, Yaar <yaar@xxxxxxxxx> wrote:
Hi, How can I control the size of the block requests the sendfile() syscall performs against the disk? I'm using sendfile to copy 1M file chunks into a socket. The socket send buffer size is 2M, and I verify that its empty before making the call. Indeed, 1M chunk is being sent, but from iostat, I can tell that the average request size is around 128K. Help will be appreciated. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ
Some questions: - Have you tried to use the TCP_CORK feature? According to the sendpage man page you can use it to fine tune the transmission; - Have you tried to increase the sending and receiving output thru' the SO_SNDBUF and SO_RCVBUF setsockopt parameters? -- Best Regards Alan Menegotto -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ