From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <86225ce4da8f29d4a4e8301563bec686@quanstro.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] plan 9 overcommits memory? From: erik quanstrom Date: Mon, 3 Sep 2007 19:51:01 -0400 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: b727aa3c-ead2-11e9-9d60-3106f5b1d025 >> to any process. suppose i start a program that allocates 8k but between >> the malloc and the memset, another program uses the last available >> page in memory, then my original program faults. > > yes, and you'll always have to deal with that in some form or another. > i've started a program, it allocates some memory, is guaranteed to have it (unlike the current system), > but later, some other program allocates enough memory that mine can't get > any more, memory that mine needs to finish (perhaps during an output phase). > my original program fails, even though the system guarantees physical memory > for all virtual memory allocations. that would be perfect. perhaps i've been unclear. i don't have any problem dealing with failed alloc. malloc has always been able to return 0. dealing with a page fault due to overcommit is a different story. - erik