by the8472 · 7y ago · 0 comments
fadvise provides the same for file descriptors. some tools such as rsync make use of it to prevent clobbering the page cache when streaming files.
heck, if I were still a phd student, I'd want to run performance numbers on this in many different scenarios and see how performance behaves. feel like there could be a paper here.
And if you only do it in a container you can also limit the page cache size of the container to avoid impacting the other workloads.