This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Asking for Help on Seeking to End of File


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]