7 ms·
Followup quizz: A file is held open read only by a process, and then you delete the file. Under memory pressure and without swap, can Linux evict those pages t
by tux3 3d ago
Followup quizz:
A file is held open read only by a process, and then you delete the file. Under memory pressure and without swap, can Linux evict those pages to reclaim memory?
- ButlerianJihad 3d agoThe file's blocks exist in the filesystem. "Those pages" just refers to the ordinary buffer cache for any other disk-based file. No cached pages are necessary to hold open a file on disk.
- tux3 3d agoCorrect! It's still an inode, even without a path.