System: Linux (Debian)
I would like to hash many large files (1 GB each, ~2 TB total) on my hard drive. However I do not want to spin my entire hard drive just to generate the hashes. Is there any way I can set up a process that will monitor my system memory for the appearance of an unhashed file to be loaded into memory (by other processes for unrelated purposes), and then execute the hashing algorithm while the file is already loaded in memory?
I just want to prevent redundant disk reads.