5 ms·
You missed the point of the note. The point was to have the kernel balance what is on disk and what is in memory. Varnish (w/MSE) still relies on the kernel fo
by perbu 12y ago
You missed the point of the note. The point was to have the kernel balance what is on disk and what is in memory.
Varnish (w/MSE) still relies on the kernel for this. However, as you cannot atomically write a whole page through a mmap (thereby avoiding the page fault) we have to use write(). It still is read through mmap and the kernel still drop pages whenever it feels like it.
- otterley 12y agoBut if you're reading via mmap, aren't you still relying on the kernel's naive LRU page eviction algorithm?
- perbu 12y agoThe kernel switched to LFU in 2.6 if I'm not mistaken. But, yes, we are. There are quite a few caches with separate eviction algorithms if you follow the rabbit hole all the way down.