News for hackers. Stuff that matters.
Re:I/O Access Methods for Linux by hoytech on Thursday October 05, 2017 @10:58PM (#15414129)
Do you mean you want to cache things that can't be serialised to memory pages, or you don't want the memory pages to be backed by files?

In the context of this article, many databases use the page cache to cache their data-structures, either in combination with private pages (ie postgres) or entirely (ie LMDB).

Re:I/O Access Methods for Linux by dom0 on Friday October 06, 2017 @07:27AM (#15415893)
The latter case; and allocating anonymous memory is not caching.
Re:I/O Access Methods for Linux by hoytech on Friday October 06, 2017 @08:52AM (#15416390)
Oh 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.