[RFC PATCH v2 0/2] Randomization of address chosen by mmap.
Luck, Tony
tony.luck at intel.com
Wed Mar 28 14:07:30 PDT 2018
> The default limit of only 65536 VMAs will also quickly come into play
> if consecutive anon mmaps don't get merged. Of course this can be
> raised, but it has significant resource and performance (fork) costs.
Could the random mmap address chooser look for how many existing
VMAs have space before/after and the right attributes to merge with the
new one you want to create? If this is above some threshold (100?) then
pick one of them randomly and allocate the new address so that it will
merge from below/above with an existing one.
That should still give you a very high degree of randomness, but prevent
out of control numbers of VMAs from being created.
-Tony
More information about the linux-snps-arc
mailing list