How to drop cache for part of file?

218 views Asked by At

Assuming I have read a large file (10GB) to memory (with 32GB size) so the memory holds all the 10GB in page cache, and now I want to drop the first 1GB out of the cache but retain the others. Is it achievable under Linux?

I have tried dd introduced here but it doesn't work, although it can drop cache for the whole file.

0

There are 0 answers