3 ms·
> sacrificed no RAM at runtime Those lookups eventually made their way into the kernel's page cache.
by rubiquity 3y ago
> sacrificed no RAM at runtime
Those lookups eventually made their way into the kernel's page cache.
- hakunin 3y agoAre 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?
- rubiquity 3y agoDepending 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.
- deleted 3y ago[deleted]
- coldtea 3y agoThe "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.