tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: mmap implementation advice needed.



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


Home | Main Index | Thread Index | Old Index