optimizing sendfile

Previous thread: [PATCH 1/2] Make page->private usable in compound pages V1 by Christoph Lameter on Thursday, April 5, 2007 - 3:36 pm. (19 messages)

Next thread: REISER4: fix for reiser4_write_extent by Ignatich on Thursday, April 5, 2007 - 3:42 pm. (35 messages)
From: Yaar Schnitman
Date: Thursday, April 5, 2007 - 3:04 pm

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 being sent, but from iostat, I can tell that the 
average request
size is around 128KB. Are there any kernel configuration variables that 
could change that?

Help will be appreciated.

-

Previous thread: [PATCH 1/2] Make page->private usable in compound pages V1 by Christoph Lameter on Thursday, April 5, 2007 - 3:36 pm. (19 messages)

Next thread: REISER4: fix for reiser4_write_extent by Ignatich on Thursday, April 5, 2007 - 3:42 pm. (35 messages)