|TIFF and LibTiff Mail List Archive|
LibTiff Mailing List
2016.01.29 14:46 "Re: [Tiff] OpenMP enabled libtiff", by Bob Friesenhahn
It would not be true swapping or paging-out (actually, there could be some paging out to swap), but there will be memory pressure since memory mapping behaves as a cache. The file data is still in memory (by default) after the file has been unmapped and memory pages are re-claimed (existing contents forgotten, and page re-purposed) for new activity based on new memory pressures, and the time the memory has remained inactive.
The actual behavior is highly OS implementation dependent.
On Unix type systems, the madvise() function can be used to help control behavior of memory-mapped data (e.g. MADV_DONTNEED), but again behavior is highly OS implementation dependent and the only way to know for sure is to test.