3 ms·
While MongoDB does this, I don't think that Redis takes this approach. In theory, it manages the memory itself, reading from disk into its own cache. In practi
by nkurz 16y ago
While MongoDB does this, I don't think that Redis takes this approach. In theory, it manages the memory itself, reading from disk into its own cache. In practice, I worry that it might end up competing with the system, leading to "full memory" like conditions far before memory is actually exhausted. Thus my interest in how it performs in a simple real life test like this.
- antirez 16y agoNo mmap in Redis indeed.
- otterley 16y agoMy mistake.
- otterley 16y agoOn Linux, at least, that's probably better than mmap()ing pages, since you get better control over when the backing store is synced. Nevertheless, the risk still exists, as you suggest, that Redis's memory pages could be involuntarily swapped to disk due to memory pressure caused by competing processes.