site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=G2sE6zamK3iB7vat6HttTVpLM+3J2iUjvTt24X35MLg=; b=bZruohO9kVqyl3Qjig2035vI4LOxnPHOJUJC1bV2DAQz9Ynnl3Bt+M4DuafaUj5yF8 tiNLhaWEe8rd8X1mX3wXZYgFciOMmoel0ILRQXRM0ShCRlnVszqW8bt6/cvYDJV0XhIV HQiZ+yE8u39nXe9bfB7X0eoAqvRXvhzua0rVM= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=P/Ry2irUoZ+rRsJt4rliZJb1TDGcOta5vm1+0/QEKyDhg8l36qW0a3SfAIeJrVjpg3 jeVfS8xyC8IuH7HX5UYEVq9b88UWQVJClCOJ58J3JFNF4RtJ4R0JxO6rlWi7oGP7JM7I dtEIvXERkhgHaRhVn03sr2MVB8L8szFbrBwKI= 2009/2/18 Terry Lambert <tlambert@apple.com>:
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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com