Re: Set process' working set size explictly
Re: Set process' working set size explictly
- Subject: Re: Set process' working set size explictly
- From: Terry Lambert <email@hidden>
- Date: Wed, 18 Feb 2009 06:40:18 -0800
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. Otherwise, it's completely unenforced by the OS itself, since it
computationally expensive to track down shared pages, and
controversial as to whether shared pages count against the first
process to instance them, all processes that have them instanced, or
not processes, since their a common resource. This gets even more
complicated when you're talking about something like intentionally
shared memory instead of, e.g., a shared library, since then the pages
are shared only by a subset of processes, rather than all of them.
-- Terry
_______________________________________________
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