Re: Set process' working set size explictly
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Hi, all. Is there any (kernel- or user-mode) way to set a process' working set size explicitly in runtime? -- Terry _______________________________________________ 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... On Feb 18, 2009, at 6:02 AM, Maxim Zhuravlev wrote: 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Terry Lambert