<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: System hangs often with out of memory in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/system-hangs-often-with-out-of-memory/m-p/3984651#M27952</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;The system already has sysstat package,i was not monitoring using sar command(as i didnt know of that).&lt;BR /&gt;&lt;BR /&gt;unfortunate for me sar is giving detail of present day only.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Bhaski</description>
    <pubDate>Thu, 19 Apr 2007 07:58:06 GMT</pubDate>
    <dc:creator>bhaski</dc:creator>
    <dc:date>2007-04-19T07:58:06Z</dc:date>
    <item>
      <title>System hangs often with out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/system-hangs-often-with-out-of-memory/m-p/3984646#M27947</link>
      <description>Hello All,&lt;BR /&gt;&lt;BR /&gt;We are running system with following details.&lt;BR /&gt;&lt;BR /&gt;Linux bwga090 2.6.16.21-0.8-bigsmp #1 SMP Mon Jul 3 18:25:39 UTC 2006 i686 i686 i386 GNU/Linux&lt;BR /&gt;&lt;BR /&gt;CPU, memory and swap infor at normal time is &lt;BR /&gt;Cpu(s): 3.1%us, 0.6%sy, 0.0%ni, 95.7%id, 0.6%wa, 0.0%hi, 0.1%si, 0.0%st&lt;BR /&gt;Mem: 4023012k total, 2948912k used, 1074100k free, 166268k buffers&lt;BR /&gt;Swap: 4200988k total, 0k used, 4200988k free, 2204300k cached&lt;BR /&gt;&lt;BR /&gt;we are facing a peculiar problem with below error message. And the system is pingable at that time,but telnet,ssh even console does not work at that time and we need to hard reboot the system.&lt;BR /&gt;&lt;BR /&gt;Can anyone please suggest why this is happnening? and how to solve this problem.&lt;BR /&gt;&lt;BR /&gt;Apr 18 16:05:19 bwga090 kernel: oom-killer: gfp_mask=0x201d2, order=0&lt;BR /&gt;Apr 18 16:05:20 bwga090 kernel: [&lt;C0146309&gt;] out_of_memory+0x25/0x144&lt;BR /&gt;Apr 18 16:05:20 bwga090 kernel: [&lt;C01479FB&gt;] __alloc_pages+0x1f3/0x2a5&lt;BR /&gt;Apr 18 16:05:20 bwga090 kernel: [&lt;C0148FFD&gt;] __do_page_cache_readahead+0xc4/0x1e2&lt;BR /&gt;Apr 18 16:05:20 bwga090 kernel: [&lt;C0145A9A&gt;] filemap_nopage+0x14f/0x2f9&lt;BR /&gt;Apr 18 16:05:20 bwga090 kernel: [&lt;C014E5C0&gt;] __handle_mm_fault+0x405/0xb1f&lt;BR /&gt;Apr 18 16:05:20 bwga090 kernel: [&lt;C016EC36&gt;] do_select+0x38b/0x3b8&lt;BR /&gt;Apr 18 16:05:20 bwga090 kernel: [&lt;C016F12A&gt;] __pollwait+0x0/0x95&lt;BR /&gt;Apr 18 16:05:20 bwga090 kernel: [&lt;C016EE2E&gt;] core_sys_select+0x1cb/0x26c&lt;BR /&gt;Apr 18 16:05:20 bwga090 kernel: [&lt;C0297323&gt;] do_page_fault+0x173/0x5f6&lt;BR /&gt;Apr 18 16:05:20 bwga090 kernel: [&lt;C02971B0&gt;] do_page_fault+0x0/0x5f6&lt;BR /&gt;Apr 18 16:05:20 bwga090 kernel: [&lt;C0104F1F&gt;] error_code+0x4f/0x60&lt;BR /&gt;Apr 18 16:05:20 bwga090 kernel: Mem-info:&lt;BR /&gt;Apr 18 16:05:20 bwga090 kernel: DMA per-cpu:&lt;BR /&gt;Apr 18 16:05:20 bwga090 kernel: cpu 0 hot: high 0, batch 1 used:0&lt;BR /&gt;Apr 18 16:05:20 bwga090 kernel: cpu 0 cold: high 0, batch 1 used:0&lt;BR /&gt;Apr 18 16:05:20 bwga090 kernel: cpu 1 hot: high 0, batch 1 used:0&lt;BR /&gt;Apr 18 16:05:20 bwga090 kernel: cpu 1 cold: high 0, batch 1 used:0&lt;BR /&gt;Apr 18 16:05:20 bwga090 kernel: DMA32 per-cpu: empty&lt;BR /&gt;Apr 18 16:05:20 bwga090 sshd[25829]: fatal: Write failed: Connection reset by peer&lt;BR /&gt;Apr 18 16:05:20 bwga090 kernel: Normal per-cpu:&lt;BR /&gt;Apr 18 16:05:20 bwga090 kernel: cpu 0 hot: high 186, batch 31 used:52&lt;BR /&gt;Apr 18 16:05:21 bwga090 kernel: cpu 0 cold: high 62, batch 15 used:53&lt;BR /&gt;Apr 18 16:05:21 bwga090 kernel: cpu 1 hot: high 186, batch 31 used:63&lt;BR /&gt;Apr 18 16:05:21 bwga090 kernel: cpu 1 cold: high 62, batch 15 used:52&lt;BR /&gt;Apr 18 16:05:21 bwga090 kernel: HighMem per-cpu:&lt;BR /&gt;Apr 18 16:05:21 bwga090 kernel: cpu 0 hot: high 186, batch 31 used:18&lt;BR /&gt;Apr 18 16:05:22 bwga090 kernel: cpu 0 cold: high 62, batch 15 used:14&lt;BR /&gt;Apr 18 16:05:22 bwga090 kernel: cpu 1 hot: high 186, batch 31 used:30&lt;BR /&gt;Apr 18 16:05:22 bwga090 kernel: cpu 1 cold: high 62, batch 15 used:8&lt;BR /&gt;Apr 18 16:05:23 bwga090 kernel: Free pages: 42256kB (504kB HighMem)&lt;BR /&gt;Apr 18 16:05:23 bwga090 kernel: Active:4190 inactive:692413 dirty:0 writeback:0 unstable:0 free:10564 slab:193852 mapped:697864 pagetables:99324&lt;BR /&gt;Apr 18 16:05:23 bwga090 kernel: DMA free:12828kB min:68kB low:84kB high:100kB active:0kB inactive:0kB present:16384kB pages_scanned:14 all_unreclaima&lt;BR /&gt;ble? yes&lt;BR /&gt;Apr 18 16:05:23 bwga090 kernel: lowmem_reserve[]: 0 0 880 3951&lt;BR /&gt;Apr 18 16:05:23 bwga090 kernel: DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no&lt;BR /&gt;Apr 18 16:05:23 bwga090 kernel: lowmem_reserve[]: 0 0 880 3951&lt;BR /&gt;Apr 18 16:05:24 bwga090 kernel: Normal free:28924kB min:3756kB low:4692kB high:5632kB active:16760kB inactive:16404kB present:901120kB pages_scanned:&lt;BR /&gt;166209 all_unreclaimable? yes&lt;BR /&gt;Apr 18 16:05:24 bwga090 kernel: lowmem_reserve[]: 0 0 0 24575&lt;BR /&gt;Apr 18 16:05:24 bwga090 kernel: HighMem free:504kB min:512kB low:3792kB high:7072kB active:0kB inactive:2753248kB present:3145600kB pages_scanned:801&lt;BR /&gt;9798 all_unreclaimable? yes&lt;BR /&gt;Apr 18 16:05:24 bwga090 kernel: lowmem_reserve[]: 0 0 0 0&lt;BR /&gt;Apr 18 16:05:24 bwga090 kernel: DMA: 49*4kB 53*8kB 49*16kB 49*32kB 28*64kB 11*128kB 8*256kB 1*512kB 0*1024kB 0*2048kB 1*4096kB = 12828kB&lt;BR /&gt;Apr 18 16:05:24 bwga090 kernel: DMA32: empty&lt;BR /&gt;Apr 18 16:05:24 bwga090 kernel: Normal: 6351*4kB 46*8kB 1*16kB 0*32kB 1*64kB 0*128kB 0*256kB 0*512kB 1*1024kB 1*2048kB 0*4096kB = 28924kB&lt;BR /&gt;Apr 18 16:05:24 bwga090 kernel: HighMem: 0*4kB 1*8kB 7*16kB 0*32kB 0*64kB 1*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 504kB&lt;BR /&gt;Apr 18 16:05:24 bwga090 kernel: Swap cache: add 1109145, delete 1108929, find 27918/32228, race 0+3&lt;BR /&gt;Apr 18 16:05:24 bwga090 kernel: Free swap = 0kB&lt;BR /&gt;Apr 18 16:05:25 bwga090 kernel: Total swap = 4200988kB&lt;BR /&gt;Apr 18 16:05:25 bwga090 kernel: Free swap: 0kB&lt;BR /&gt;Apr 18 16:05:25 bwga090 kernel: 1015776 pages of RAM&lt;BR /&gt;Apr 18 16:05:25 bwga090 kernel: 786400 pages of HIGHMEM&lt;BR /&gt;Apr 18 16:05:25 bwga090 kernel: 10023 reserved pages&lt;BR /&gt;Apr 18 16:05:25 bwga090 kernel: 3219311 pages shared&lt;BR /&gt;Apr 18 16:05:25 bwga090 kernel: 216 pages swap cached&lt;BR /&gt;Apr 18 16:05:25 bwga090 kernel: 0 pages dirty&lt;BR /&gt;Apr 18 16:05:25 bwga090 kernel: 0 pages writeback&lt;BR /&gt;Apr 18 16:05:25 bwga090 kernel: 697864 pages mapped&lt;BR /&gt;Apr 18 16:05:25 bwga090 kernel: 193852 pages slab&lt;BR /&gt;Apr 18 16:05:26 bwga090 kernel: 99324 pages pagetables&lt;BR /&gt;Apr 18 16:05:26 bwga090 kernel: oom-killer: gfp_mask=0x200d2, order=0&lt;BR /&gt;Apr 18 16:05:26 bwga090 kernel: [&lt;C0146309&gt;] out_of_memory+0x25/0x144&lt;BR /&gt;Apr 18 16:05:26 bwga090 kernel: [&lt;C01479FB&gt;] __alloc_pages+0x1f3/0x2a5&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;bhaski&lt;/C01479FB&gt;&lt;/C0146309&gt;&lt;/C0104F1F&gt;&lt;/C02971B0&gt;&lt;/C0297323&gt;&lt;/C016EE2E&gt;&lt;/C016F12A&gt;&lt;/C016EC36&gt;&lt;/C014E5C0&gt;&lt;/C0145A9A&gt;&lt;/C0148FFD&gt;&lt;/C01479FB&gt;&lt;/C0146309&gt;</description>
      <pubDate>Thu, 19 Apr 2007 04:50:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/system-hangs-often-with-out-of-memory/m-p/3984646#M27947</guid>
      <dc:creator>bhaski</dc:creator>
      <dc:date>2007-04-19T04:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: System hangs often with out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/system-hangs-often-with-out-of-memory/m-p/3984647#M27948</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Note that when a process is launched it tries to reserve swap. If it can't it acts like there is no memory even if there is memory.&lt;BR /&gt;&lt;BR /&gt;You are out of swap and should increase it. You r memory use is also heavy and you may want to buy some of that as well.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 19 Apr 2007 06:13:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/system-hangs-often-with-out-of-memory/m-p/3984647#M27948</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-04-19T06:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: System hangs often with out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/system-hangs-often-with-out-of-memory/m-p/3984648#M27949</link>
      <description>You have 4 GB of physical memory (RAM) and 4200988kB of swap.&lt;BR /&gt;&lt;BR /&gt;This message:&lt;BR /&gt;Apr 18 16:05:24 bwga090 kernel: Free swap = 0kB&lt;BR /&gt;&lt;BR /&gt;says your programs are using 100% of swap, which means the physical RAM is also 100% in use. Because the kernel has activated the "oom-killer", some program is wanting still more memory. &lt;BR /&gt;&lt;BR /&gt;Examine the software that is running. Are there any memory leaks in the programs you're using? If there are, have them fixed. Adding more RAM when there is a leaking program may hide the symptoms for a while, but a memory leak will eventually eat through any amount of RAM and the problem will re-occur.&lt;BR /&gt;&lt;BR /&gt;If there are no leaking programs, the solution is to _buy more RAM_.&lt;BR /&gt;&lt;BR /&gt;Start by doubling the current amount, at least (from 4 GB to 8 GB). If your current hardware does not allow that, you need a bigger machine.&lt;BR /&gt;&lt;BR /&gt;As a workaround, you can add more swap space, but adding swap when real RAM is needed will give you very bad performance.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Thu, 19 Apr 2007 06:34:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/system-hangs-often-with-out-of-memory/m-p/3984648#M27949</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2007-04-19T06:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: System hangs often with out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/system-hangs-often-with-out-of-memory/m-p/3984649#M27950</link>
      <description>You can install the sysstat package and identify if your system is really out of memory using sar, or it's a kernel/program bug.&lt;BR /&gt;&lt;BR /&gt;How ofted do you have this problem? How much memory your system have, can you post the output of:&lt;BR /&gt;&lt;BR /&gt;free&lt;BR /&gt;swapon -s&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Apr 2007 06:36:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/system-hangs-often-with-out-of-memory/m-p/3984649#M27950</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-04-19T06:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: System hangs often with out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/system-hangs-often-with-out-of-memory/m-p/3984650#M27951</link>
      <description>Hello All,&lt;BR /&gt;&lt;BR /&gt;Thank you very much.&lt;BR /&gt;&lt;BR /&gt;Here is the output of free and swapon -s.&lt;BR /&gt;&lt;BR /&gt;bwga090:/var/log # free&lt;BR /&gt;             total       used       free     shared    buffers     cached&lt;BR /&gt;Mem:       4023012    2850496    1172516          0      40996    1335404&lt;BR /&gt;-/+ buffers/cache:    1474096    2548916&lt;BR /&gt;Swap:      4200988        172    4200816&lt;BR /&gt;bwga090:/var/log # swapon -s&lt;BR /&gt;Filename                                Type            Size    Used    Priority&lt;BR /&gt;/dev/sda2                               partition       4200988 172     -1&lt;BR /&gt;bwga090:/var/log # &lt;BR /&gt;&lt;BR /&gt;and one more thing i forgot to add, this happens every one month or 20 days.&lt;BR /&gt;Mainly this machine is used as a compile machine. and i had written a small script to check the swap,cpu usage,memory usage every 15 minutes.&lt;BR /&gt;&lt;BR /&gt;The last report just before the hang showed a user trying a make(compile) and the load is around 6.00.&lt;BR /&gt;&lt;BR /&gt;If it is a memory leak,how can i approach it? as there are 6-7 users using it for compile and they expect that it should throw error than getting hanged.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Bhaski</description>
      <pubDate>Thu, 19 Apr 2007 07:33:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/system-hangs-often-with-out-of-memory/m-p/3984650#M27951</guid>
      <dc:creator>bhaski</dc:creator>
      <dc:date>2007-04-19T07:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: System hangs often with out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/system-hangs-often-with-out-of-memory/m-p/3984651#M27952</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;The system already has sysstat package,i was not monitoring using sar command(as i didnt know of that).&lt;BR /&gt;&lt;BR /&gt;unfortunate for me sar is giving detail of present day only.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Bhaski</description>
      <pubDate>Thu, 19 Apr 2007 07:58:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/system-hangs-often-with-out-of-memory/m-p/3984651#M27952</guid>
      <dc:creator>bhaski</dc:creator>
      <dc:date>2007-04-19T07:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: System hangs often with out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/system-hangs-often-with-out-of-memory/m-p/3984652#M27953</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Found the sar output for yesterday also.&lt;BR /&gt;The sar output is as below.&lt;BR /&gt;&lt;BR /&gt;15:20:01    kbmemfree kbmemused  %memused kbbuffers  kbcached kbswpfree kbswpused  %swpused  kbswpcad&lt;BR /&gt;15:30:01       821980   3201032     79.57    146732   2251552   4199892      1096      0.03        40&lt;BR /&gt;15:40:01       813220   3209792     79.79    149376   2254048   4199892      1096      0.03        40&lt;BR /&gt;15:50:02       115208   3907804     97.14      1180     42796   1795388   2405600     57.26      7424&lt;BR /&gt;16:30:01      3695652    327360      8.14     12144    238688   4200988         0      0.00         0&lt;BR /&gt;16:40:01      3692440    330572      8.22     13712    239176   4200988         0      0.00         0&lt;BR /&gt;16:50:01      3641792    381220      9.48     15580    253756   4200988         0      0.00         0&lt;BR /&gt;&lt;BR /&gt;The system hanged at 16:00.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Bhaski</description>
      <pubDate>Thu, 19 Apr 2007 08:08:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/system-hangs-often-with-out-of-memory/m-p/3984652#M27953</guid>
      <dc:creator>bhaski</dc:creator>
      <dc:date>2007-04-19T08:08:26Z</dc:date>
    </item>
  </channel>
</rss>

