4 ms·
Address space exhaustion is a problem, sure, but it has nothing to do with the buffer cache. The kernel's address space is completely separate from any particul
by coffeemug 16y ago
Address space exhaustion is a problem, sure, but it has nothing to do with the buffer cache. The kernel's address space is completely separate from any particular process' address space.
For various reasons we don't use the kernel's cache, we have our own cache implementation that's in the same address space as the rest of the process.
- cperciva 16y agoOh dear god. You have my sincere and profound sympathies.
- barrkel 16y agoIt's pretty unusual for databases to delegate something as vital to performance as caching to the OS.
- cperciva 16y agoSure, a database needs to cache. But it doesn't automatically need to cache at that level -- usually they can get away with caching data rather than pages.
- strlen 16y agoIf you have your own cache and you don't use direct I/O i.e., they go through the OS page cache, don't have you have the issue of the OS page cache and the database "fighting" each other?