Asking for Help on Seeking to End of File

Ángel González keisial@gmail.com
Thu Jun 5 22:28:00 GMT 2014


On 05/06/14 18:13, Siddhesh Poyarekar wrote:
> The lseek value is rounded on the block size boundary, so a file
> system with smaller block size will tend to have a smaller residual
> read().  The idea there is to buffer the following block so that it is
> faster to read from.  Kernel based prefetch in Linux (readahead) seems
> to make this redundant, so maybe this buffering is not useful anymore.
>
> Siddhesh
Reading at the block-size boundary should be no problem, since the kernel
will have to read the whole block. However, I find very odd that their 
ha server
has a block size of 1 GB (faked by some wrapping layer perhaps?).
Linlin Yan, can you check what is the block size reported for that fs?



More information about the Libc-help mailing list