Feh / nocache

minimize caching effects
BSD 2-Clause "Simplified" License
554 stars 53 forks source link

Mention no help for huge files #49

Open rdiez opened 3 years ago

rdiez commented 3 years ago

nocache only calls posix_fadvise( POSIX_FADV_DONTNEED ) when the file descriptor is closed, and that is too late if the file is huge and has already been read.

This limitation should be mentioned in the README, because it effectively renders nocache useless for big files.

This guy was actually the one that found out about it: https://sebastian.marsching.com/blog/archives/161-Design-flaws-of-the-Linux-page-cache.html