RE: Help Understanding Linux memory management

2007-04-11 Thread David Schwartz
> 1) When physical memory runs low, the memory manager will try to use > memory currently allocated to the pagecache. Is this true? Yes. > 2) When vm.overcommit_memory = 2 (overcommit disabled), and memory runs > low, it appears that the memory manager does not try to use memory > currently

RE: Help Understanding Linux memory management

2007-04-11 Thread David Schwartz
1) When physical memory runs low, the memory manager will try to use memory currently allocated to the pagecache. Is this true? Yes. 2) When vm.overcommit_memory = 2 (overcommit disabled), and memory runs low, it appears that the memory manager does not try to use memory currently

RE: Help Understanding Linux memory management

2007-04-10 Thread Mouawad, Tony
10, 2007 12:17 PM To: Mouawad, Tony Cc: Robert Hancock; linux-kernel@vger.kernel.org Subject: Re: Help Understanding Linux memory management On Tue, 10 Apr 2007 10:31:34 -0400 "Mouawad, Tony" <[EMAIL PROTECTED]> wrote: > When vm.overcommit_memory = 2 and there appears to be

Re: Help Understanding Linux memory management

2007-04-10 Thread Alan Cox
On Tue, 10 Apr 2007 10:31:34 -0400 "Mouawad, Tony" <[EMAIL PROTECTED]> wrote: > When vm.overcommit_memory = 2 and there appears to be about 2M of memory > readily available and about 12M of memory allocated to pagecache (this > is info gathered from /proc/meminfo) , a call to malloc(500)

RE: Help Understanding Linux memory management

2007-04-10 Thread Mouawad, Tony
request the memory in pagecache to be released for use by the app. -Original Message- From: Robert Hancock [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 10, 2007 10:15 AM To: Mouawad, Tony Cc: linux-kernel@vger.kernel.org Subject: Re: Help Understanding Linux memory management Mouawad, Tony

Re: Help Understanding Linux memory management

2007-04-10 Thread Laurent Pinchart
Hi, > I've been a MS Windows based programmer for a very long time and was > recently tossed in an environment where I am developing embedded apps on > the m68k / Linux platform. That makes me a Linux newbie. I started > asking a few questions on various IRC channels and was directed to this >

Re: Help Understanding Linux memory management

2007-04-10 Thread Robert Hancock
Mouawad, Tony wrote: Hello, I've been a MS Windows based programmer for a very long time and was recently tossed in an environment where I am developing embedded apps on the m68k / Linux platform. That makes me a Linux newbie. I started asking a few questions on various IRC channels and was

Re: Help Understanding Linux memory management

2007-04-10 Thread Robert Hancock
Mouawad, Tony wrote: Hello, I've been a MS Windows based programmer for a very long time and was recently tossed in an environment where I am developing embedded apps on the m68k / Linux platform. That makes me a Linux newbie. I started asking a few questions on various IRC channels and was

Re: Help Understanding Linux memory management

2007-04-10 Thread Laurent Pinchart
Hi, I've been a MS Windows based programmer for a very long time and was recently tossed in an environment where I am developing embedded apps on the m68k / Linux platform. That makes me a Linux newbie. I started asking a few questions on various IRC channels and was directed to this

RE: Help Understanding Linux memory management

2007-04-10 Thread Mouawad, Tony
request the memory in pagecache to be released for use by the app. -Original Message- From: Robert Hancock [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 10, 2007 10:15 AM To: Mouawad, Tony Cc: linux-kernel@vger.kernel.org Subject: Re: Help Understanding Linux memory management Mouawad, Tony

Re: Help Understanding Linux memory management

2007-04-10 Thread Alan Cox
On Tue, 10 Apr 2007 10:31:34 -0400 Mouawad, Tony [EMAIL PROTECTED] wrote: When vm.overcommit_memory = 2 and there appears to be about 2M of memory readily available and about 12M of memory allocated to pagecache (this is info gathered from /proc/meminfo) , a call to malloc(500) returns

RE: Help Understanding Linux memory management

2007-04-10 Thread Mouawad, Tony
10, 2007 12:17 PM To: Mouawad, Tony Cc: Robert Hancock; linux-kernel@vger.kernel.org Subject: Re: Help Understanding Linux memory management On Tue, 10 Apr 2007 10:31:34 -0400 Mouawad, Tony [EMAIL PROTECTED] wrote: When vm.overcommit_memory = 2 and there appears to be about 2M of memory readily