Changes the writethrough_max_io_mb and readcache_max_io_mb
params to check for IO size >= max_io_mb instead of > max_io_mb
when deciding to bypass cache.
Read/write IOs that are 8MiB in size should bypass the pagecache
on the OSTs, rather than requiring IOs that are slightly larger
than this. 8MiB is enough to submit 1MiB to each HDD spindle in
an 8+2 RAID6, and caching these writes on the OSS is not helping.
Test-Parameters: trivial
Fixes:
3043c6f189 ("LU-12071 osd-ldiskfs: bypass pagecache if requested")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Iae435f5b99e2e8bc6a9458fedad65a81c2853350
* served bypassing pagecache unless already cached */
unsigned long long od_readcache_max_filesize;
- /* reads > od_readcache_max_iosize will be
+ /* reads >= od_readcache_max_iosize will be
* served bypassing pagecache unless already cached */
unsigned long od_readcache_max_iosize;
- /* writes > od_writethough_max_iosize will be
+ /* writes >= od_writethough_max_iosize will be
* served bypassing pagecache unless already cached */
unsigned long od_writethrough_max_iosize;
cache = false;
break;
}
- if (iosize > osd->od_writethrough_max_iosize) {
+ if (iosize >= osd->od_writethrough_max_iosize) {
cache = false;
break;
}
cache = false;
break;
}
- if (iosize > osd->od_readcache_max_iosize) {
+ if (iosize >= osd->od_readcache_max_iosize) {
cache = false;
break;
}