Re: Set process' working set size explictly
Re: Set process' working set size explictly
- Subject: Re: Set process' working set size explictly
- From: Michael Smith <email@hidden>
- Date: Wed, 18 Feb 2009 08:51:54 -0800
On Feb 18, 2009, at 8:34 AM, Maxim Zhuravlev wrote:
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?
By constraining the amount of virtual memory your process uses.
Terry's trying to avoid explaining in detail the differences between
Darwin's approach to resource allocation (squeaky wheel) and
Windows' (no you can't have a pony) - the latter is probably where
you're coming from.
I would be happy to go into more detail, if you'd like.
= Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden