public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Kernel doesn't free Cached Memory
@ 2005-07-22 11:27 Vinicius
  2005-07-22 11:41 ` Bernd Petrovitsch
  2005-07-22 14:49 ` Alan Cox
  0 siblings, 2 replies; 9+ messages in thread
From: Vinicius @ 2005-07-22 11:27 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Mail message body --]
[-- Type: text/plain, Size: 654 bytes --]

Hi all! 

   I have a server with 2 Pentium 4 HT processors and 32 GB of RAM, this 
server runs lots of applications that consume lots of memory to. When I stop 
this applications, the kernel doesn't free memory (the  memory still in use) 
and the server cache lots of memory (~27GB). When I start this applications, 
the kernel sends  "Out of Memory" messages and kill some random 
applications. 

   Anyone know how can I reduce the kernel cached memory on RHEL 3 (kernel 
2.4.21-32.ELsmp - Trial version)? There is a way to reduce the kernel cached 
memory utilization? 

Thanks in advance (sorry my bad english). 

Vinicius. 
Protolink Consultoria. 

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Kernel doesn't free Cached Memory
@ 2005-07-22 16:00 Vinicius
  2005-07-22 22:03 ` Alan Cox
  0 siblings, 1 reply; 9+ messages in thread
From: Vinicius @ 2005-07-22 16:00 UTC (permalink / raw)
  To: alan; +Cc: linux-kernel

[-- Attachment #1: Mail message body --]
[-- Type: text/plain, Size: 1378 bytes --]




Em (15:49:49), Alan Cox escreveu: 


>On Gwe, 2005-07-22 at 08:27 -0300, Vinicius wrote: 
>> Hi all! 
>> 
>> I have a server with 2 Pentium 4 HT processors and 32 GB of RAM, this 
>> server runs lots of applications that consume lots of memory to. When I 
>stop 
>> this applications, the kernel doesn't free memory (the memory still in 
>use) 
> 
>See any FAQ on the Linux memory management - memory is reclaimed when 
>needed not when nobody is using it. That makes things more efficient. 
> 
>> and the server cache lots of memory (~27GB). When I start this 
>applications, 
>> the kernel sends "Out of Memory" messages and kill some random 
>> applications. 
> 
>Some RHEL3 kernels had a problem with very large memory sizes and 2.4. 
>That should not be the case in the current RHEL3 kernels. 2.6 handles 
>very large systems a lot lot better, and of course the fact real 
>computers now have 64bit processors has also rather improved life. 
> 
>Alan 
> 
>---------- 

Thanks Alan, 

   I also read on the Linux-Kernel that the problem may be related to an 
exhaustion of your kernels address space, I read that the hugemem-kernel 
might be the solution to this case since it has 4GB for the kernel memory 
plus 4GB for user process. 
How can I define if my kernel memory is beeing exhausted? Does this 
exhaustion of kernel memory can cause Out Of memory errors ? 





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-07-26  5:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-22 11:27 Kernel doesn't free Cached Memory Vinicius
2005-07-22 11:41 ` Bernd Petrovitsch
2005-07-22 13:06   ` linux-os (Dick Johnson)
2005-07-23  5:35     ` Al Boldi
2005-07-25 16:28       ` Bill Davidsen
2005-07-26  5:23         ` Al Boldi
2005-07-22 14:49 ` Alan Cox
  -- strict thread matches above, loose matches on Subject: below --
2005-07-22 16:00 Vinicius
2005-07-22 22:03 ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox