overcommit_memory パラメーターを 2 に設定しても OOM (Out of memory) が発生するのはなぜですか?

Solution Verified - Updated -

Issue

  • overcommit_memory=2 を設定し、メモリーが枯渇すると、カーネルがメモリー割り当て要求を拒否しますが、依然として OOM が発生します。

    2011-04-12T06:49:13.434570+10:00 hostname kernel:Out of memory: kill process 4303 (pickup) score 16035 or a child
    2011-04-12T06:49:13.434574+10:00 hostname kernel:Killed process 4303 (pickup) vsz:64140kB, anon-rss:68kB, file-rss:56kB
    2011-04-12T06:49:25.412062+10:00 hostname kernel: httpd invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=-17
    
  • /etc/sysctl.conf ファイルには以下が含まれます。

    vm.overcommit_memory = 2
    vm.overcommit_ratio = 100
    

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.