From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 7 Jul 2006 04:54:41 -0500 From: Robin Holt Subject: Re: Commenting out out_of_memory() function in __alloc_pages() Message-ID: <20060707095441.GA3913@lnx-holt.americas.sgi.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org Return-Path: To: "Abu M. Muttalib" Cc: kernelnewbies@nl.linux.org, linux-newbie@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm List-ID: I am not sure about x86, but on ia64, you would be very hard pressed for this application to actually run you out of memory. With the memset commented out, you would be allocating vmas, etc, but you would not be actually putting pages behind those virtual addresses. Thanks, Robin --------------------------- test1.c ---------------------------------- #include #include main() { char* buff; int count; count=0; while(1) { printf("\nOOM Test: Counter = %d", count); buff = (char*) malloc(1024); // memset(buff,'\0',1024); count++; if (buff==NULL) { printf("\nOOM Test: Memory allocation error"); } } } -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org