ovsqlite: add mmapsize configuration#337
Conversation
|
Thanks! |
ovsqlite WAL, mmap, direct readers: InterNetNews/inn#337 InterNetNews/inn#338 bloom filter InterNetNews/inn#339
Is it safe to recommend to set the amount of available memory? It may starve the server. Shouldn't something be said about that? |
|
Yes it is generally safe to mmap any sized file (subject to virtual address space limitations, on i.e. 32b). The kernel will page in and out the file as needed so the fixed memory use at any point is low. In a multi-process architecture it is ideal, i.e. ovsqlite-server and nnrpd direct readers. Of the caveats, the Unified Buffer Cache one is the only critical and applies to all the other places inn uses mmap. It is not the right syscall for ZFS because they never correctly integrated it with any OS memory management. |
No description provided.