4 ms·
The latter case; and allocating anonymous memory is not caching.
by dom0 9y ago
The latter case; and allocating anonymous memory is not caching.
- hoytech 9y agoOh I see, I thought you might be referring to how the page cache (obviously) can't cache things like sockets. Some applications do use the page cache for non-caching purposes though, for instance IPC, or ensuring their working-data will survive an application restart. The memory is still associated with files naturally, but this is often regarded as a feature, not a problem. Some applications use files on tmpfs so that their page cache data is backed by swap (or nothing), the same as anonymous pages.