Re: how to disable readahead

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I am newbie on ext4, I tried the above method to disable readahead, echo 0 > /sys/block/<dev>/queue/read_ahead_kb
> Then I read by 128kB chunk size, ext4 will read the file by 4KB chunk size each time. that means ext4 splits 128KB into 32 4KB to read.
> That's not my expectation.
> Do you know how to still keep and let ext4 read by 128KB in case of disable readahead?
> Thanks.
>
> //bean huo
I guess you're doing buffered IO, have you try to use direct IO?

Cheers,
Jack



[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux