3 ms·
> hey, 'antirez, what's your take on that? You wrote an ad hoc pager for Redis. I am very curious about this too. I could see doing that in Java where you don'
by strlen 16y ago
> hey, 'antirez, what's your take on that? You wrote an ad hoc pager for Redis.
I am very curious about this too. I could see doing that in Java where you don't have ability to advise the VM on how you're going to be accessing memory mapped files (no madvise() or fadvise() available despite NIO support for mmap, thanks Sun!), but asides from portability to non-Linux OSes e.g., ZFS ARC Cache on Solaris doesn't honour madvise()/fadvise() the same way Linux page cache does, what would be the reasons against trusting the VM in C/C++ code where you can explicitly "advise" (Linux treats madvise() as imperative rather than advisory) the VM on your usage?
Redis is a cool product and antirez is a smart guy, so I am sure there must be a reason for this.