> 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;


.mrg.

Reply via email to