4 ms·
From the article: > The reason is that Linux is smart and it does not duplicate the pages between tmpfs and its cache From you: > MongoDB touches a page in R
by bkanber 13y ago
From the article:
> The reason is that Linux is smart and it does not duplicate the pages between tmpfs and its cache
From you:
> MongoDB touches a page in RAM which maps to a block in tmpfs
These two statements sound contradictory to me.
- old-gregg 13y agoNot really: I said "maps", which means that it's the same page, there is no duplication. But the mere presence of tmpfs as yet another moving part adds overhead and memory consumption. The OP did mention the security angle, i.e. the database is never written to a disk, so perhaps there's some convenience there.
- reeses 13y agoThe security angle is a bit of a canard, though. Most compromises involve compromising running applications, not OS-level filesystem exploits. This would improve security and reduce the potential attack surface if this were used for ephemeral mongodb instances, but only in that it would prevent poor programming practices from lasting beyond a working session.