On Sat, Apr 10, 2010 at 09:41:52AM -0700, Linus Torvalds wrote:
I am all in favor of only doing singletons, so that we don't have to
inflict my psycho-active merging routine on civilians.
I am not convinced it's a good idea to share an anon_vma, however, when
we know beforehand the vmas will never merge, because it will increase
rmap overhead of walking unrelated vmas for every page in every vma that
is part of the reused anon_vma.
So we usually take that as a trade-off when there is a chance the vmas
could still reunite and we don't want to spoil that through differing
anon_vmas.
But if it's already clear that they won't, it appears to me it would
be more efficient in the long run to just allocate our own anon_vma.
Did you have something in mind that I missed?
Hannes
--