Mailing List
Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Installation - Getting started with Red Hat Linux
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 8.0 - Discussion of Red Hat Linux 8.0 (Psyche)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.1 - Discussion of Red Hat Linux 7.1 (Seawolf)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Strange out of memory

Strange out of memory

2004-05-07       - By Robert Brod�n

 Back
Reply:     1     2  

Hi,



I have 3 servers that runs out of memory about once every 2-3 days. The strange thing is that they are populated with 6 GB of memory and they use only about 4 GB. From what I can se it seams like the problem is that the cache uses up all available memory and then fails to release it when it 's needed by some other process, due to this the system kills a few of my processes and logs "Out of memory - Killing process xxxx " in the message log.



the moment before this happens a free yields this:



total used free shared buffers cached

Mem: 6190296 6165828 24468 0 116284 1978136

-/+ buffers/cache: 4071408 2118888

Swap: 0 0 0



It actually even has triggered a core dump with a system halt once!



(We do not use swap and really don 't want to either since we depend on having data accessible instantly and the delay we would get if the application would be swapped out is unacceptable, besides that it really shouldn 't be needed with 2 spare GB right?)



Does anyone know how to limit the cache (or even better, patch this "bug ")?



Regards

// Robert Broden








<html >

<head >
<meta http-equiv=Content-Type content= "text/html; charset=iso-8859-1 " >
<meta name=Generator content= "Microsoft Word 10 (filtered) " >

<style >
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
   {margin:0cm;
   margin-bottom:.0001pt;
   font-size:12.0pt;
   font-family: "Times New Roman ";}
a:link, span.MsoHyperlink
   {color:blue;
   text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
   {color:purple;
   text-decoration:underline;}
p
   {margin-right:0cm;
   margin-left:0cm;
   font-size:12.0pt;
   font-family: "Times New Roman ";}
span.EmailStyle17
   {font-family:Arial;
   color:windowtext;}
@(protected) Section1
   {size:612.0pt 792.0pt;
   margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
   {page:Section1;}
-- >
</style >

</head >

<body lang=SV link=blue vlink=purple >

<div class=Section1 >

<p class=MsoNormal > <font size=2 face=Arial > <span lang=EN-GB style= 'font-size:
10.0pt;font-family:Arial ' >Hi, </span > </font > </p >

<p class=MsoNormal > <font size=2 face=Arial > <span lang=EN-GB style= 'font-size:
10.0pt;font-family:Arial ' >  </span > </font > </p >

<p class=MsoNormal > <font size=2 face=Arial > <span lang=EN-GB style= 'font-size:
10.0pt;font-family:Arial ' >I have 3 servers that runs out of memory about once
every 2-3 days. The strange thing is that they are populated with 6 GB of
memory and they use only about 4 GB. From what I can se it seams like the
problem is that the cache uses up all available memory and then fails to
release it when it’s needed by some other process, due to this the system
kills a few of my processes and logs “Out of memory – Killing
process xxxx” in the message log. </span > </font > </p >

<p class=MsoNormal > <font size=2 face=Arial > <span lang=EN-GB style= 'font-size:
10.0pt;font-family:Arial ' >  </span > </font > </p >

<p class=MsoNormal > <font size=2 face=Arial > <span lang=EN-GB style= 'font-size:
10.0pt;font-family:Arial ' >the moment before this happens a  free yields
this: </span > </font > </p >

<p class=MsoNormal > <font size=2 face=Arial > <span lang=EN-GB style= 'font-size:
10.0pt;font-family:Arial ' >  </span > </font > </p >

<p class=MsoNormal > <font size=2 face=Arial > <span lang=EN-GB style= 'font-size:
10.0pt;font-family:Arial ' > total      
used       free    
shared    buffers     cached </span > </font > </p >

<p class=MsoNormal > <font size=2 face=Arial > <span lang=EN-GB style= 'font-size:
10.0pt;font-family:Arial ' >Mem:      
6190296    6165828     
24468         
0     116284    1978136 </span > </font > </p >

<p class=MsoNormal > <font size=2 face=Arial > <span lang=EN-GB style= 'font-size:
10.0pt;font-family:Arial ' >-/+ buffers/cache:    4071408 
  2118888 </span > </font > </p >

<p class=MsoNormal > <font size=2 face=Arial > <span lang=EN-GB style= 'font-size:
10.0pt;font-family:Arial ' >Swap:           
0         
0          0 </span > </font > </p >

<p class=MsoNormal > <font size=2 face=Arial > <span lang=EN-GB style= 'font-size:
10.0pt;font-family:Arial ' >  </span > </font > </p >

<p class=MsoNormal > <font size=2 face=Arial > <span lang=EN-GB style= 'font-size:
10.0pt;font-family:Arial ' >It actually even has triggered a core dump with a
system halt once! </span > </font > </p >

<p class=MsoNormal > <font size=2 face=Arial > <span lang=EN-GB style= 'font-size:
10.0pt;font-family:Arial ' >  </span > </font > </p >

<p class=MsoNormal > <font size=2 face=Arial > <span lang=EN-GB style= 'font-size:
10.0pt;font-family:Arial ' >(We do not use swap and really don’t want to
either since we depend on having data accessible instantly and the delay we
would get if the application would be swapped out is unacceptable, besides that
it really shouldn’t be needed with 2 spare GB right?) </span > </font > </p >

<p class=MsoNormal > <font size=2 face=Arial > <span lang=EN-GB style= 'font-size:
10.0pt;font-family:Arial ' >  </span > </font > </p >

<p class=MsoNormal > <font size=2 face=Arial > <span lang=EN-GB style= 'font-size:
10.0pt;font-family:Arial ' >Does anyone know how to limit the cache (or even
better, patch this “bug”)? </span > </font > </p >

<p class=MsoNormal > <font size=2 face=Arial > <span lang=EN-GB style= 'font-size:
10.0pt;font-family:Arial ' >  </span > </font > </p >

<p class=MsoNormal > <font size=2 face=Arial > <span lang=EN-GB style= 'font-size:
10.0pt;font-family:Arial ' >Regards </span > </font > </p >

<p class=MsoNormal > <font size=2 face=Arial > <span lang=EN-GB style= 'font-size:
10.0pt;font-family:Arial ' >// Robert Broden </span > </font > </p >

<p class=MsoNormal > <font size=2 face=Arial > <span lang=EN-GB style= 'font-size:
10.0pt;font-family:Arial ' >  </span > </font > </p >

<p class=MsoNormal > <font size=2 face=Arial > <span lang=EN-GB style= 'font-size:
10.0pt;font-family:Arial ' >  </span > </font > </p >

<p class=MsoNormal > <font size=3 face= "Times New Roman " > <span lang=EN-GB
style= 'font-size:12.0pt ' >  </span > </font > </p >

</div >

</body >

</html >

--
Taroon-list mailing list
Taroon-list@(protected)
http://www.redhat.com/mailman/listinfo/taroon-list