tech-kern archive

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

Re: RLIMIT_AS and fixed process size calculations patch



On Sat, Mar 28, 2009 at 12:54:59PM +1100, matthew green wrote:
> 
> 
> hi folks.
> 
> the patch below implements 3 things:
> 
>       1 - adds a new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits
>       the total address space available to processes.  this limit
>       exists in most other modern unix variants, and like most of
>       them, our defaults are unlimited.
> 
>       2 - adds the VMCMD_STACK flag to all the stack-creation vmcmd
>       callers.  it is currently unused, but was added a few years ago.
> 
>       3 - adds a pair of new process size values to kinfo_proc2{}. 
>       one is the total size of the process memory map, and the other
>       is the total size adjusted for unused stack space (since most
>       processes have a lot of this...)
> 
> 
> i plan to commit this in a couple of days.  please comment.

Didn't you forget to update the proc.<pid>.rlimit tree to export
RLIMIT_AS as well ? See create_proc_plimit in kern_resource.c 

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index