Dec 30, 2008
Linux OOM killer (Out of memory)
OOM is short form for Out of memory. As name suggest it kills process randomly when the size of the data to be copied exceeds the size of physical memory i.e. when out of memory situation occurs OOM kills the lower priority process and frees the memory. It is the job of the Linux 'oom killer' to sacrifice one or more processes in order to free up memory for the system when all else fails. We can fix the memory that a process can use via sysctl facility. For example a reasonable value for lower_zone_protection is 150. But what is 150? It is 150 MB (approximately). The lower_zone_protection tunable determines how aggressive the kernel is in defending these lower zones. In simple words “ I am preventing NFS eating up all memory and keeping my system stable”. Remember 150MB will be reserved and not allocated to anyone including applications, users, and cache. Open your /etc/sysctl.conf and add following line On the other hand, you can type the following command at shell prompt: |
Post a Comment