Den 2018-03-30 kl. 20:43, skrev matthew green:
A resource limit for mmap in total would solve the problem though.RLIMIT_AS? you'll have to add support to set it in MD code, but eg. these lines should help. 465:uvm_init_limits(struct proc *p) [..] 479: p->p_rlimit[RLIMIT_AS].rlim_cur = RLIM_INFINITY; 480: p->p_rlimit[RLIMIT_AS].rlim_max = RLIM_INFINITY;
Thanks! This was exactly what I wanted! Problem solved! Hm, why didn't I see it myself when looking? :-) -- R