On Wed, Oct 07, 2020 at 09:35:06PM +0300, Jarkko Sakkinen wrote: > On Wed, Oct 07, 2020 at 08:14:48PM +0200, Jethro Beekman wrote: > > It's this one in do_mmap(): > > > > /* Too many mappings? */ > > if (mm->map_count > sysctl_max_map_count) > > return -ENOMEM; > > > > I've verified that I'm no longer getting the problem when increasing > > /proc/sys/vm/max_map_count . Why do I need to change this from the > > default compared to before? > > Yes, you are correct. I came into same conclusion and responded (once > again) to my own email after running this: > > ➜ ~ (master) ✔ sudo bpftrace -e 'kr:ksys_mmap_pgoff { @[comm] = count(); }' &> log.txt > ^C > ➜ ~ (master) ✔ cat log.txt > Attaching 1 probe... > > > @[cat]: 18 > @[git]: 47 > @[zsh]: 49 > @[cargo]: 94 > @[sgx-load-large-]: 65510 > > That is the default value for /proc/sys/vm/max_map_count. > > Re-responding just in case because I thought that the bpftrace snippet > might have some value for you. I don't why I cannot see my email at > lore.kernel.org. ... looking also forward to run this test and the test suite (have not tried yet) in the master branch. This all is really useful for me that you are doing. /Jarkko