Skip to content

How to prevent fio from touching the page cache? #1731

Answered by axboe
evopen asked this question in Q&A
Discussion options

You must be logged in to vote

Forgot to mention, there are always filesystems (like btrfs) that are broken in how they deal with O_DIRECT async reads and just do buffered IO for that if it's larger than a page... This could be another explanation for why there's page cache contents for the inode afterwards. In any case, this isn't really something fio can control or manage - it just does O_DIRECT and if the kernel decides to do buffered IO for whatever reason, then fio doesn't even know about it.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@evopen
Comment options

Answer selected by evopen
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants