Re: Still OOM problems with 4.9er kernels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09.12.2016 16:52, Gerhard Wiesinger wrote:
On 09.12.2016 14:40, Michal Hocko wrote:
On Fri 09-12-16 08:06:25, Gerhard Wiesinger wrote:
Hello,

same with latest kernel rc, dnf still killed with OOM (but sometimes
better).

./update.sh: line 40: 1591 Killed ${EXE} update ${PARAMS}
(does dnf clean all;dnf update)
Linux database.intern 4.9.0-0.rc8.git2.1.fc26.x86_64 #1 SMP Wed Dec 7
17:53:29 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Updated bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=1314697
Could you post your oom report please?

E.g. a new one with more than one included, first one after boot ...

Just setup a low mem VM under KVM and it is easily triggerable.

Still enough virtual memory available ...

4.9.0-0.rc8.git2.1.fc26.x86_64

[ 624.862777] ksoftirqd/0: page allocation failure: order:0, mode:0x2080020(GFP_ATOMIC) [ 624.863319] CPU: 0 PID: 3 Comm: ksoftirqd/0 Not tainted 4.9.0-0.rc8.git2.1.fc26.x86_64 #1 [ 624.863410] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.9.3 [ 624.863510] ffffaa62c007f958 ffffffff904774e3 ffffffff90c7dd98 0000000000000000 [ 624.863923] ffffaa62c007f9e0 ffffffff9020e6ea 0208002000000246 ffffffff90c7dd98 [ 624.864019] ffffaa62c007f980 ffff96b900000010 ffffaa62c007f9f0 ffffaa62c007f9a0
[  624.864998] Call Trace:
[  624.865149]  [<ffffffff904774e3>] dump_stack+0x86/0xc3
[  624.865347]  [<ffffffff9020e6ea>] warn_alloc+0x13a/0x170
[  624.865432]  [<ffffffff9020e9e2>] __alloc_pages_slowpath+0x252/0xbb0
[  624.865563]  [<ffffffff9020f74d>] __alloc_pages_nodemask+0x40d/0x4b0
[  624.865675]  [<ffffffff9020f983>] __alloc_page_frag+0x193/0x200
[  624.866024]  [<ffffffff907a1d7e>] __napi_alloc_skb+0x8e/0xf0
[ 624.866113] [<ffffffffc017777d>] page_to_skb.isra.28+0x5d/0x310 [virtio_net] [ 624.866201] [<ffffffffc01794cb>] virtnet_receive+0x2db/0x9a0 [virtio_net]
[  624.867378]  [<ffffffffc0179bad>] virtnet_poll+0x1d/0x80 [virtio_net]
[  624.867494]  [<ffffffff907b501e>] net_rx_action+0x23e/0x470
[  624.867612]  [<ffffffff9091a8cd>] __do_softirq+0xcd/0x4b9
[  624.867704]  [<ffffffff900dd164>] ? smpboot_thread_fn+0x34/0x1f0
[  624.867833]  [<ffffffff900dd25d>] ? smpboot_thread_fn+0x12d/0x1f0
[  624.867924]  [<ffffffff900b7c95>] run_ksoftirqd+0x25/0x80
[  624.868109]  [<ffffffff900dd258>] smpboot_thread_fn+0x128/0x1f0
[  624.868197]  [<ffffffff900dd130>] ? sort_range+0x30/0x30
[  624.868596]  [<ffffffff900d82c2>] kthread+0x102/0x120
[  624.868679]  [<ffffffff909117a0>] ? wait_for_completion+0x110/0x140
[  624.868768]  [<ffffffff900d81c0>] ? kthread_park+0x60/0x60
[  624.868850]  [<ffffffff90917afa>] ret_from_fork+0x2a/0x40
[  843.528656] httpd (2490) used greatest stack depth: 10304 bytes left
[  878.077750] httpd (2976) used greatest stack depth: 10096 bytes left
[93918.861109] netstat (14579) used greatest stack depth: 9488 bytes left
[94050.874669] kworker/dying (6253) used greatest stack depth: 9008 bytes left [95895.765570] kworker/1:1H: page allocation failure: order:0, mode:0x2280020(GFP_ATOMIC|__GFP_NOTRACK) [95895.765819] CPU: 1 PID: 440 Comm: kworker/1:1H Not tainted 4.9.0-0.rc8.git2.1.fc26.x86_64 #1 [95895.765911] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.9.3
[95895.766060] Workqueue: kblockd blk_mq_run_work_fn
[95895.766143] ffffaa62c0257628 ffffffff904774e3 ffffffff90c7dd98 0000000000000000 [95895.766235] ffffaa62c02576b0 ffffffff9020e6ea 0228002000000046 ffffffff90c7dd98 [95895.766325] ffffaa62c0257650 ffff96b900000010 ffffaa62c02576c0 ffffaa62c0257670
[95895.766417] Call Trace:
[95895.766502]  [<ffffffff904774e3>] dump_stack+0x86/0xc3
[95895.766596]  [<ffffffff9020e6ea>] warn_alloc+0x13a/0x170
[95895.766681]  [<ffffffff9020e9e2>] __alloc_pages_slowpath+0x252/0xbb0
[95895.766767]  [<ffffffff9020f74d>] __alloc_pages_nodemask+0x40d/0x4b0
[95895.766866]  [<ffffffff9026db51>] alloc_pages_current+0xa1/0x1f0
[95895.766971]  [<ffffffff90916f17>] ? _raw_spin_unlock+0x27/0x40
[95895.767073]  [<ffffffff90278956>] new_slab+0x316/0x7c0
[95895.767160]  [<ffffffff9027ae8b>] ___slab_alloc+0x3fb/0x5c0
[95895.772611]  [<ffffffff9010b042>] ? cpuacct_charge+0xf2/0x1f0
[95895.773406] [<ffffffffc005850d>] ? alloc_indirect.isra.11+0x1d/0x50 [virtio_ring]
[95895.774327]  [<ffffffff901319d5>] ? rcu_read_lock_sched_held+0x45/0x80
[95895.775212] [<ffffffffc005850d>] ? alloc_indirect.isra.11+0x1d/0x50 [virtio_ring]
[95895.776155]  [<ffffffff9027b0a1>] __slab_alloc+0x51/0x90
[95895.777090]  [<ffffffff9027d141>] __kmalloc+0x251/0x320
[95895.781502] [<ffffffffc005850d>] ? alloc_indirect.isra.11+0x1d/0x50 [virtio_ring] [95895.782309] [<ffffffffc005850d>] alloc_indirect.isra.11+0x1d/0x50 [virtio_ring] [95895.783334] [<ffffffffc0059193>] virtqueue_add_sgs+0x1c3/0x4a0 [virtio_ring]
[95895.784059]  [<ffffffff90068475>] ? kvm_sched_clock_read+0x25/0x40
[95895.784742] [<ffffffffc006665c>] __virtblk_add_req+0xbc/0x220 [virtio_blk] [95895.785419] [<ffffffff901312fd>] ? debug_lockdep_rcu_enabled+0x1d/0x20 [95895.786086] [<ffffffffc0066935>] ? virtio_queue_rq+0x105/0x290 [virtio_blk] [95895.786750] [<ffffffffc006695d>] virtio_queue_rq+0x12d/0x290 [virtio_blk]
[95895.787427]  [<ffffffff9045015d>] __blk_mq_run_hw_queue+0x26d/0x3b0
[95895.788106]  [<ffffffff904502e2>] blk_mq_run_work_fn+0x12/0x20
[95895.789065]  [<ffffffff900d097e>] process_one_work+0x23e/0x6f0
[95895.789741]  [<ffffffff900d08fa>] ? process_one_work+0x1ba/0x6f0
[95895.790444]  [<ffffffff900d0e7e>] worker_thread+0x4e/0x490
[95895.791178]  [<ffffffff900d0e30>] ? process_one_work+0x6f0/0x6f0
[95895.791911]  [<ffffffff900d0e30>] ? process_one_work+0x6f0/0x6f0
[95895.792653]  [<ffffffff90003eec>] ? do_syscall_64+0x6c/0x1f0
[95895.793397]  [<ffffffff900d82c2>] kthread+0x102/0x120
[95895.794212] [<ffffffff90111775>] ? trace_hardirqs_on_caller+0xf5/0x1b0
[95895.794942]  [<ffffffff900d81c0>] ? kthread_park+0x60/0x60
[95895.795689]  [<ffffffff90917afa>] ret_from_fork+0x2a/0x40
[95895.796408] Mem-Info:
[95895.797110] active_anon:8800 inactive_anon:9030 isolated_anon:32
                active_file:263 inactive_file:238 isolated_file:0
                unevictable:0 dirty:0 writeback:330 unstable:0
                slab_reclaimable:5241 slab_unreclaimable:9538
                mapped:470 shmem:9 pagetables:2200 bounce:0
                free:690 free_pcp:68 free_cma:0
[95895.801218] Node 0 active_anon:35200kB inactive_anon:36120kB active_file:1052kB inactive_file:952kB unevictable:0kB isolated(anon):128kB isolated(file):0kB mapped:1880kB dirty:0kB writeback:1320kB shmem:0kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 36kB writeback_tmp:0kB unstable:0kB pages_scanned:179 all_unreclaimable? no [95895.803264] Node 0 DMA free:924kB min:172kB low:212kB high:252kB active_anon:3544kB inactive_anon:3944kB active_file:84kB inactive_file:140kB unevictable:0kB writepending:4kB present:15992kB managed:15908kB mlocked:0kB slab_reclaimable:1728kB slab_unreclaimable:2964kB kernel_stack:84kB pagetables:1396kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[95895.805936] lowmem_reserve[]: 0 117 117 117 117
[95895.806751] Node 0 DMA32 free:1836kB min:1296kB low:1620kB high:1944kB active_anon:31636kB inactive_anon:32164kB active_file:968kB inactive_file:804kB unevictable:0kB writepending:1288kB present:180080kB managed:139012kB mlocked:0kB slab_reclaimable:19236kB slab_unreclaimable:35188kB kernel_stack:1852kB pagetables:7404kB bounce:0kB free_pcp:272kB local_pcp:156kB free_cma:0kB
[95895.809223] lowmem_reserve[]: 0 0 0 0 0
[95895.810071] Node 0 DMA: 36*4kB (H) 29*8kB (H) 22*16kB (H) 6*32kB (H) 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 920kB [95895.812089] Node 0 DMA32: 77*4kB (H) 71*8kB (H) 28*16kB (H) 8*32kB (H) 4*64kB (H) 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1836kB [95895.813979] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
[95895.813981] 1804 total pagecache pages
[95895.814931] 1289 pages in swap cache
[95895.815849] Swap cache stats: add 5288014, delete 5286725, find 11568655/13881082
[95895.816792] Free swap  = 1791816kB
[95895.817706] Total swap = 2064380kB
[95895.819222] 49018 pages RAM
[95895.820145] 0 pages HighMem/MovableOnly
[95895.821039] 10288 pages reserved
[95895.823325] 0 pages cma reserved
[95895.824244] 0 pages hwpoisoned
[95895.825237] SLUB: Unable to allocate memory on node -1, gfp=0x2080020(GFP_ATOMIC) [95895.826140] cache: kmalloc-256, object size: 256, buffer size: 256, default order: 0, min order: 0
[95895.827034]   node 0: slabs: 113, objs: 1808, free: 0
[97883.838418] httpd invoked oom-killer: gfp_mask=0x24201ca(GFP_HIGHUSER_MOVABLE|__GFP_COLD), nodemask=0, order=0, oom_score_adj=0
[97883.843507] httpd cpuset=/ mems_allowed=0
[97883.843601] CPU: 1 PID: 19043 Comm: httpd Not tainted 4.9.0-0.rc8.git2.1.fc26.x86_64 #1 [97883.844628] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.9.3 [97883.845839] ffffaa62c395f958 ffffffff904774e3 ffffaa62c395fb20 ffff96b98b8b3100 [97883.846970] ffffaa62c395f9e0 ffffffff902a8c41 0000000000000000 0000000000000000 [97883.848388] ffffffff90ec6840 ffffaa62c395f990 ffffffff9011183d ffffaa62c395f9b0
[97883.849945] Call Trace:
[97883.851366]  [<ffffffff904774e3>] dump_stack+0x86/0xc3
[97883.852535]  [<ffffffff902a8c41>] dump_header+0x7b/0x24f
[97883.853718]  [<ffffffff9011183d>] ? trace_hardirqs_on+0xd/0x10
[97883.854857]  [<ffffffff902085d3>] oom_kill_process+0x203/0x3e0
[97883.856192]  [<ffffffff90208afb>] out_of_memory+0x13b/0x580
[97883.857334]  [<ffffffff90208bea>] ? out_of_memory+0x22a/0x580
[97883.858590]  [<ffffffff9020f31a>] __alloc_pages_slowpath+0xb8a/0xbb0
[97883.859706]  [<ffffffff9020f74d>] __alloc_pages_nodemask+0x40d/0x4b0
[97883.860854]  [<ffffffff90037de9>] ? sched_clock+0x9/0x10
[97883.862120]  [<ffffffff9026db51>] alloc_pages_current+0xa1/0x1f0
[97883.863251]  [<ffffffff90201d96>] __page_cache_alloc+0x146/0x190
[97883.864449]  [<ffffffff9020366c>] ? pagecache_get_page+0x2c/0x300
[97883.865602]  [<ffffffff90206055>] filemap_fault+0x345/0x790
[97883.866661]  [<ffffffff90206238>] ? filemap_fault+0x528/0x790
[97883.867795]  [<ffffffff903639d9>] ext4_filemap_fault+0x39/0x50
[97883.869289]  [<ffffffff90241ca3>] __do_fault+0x83/0x1d0
[97883.870301]  [<ffffffff90246642>] handle_mm_fault+0x11e2/0x17a0
[97883.871304]  [<ffffffff902454ba>] ? handle_mm_fault+0x5a/0x17a0
[97883.872491]  [<ffffffff9006de16>] __do_page_fault+0x266/0x520
[97883.873406]  [<ffffffff9006e1a8>] trace_do_page_fault+0x58/0x2a0
[97883.874262]  [<ffffffff90067f3a>] do_async_page_fault+0x1a/0xa0
[97883.875168]  [<ffffffff90918e28>] async_page_fault+0x28/0x30
[97883.882611] Mem-Info:
[97883.883747] active_anon:2915 inactive_anon:3376 isolated_anon:0
                active_file:3902 inactive_file:3639 isolated_file:0
                unevictable:0 dirty:205 writeback:0 unstable:0
                slab_reclaimable:9856 slab_unreclaimable:9682
                mapped:3722 shmem:59 pagetables:2080 bounce:0
                free:748 free_pcp:15 free_cma:0
[97883.890766] Node 0 active_anon:11660kB inactive_anon:13504kB active_file:15608kB inactive_file:14556kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:14888kB dirty:820kB writeback:0kB shmem:0kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 236kB writeback_tmp:0kB unstable:0kB pages_scanned:168352 all_unreclaimable? yes [97883.893210] Node 0 DMA free:1468kB min:172kB low:212kB high:252kB active_anon:1716kB inactive_anon:912kB active_file:2292kB inactive_file:876kB unevictable:0kB writepending:24kB present:15992kB managed:15908kB mlocked:0kB slab_reclaimable:4652kB slab_unreclaimable:2852kB kernel_stack:76kB pagetables:496kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[97883.898799] lowmem_reserve[]: 0 117 117 117 117
[97883.899735] Node 0 DMA32 free:1524kB min:1296kB low:1620kB high:1944kB active_anon:9944kB inactive_anon:12572kB active_file:13316kB inactive_file:13680kB unevictable:0kB writepending:768kB present:180080kB managed:139012kB mlocked:0kB slab_reclaimable:34772kB slab_unreclaimable:35876kB kernel_stack:1828kB pagetables:7824kB bounce:0kB free_pcp:60kB local_pcp:52kB free_cma:0kB
[97883.903033] lowmem_reserve[]: 0 0 0 0 0
[97883.904371] Node 0 DMA: 36*4kB (H) 29*8kB (H) 22*16kB (H) 9*32kB (H) 3*64kB (H) 2*128kB (H) 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1464kB [97883.906442] Node 0 DMA32: 13*4kB (H) 4*8kB (H) 13*16kB (H) 8*32kB (H) 9*64kB (H) 1*128kB (H) 1*256kB (H) 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1508kB [97883.908598] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
[97883.908600] 10093 total pagecache pages
[97883.909623] 2486 pages in swap cache
[97883.910981] Swap cache stats: add 5936545, delete 5934059, find 11939248/14560523
[97883.911932] Free swap  = 1924040kB
[97883.912844] Total swap = 2064380kB
[97883.913799] 49018 pages RAM
[97883.915101] 0 pages HighMem/MovableOnly
[97883.916149] 10288 pages reserved
[97883.917465] 0 pages cma reserved
[97883.918528] 0 pages hwpoisoned
[97883.919635] [ pid ] uid tgid total_vm rss nr_ptes nr_pmds swapents oom_score_adj name [97883.919656] [ 442] 0 442 15414 276 31 3 89 0 systemd-journal [97883.919661] [ 479] 0 479 11179 0 22 3 323 -1000 systemd-udevd [97883.919666] [ 535] 0 535 13888 0 28 3 114 -1000 auditd [97883.919671] [ 559] 81 559 11565 85 26 3 88 -900 dbus-daemon [97883.919675] [ 562] 70 562 12026 0 28 3 108 0 avahi-daemon [97883.919680] [ 578] 0 578 182739 11 279 4 263 0 rsyslogd [97883.919684] [ 579] 0 579 11890 26 27 3 105 0 systemd-logind [97883.919688] [ 580] 0 580 123902 265 223 3 1889 0 httpd [97883.919693] [ 581] 70 581 12026 0 26 3 83 0 avahi-daemon [97883.919697] [ 596] 0 596 1095 0 8 3 35 0 acpid [97883.919701] [ 614] 0 614 33234 1 18 4 155 0 crond [97883.919706] [ 630] 0 630 29260 0 9 3 32 0 agetty [97883.919710] [ 639] 0 639 25089 70 49 3 430 0 sendmail [97883.919715] [ 643] 0 643 20785 0 43 3 231 -1000 sshd [97883.919719] [ 674] 51 674 23428 0 46 3 415 0 sendmail [97883.919724] [ 723] 0 723 44394 148 38 3 2134 0 munin-node [97883.919728] [ 2513] 38 2513 6971 23 18 3 130 0 ntpd [97883.919733] [13908] 0 13908 36690 0 74 3 320 0 sshd [97883.919738] [13910] 0 13910 15956 1 35 3 235 0 systemd [97883.919742] [13913] 0 13913 60419 0 49 4 463 0 (sd-pam) [97883.919747] [13918] 0 13918 36690 147 71 3 280 0 sshd [97883.919751] [13930] 0 13930 30730 1 13 4 285 0 bash [97883.919756] [13958] 0 13958 29971 0 13 3 55 0 update.sh [97883.919761] [13985] 0 13985 159639 4589 192 3 26191 0 dnf [97883.919766] [17393] 48 17393 177835 704 238 3 1711 0 httpd [97883.919771] [19018] 48 19018 128626 1434 222 3 1342 0 httpd [97883.919774] [19043] 48 19043 128067 2010 219 3 1492 0 httpd [97883.919776] Out of memory: Kill process 13985 (dnf) score 54 or sacrifice child [97883.920895] Killed process 13985 (dnf) total-vm:638556kB, anon-rss:12840kB, file-rss:5516kB, shmem-rss:0kB [97883.986808] oom_reaper: reaped process 13985 (dnf), now anon-rss:0kB, file-rss:1552kB, shmem-rss:0kB


Forgot to mention:
rpm DB is also mostly not usable afterwards, needs reboot:
error: rpmdb: BDB0113 Thread/process 13985/140089649317632 failed: BDB1507 Thread died in Berkeley DB library error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 -  (-30973)
error: cannot open Packages database in /var/lib/rpm
Error: Error: rpmdb open failed


Thank you.

Ciao,

Gerhard


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]