Re:In-memory vs. disk-based DB: Why do you need a larger tha...
by hakunin on Saturday September 02, 2023 @03:31PM
(#37364734)
Are you saying that the file would just entirely be loaded into a page cache eventually? I imagine, even if true, it still wouldn't result in OOM killing the server/worker daemons on account of this data?
Re:In-memory vs. disk-based DB: Why do you need a larger tha...
by rubiquity on Saturday September 02, 2023 @04:52PM
(#37365426)
Depending on the file size and available memory, yes. In the event memory needs to be reclaimed Linux’s memory management system will free from the page cache first if processes need more anonymous memory.
Re:In-memory vs. disk-based DB: Why do you need a larger tha...
by coldtea on Saturday September 02, 2023 @07:00PM
(#37366216)
The "log(n) * number of searches" page lookups, that the kernel could clean up at any time after a search, instead of all n items that it would have had to load and keep in memory?
Yes, they did.
Those lookups eventually made their way into the kernel's page cache.