Re: Set process' working set size explictly
Re: Set process' working set size explictly
- Subject: Re: Set process' working set size explictly
- From: Maxim Zhuravlev <email@hidden>
- Date: Wed, 18 Feb 2009 19:34:23 +0300
2009/2/18 Terry Lambert <email@hidden>:
> On Feb 18, 2009, at 6:02 AM, Maxim Zhuravlev wrote:
>>
>> Hi, all.
>>
>> Is there any (kernel- or user-mode) way to set a process' working set
>> size explicitly in runtime?
>
> setrlimit(2) will set the resource limit, but it's purely voluntary. Good
> code like gcc will look at this limit and voluntarily not exceed it.
By what means do I *voluntary* not exceed it? I mean, given this, I
can't ensure, how much *real* memory does my process consume. Then how
do I not exceed it, if virtual memory consumed exceeds required
working set?
Thanks,
- Maxim.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden