- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我写了我自己的内核模块,我得到了这个错误:内核 panic - 不同步:内存不足且没有可终止的进程......但是当我查看 htop 时,我看到系统仅使用 3G 的 700 M。所以他们仍然有内存。
我使用自定义 linux 内核 2.6.32.61,在这个模块中我必须经常分配 188 B。我使用 kmem_cache_alloc() 来分配这个内存。这个错误很奇怪,因为它是随机发生的。有时我会立即收到此错误,当我初始化模块时,有时模块会运行几分钟。有时我会收到此错误:(见下文)。
你能帮我解决这个错误吗?或者您能否提供有关错误消息的更多信息(见下文)?
在这个错误消息上我看到了我使用的函数,但是当我查看它时,它看起来很正常,所以我不知道为什么会出现这个错误。
感谢您的帮助。
PS:抱歉我的英语不好
sequencer_threa invoked oom-killer: gfp_mask=0xd0, order=0, oom_adj=0
Sep 25 14:20:51 optisat kernel: [ 159.043727] sequencer_threa cpuset=/ mems_allowed=0
Sep 25 14:20:51 optisat kernel: [ 159.043730] Pid: 2792, comm: sequencer_threa Not tainted 2.6.32.61 #18
Sep 25 14:20:51 optisat kernel: [ 159.043731] Call Trace:
Sep 25 14:20:51 optisat kernel: [ 159.043736] [<c10919ce>] oom_kill_process+0x9e/0x2c0
Sep 25 14:20:51 optisat kernel: [ 159.043738] [<c1091fcd>] ? select_bad_process+0xad/0xf0
Sep 25 14:20:51 optisat kernel: [ 159.043740] [<c1092053>] __out_of_memory+0x43/0xb0
Sep 25 14:20:51 optisat kernel: [ 159.043742] [<c1092332>] out_of_memory+0x52/0xb0
Sep 25 14:20:51 optisat kernel: [ 159.043744] [<c109517c>] __alloc_pages_nodemask+0x55c/0x570
Sep 25 14:20:51 optisat kernel: [ 159.043747] [<c12c2387>] cache_alloc_refill+0x2ea/0x5f6
Sep 25 14:20:51 optisat kernel: [ 159.043750] [<c10b5ad6>] kmem_cache_alloc+0x136/0x150
Sep 25 14:20:51 optisat kernel: [ 159.043753] [<f9d94542>] ? alloc_ts_pkt+0x12/0x30 [optimux_rx]
Sep 25 14:20:51 optisat kernel: [ 159.043756] [<f9d94542>] alloc_ts_pkt+0x12/0x30 [optimux_rx]
Sep 25 14:20:51 optisat kernel: [ 159.043758] [<f9d9190c>] build_t2_mi_pkts+0x12c/0x360 [optimux_rx]
Sep 25 14:20:51 optisat kernel: [ 159.043760] [<c10b5a9d>] ? kmem_cache_alloc+0xfd/0x150
Sep 25 14:20:51 optisat kernel: [ 159.043763] [<f9d92f14>] parse_ref_packet+0x13d4/0x1e50 [optimux_rx]
Sep 25 14:20:51 optisat kernel: [ 159.043765] [<c12c6e02>] ? _spin_unlock_irq+0x22/0x30
Sep 25 14:20:51 optisat kernel: [ 159.043768] [<c105cbcb>] ? trace_hardirqs_on+0xb/0x10
Sep 25 14:20:51 optisat kernel: [ 159.043770] [<c1050eed>] ? sched_clock_cpu+0xed/0x160
Sep 25 14:20:51 optisat kernel: [ 159.043773] [<c1023af0>] ? finish_task_switch+0x0/0xd0
Sep 25 14:20:51 optisat kernel: [ 159.043776] [<c11ca89b>] ? e1000e_set_d3_lplu_state+0x15b/0x170
Sep 25 14:20:51 optisat kernel: [ 159.043778] [<c12c6db1>] ? _spin_unlock_irqrestore+0x31/0x60
Sep 25 14:20:51 optisat kernel: [ 159.043780] [<c105cb54>] ? trace_hardirqs_on_caller+0x114/0x180
Sep 25 14:20:51 optisat kernel: [ 159.043782] [<c105cbcb>] ? trace_hardirqs_on+0xb/0x10
Sep 25 14:20:51 optisat kernel: [ 159.043784] [<f9d96ac9>] sequencer_thread+0x239/0x4a0 [optimux_rx]
Sep 25 14:20:51 optisat kernel: [ 159.043787] [<c104b450>] ? autoremove_wake_function+0x0/0x40
Sep 25 14:20:51 optisat kernel: [ 159.043790] [<f9d96890>] ? sequencer_thread+0x0/0x4a0 [optimux_rx]
Sep 25 14:20:51 optisat kernel: [ 159.043792] [<c104aea5>] kthread+0x65/0x70
Sep 25 14:20:51 optisat kernel: [ 159.043794] [<c104ae40>] ? kthread+0x0/0x70
Sep 25 14:20:51 optisat kernel: [ 159.043796] [<c10038eb>] kernel_thread_helper+0x7/0x1c
Sep 25 14:20:51 optisat kernel: [ 159.043797] Mem-Info:
Sep 25 14:20:51 optisat kernel: [ 159.043798] DMA per-cpu:
Sep 25 14:20:51 optisat kernel: [ 159.043799] CPU 0: hi: 0, btch: 1 usd: 0
Sep 25 14:20:51 optisat kernel: [ 159.043800] CPU 1: hi: 0, btch: 1 usd: 0
Sep 25 14:20:51 optisat kernel: [ 159.043801] CPU 2: hi: 0, btch: 1 usd: 0
Sep 25 14:20:51 optisat kernel: [ 159.043802] CPU 3: hi: 0, btch: 1 usd: 0
Sep 25 14:20:51 optisat kernel: [ 159.043803] Normal per-cpu:
Sep 25 14:20:51 optisat kernel: [ 159.043804] CPU 0: hi: 186, btch: 31 usd: 144
Sep 25 14:20:51 optisat kernel: [ 159.043805] CPU 1: hi: 186, btch: 31 usd: 197
Sep 25 14:20:51 optisat kernel: [ 159.043806] CPU 2: hi: 186, btch: 31 usd: 143
Sep 25 14:20:51 optisat kernel: [ 159.043807] CPU 3: hi: 186, btch: 31 usd: 0
Sep 25 14:20:51 optisat kernel: [ 159.043808] HighMem per-cpu:
Sep 25 14:20:51 optisat kernel: [ 159.043809] CPU 0: hi: 186, btch: 31 usd: 172
Sep 25 14:20:51 optisat kernel: [ 159.043810] CPU 1: hi: 186, btch: 31 usd: 170
Sep 25 14:20:51 optisat kernel: [ 159.043811] CPU 2: hi: 186, btch: 31 usd: 169
Sep 25 14:20:51 optisat kernel: [ 159.043812] CPU 3: hi: 186, btch: 31 usd: 0
Sep 25 14:20:51 optisat kernel: [ 159.043814] active_anon:4330 inactive_anon:1137 isolated_anon:0
Sep 25 14:20:51 optisat kernel: [ 159.043815] active_file:1373 inactive_file:2388 isolated_file:0
Sep 25 14:20:51 optisat kernel: [ 159.043815] unevictable:0 dirty:79 writeback:0 unstable:0
Sep 25 14:20:51 optisat kernel: [ 159.043816] free:607286 slab_reclaimable:2764 slab_unreclaimable:190380
Sep 25 14:20:51 optisat kernel: [ 159.043816] mapped:1813 shmem:59 pagetables:160 bounce:0
Sep 25 14:20:51 optisat kernel: [ 159.043819] DMA free:3460kB min:64kB low:80kB high:96kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15668kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:11592kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
Sep 25 14:20:51 optisat kernel: [ 159.043822] lowmem_reserve[]: 0 859 3236 3236
Sep 25 14:20:51 optisat kernel: [ 159.043826] Normal free:2732kB min:3716kB low:4644kB high:5572kB active_anon:0kB inactive_anon:0kB active_file:4kB inactive_file:68kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:879840kB mlocked:0kB dirty:0kB writeback:0kB mapped:4kB shmem:0kB slab_reclaimable:11056kB slab_unreclaimable:749928kB kernel_stack:952kB pagetables:640kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:28 all_unreclaimable? no
Sep 25 14:20:51 optisat kernel: [ 159.043829] lowmem_reserve[]: 0 0 19015 19015
Sep 25 14:20:51 optisat kernel: [ 159.043833] HighMem free:2422952kB min:512kB low:3080kB high:5652kB active_anon:17320kB inactive_anon:4548kB active_file:5488kB inactive_file:9484kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:2433944kB mlocked:0kB dirty:316kB writeback:0kB mapped:7248kB shmem:236kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
Sep 25 14:20:51 optisat kernel: [ 159.043836] lowmem_reserve[]: 0 0 0 0
Sep 25 14:20:51 optisat kernel: [ 159.043838] DMA: 2*4kB 2*8kB 1*16kB 2*32kB 2*64kB 3*128kB 1*256kB 1*512kB 0*1024kB 1*2048kB 0*4096kB = 3432kB
Sep 25 14:20:51 optisat kernel: [ 159.043844] Normal: 16*4kB 1*8kB 0*16kB 0*32kB 1*64kB 1*128kB 0*256kB 1*512kB 0*1024kB 1*2048kB 0*4096kB = 2824kB
Sep 25 14:20:51 optisat kernel: [ 159.043850] HighMem: 1485*4kB 808*8kB 471*16kB 204*32kB 99*64kB 36*128kB 5*256kB 1*512kB 2*1024kB 3*2048kB 580*4096kB = 2423076kB
Sep 25 14:20:51 optisat kernel: [ 159.043855] 3815 total pagecache pages
Sep 25 14:20:51 optisat kernel: [ 159.043856] 0 pages in swap cache
Sep 25 14:20:51 optisat kernel: [ 159.043857] Swap cache stats: add 0, delete 0, find 0/0
Sep 25 14:20:51 optisat kernel: [ 159.043858] Free swap = 1316856kB
Sep 25 14:20:51 optisat kernel: [ 159.043859] Total swap = 1316856kB
Sep 25 14:20:51 optisat kernel: [ 159.048960] 849904 pages RAM
Sep 25 14:20:51 optisat kernel: [ 159.048961] 622594 pages HighMem
Sep 25 14:20:51 optisat kernel: [ 159.048962] 35058 pages reserved
Sep 25 14:20:51 optisat kernel: [ 159.048963] 8458 pages shared
Sep 25 14:20:51 optisat kernel: [ 159.048964] 202716 pages non-shared
Sep 25 14:20:51 optisat kernel: [ 159.048965] Out of memory: kill process 2797 (make) score 2343 or a child
Sep 25 14:20:51 optisat kernel: [ 159.049026] Killed process 2998 (beam.smp)
Sep 25 14:20:51 optisat kernel: [ 159.094076] sequencer_threa invoked oom-killer: gfp_mask=0xd0, order=0, oom_adj=0
Sep 25 14:20:51 optisat kernel: [ 159.094080] sequencer_threa cpuset=/ mems_allowed=0
Sep 25 14:20:51 optisat kernel: [ 159.094082] Pid: 2792, comm: sequencer_threa Not tainted 2.6.32.61 #18
Sep 25 14:20:51 optisat kernel: [ 159.094084] Call Trace:
Sep 25 14:20:51 optisat kernel: [ 159.094088] [<c10919ce>] oom_kill_process+0x9e/0x2c0
Sep 25 14:20:51 optisat kernel: [ 159.094090] [<c1091fcd>] ? select_bad_process+0xad/0xf0
Sep 25 14:20:51 optisat kernel: [ 159.094092] [<c1092053>] __out_of_memory+0x43/0xb0
Sep 25 14:20:51 optisat kernel: [ 159.094094] [<c1092332>] out_of_memory+0x52/0xb0
Sep 25 14:20:51 optisat kernel: [ 159.094097] [<c109517c>] __alloc_pages_nodemask+0x55c/0x570
Sep 25 14:20:51 optisat kernel: [ 159.094100] [<c12c2387>] cache_alloc_refill+0x2ea/0x5f6
Sep 25 14:20:51 optisat kernel: [ 159.094103] [<c10b5ad6>] kmem_cache_alloc+0x136/0x150
Sep 25 14:20:51 optisat kernel: [ 159.094107] [<f9d94542>] ? alloc_ts_pkt+0x12/0x30 [optimux_rx]
Sep 25 14:20:51 optisat kernel: [ 159.094109] [<f9d94542>] alloc_ts_pkt+0x12/0x30 [optimux_rx]
Sep 25 14:20:51 optisat kernel: [ 159.094111] [<f9d92b04>] parse_ref_packet+0xfc4/0x1e50 [optimux_rx]
Sep 25 14:20:51 optisat kernel: [ 159.094114] [<c105a89b>] ? trace_hardirqs_off+0xb/0x10
Sep 25 14:20:51 optisat kernel: [ 159.094116] [<c1050f05>] ? sched_clock_cpu+0x105/0x160
Sep 25 14:20:51 optisat kernel: [ 159.094119] [<c1050eed>] ? sched_clock_cpu+0xed/0x160
Sep 25 14:20:51 optisat kernel: [ 159.094121] [<c10b45e3>] ? cache_free_debugcheck+0xe3/0x300
Sep 25 14:20:51 optisat kernel: [ 159.094124] [<c113d465>] ? __debug_check_no_obj_freed+0x125/0x190
Sep 25 14:20:51 optisat kernel: [ 159.094125] [<c105a89b>] ? trace_hardirqs_off+0xb/0x10
Sep 25 14:20:51 optisat kernel: [ 159.094128] [<c105cbcb>] ? trace_hardirqs_on+0xb/0x10
Sep 25 14:20:51 optisat kernel: [ 159.094130] [<f9d969da>] sequencer_thread+0x14a/0x4a0 [optimux_rx]
Sep 25 14:20:51 optisat kernel: [ 159.094134] [<c104b450>] ? autoremove_wake_function+0x0/0x40
Sep 25 14:20:51 optisat kernel: [ 159.094136] [<f9d96890>] ? sequencer_thread+0x0/0x4a0 [optimux_rx]
Sep 25 14:20:51 optisat kernel: [ 159.094139] [<c104aea5>] kthread+0x65/0x70
Sep 25 14:20:51 optisat kernel: [ 159.094141] [<c104ae40>] ? kthread+0x0/0x70
Sep 25 14:20:51 optisat kernel: [ 159.094143] [<c10038eb>] kernel_thread_helper+0x7/0x1c
Sep 25 14:20:51 optisat kernel: [ 159.094144] Mem-Info:
Sep 25 14:20:51 optisat kernel: [ 159.094145] DMA per-cpu:
Sep 25 14:20:51 optisat kernel: [ 159.094146] CPU 0: hi: 0, btch: 1 usd: 0
Sep 25 14:20:51 optisat kernel: [ 159.094147] CPU 1: hi: 0, btch: 1 usd: 0
Sep 25 14:20:51 optisat kernel: [ 159.094148] CPU 2: hi: 0, btch: 1 usd: 0
Sep 25 14:20:51 optisat kernel: [ 159.094149] CPU 3: hi: 0, btch: 1 usd: 0
Sep 25 14:20:51 optisat kernel: [ 159.094150] Normal per-cpu:
Sep 25 14:20:51 optisat kernel: [ 159.094152] CPU 0: hi: 186, btch: 31 usd: 165
Sep 25 14:20:51 optisat kernel: [ 159.094153] CPU 1: hi: 186, btch: 31 usd: 204
Sep 25 14:20:51 optisat kernel: [ 159.094154] CPU 2: hi: 186, btch: 31 usd: 143
Sep 25 14:20:51 optisat kernel: [ 159.094155] CPU 3: hi: 186, btch: 31 usd: 33
Sep 25 14:20:51 optisat kernel: [ 159.094156] HighMem per-cpu:
Sep 25 14:20:51 optisat kernel: [ 159.094156] CPU 0: hi: 186, btch: 31 usd: 172
Sep 25 14:20:51 optisat kernel: [ 159.094157] CPU 1: hi: 186, btch: 31 usd: 170
Sep 25 14:20:51 optisat kernel: [ 159.094158] CPU 2: hi: 186, btch: 31 usd: 169
Sep 25 14:20:51 optisat kernel: [ 159.094160] CPU 3: hi: 186, btch: 31 usd: 116
Sep 25 14:20:51 optisat kernel: [ 159.094162] active_anon:4329 inactive_anon:1041 isolated_anon:0
Sep 25 14:20:51 optisat kernel: [ 159.094163] active_file:1394 inactive_file:2381 isolated_file:0
Sep 25 14:20:51 optisat kernel: [ 159.094163] unevictable:0 dirty:92 writeback:0 unstable:0
Sep 25 14:20:51 optisat kernel: [ 159.094164] free:607290 slab_reclaimable:2518 slab_unreclaimable:190594
Sep 25 14:20:51 optisat kernel: [ 159.094165] mapped:1744 shmem:59 pagetables:155 bounce:0
Sep 25 14:20:51 optisat kernel: [ 159.094168] DMA free:3460kB min:64kB low:80kB high:96kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15668kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:11592kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
Sep 25 14:20:51 optisat kernel: [ 159.094171] lowmem_reserve[]: 0 859 3236 3236
Sep 25 14:20:51 optisat kernel: [ 159.094175] Normal free:2872kB min:3716kB low:4644kB high:5572kB active_anon:0kB inactive_anon:0kB active_file:4kB inactive_file:68kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:879840kB mlocked:0kB dirty:0kB writeback:0kB mapped:4kB shmem:0kB slab_reclaimable:10072kB slab_unreclaimable:750784kB kernel_stack:952kB pagetables:620kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
Sep 25 14:20:51 optisat kernel: [ 159.094179] lowmem_reserve[]: 0 0 19015 19015
Sep 25 14:20:51 optisat kernel: [ 159.094183] HighMem free:2422828kB min:512kB low:3080kB high:5652kB active_anon:17316kB inactive_anon:4164kB active_file:5572kB inactive_file:9456kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:2433944kB mlocked:0kB dirty:368kB writeback:0kB mapped:6972kB shmem:236kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
Sep 25 14:20:51 optisat kernel: [ 159.094186] lowmem_reserve[]: 0 0 0 0
Sep 25 14:20:51 optisat kernel: [ 159.094188] DMA: 2*4kB 2*8kB 1*16kB 2*32kB 2*64kB 3*128kB 1*256kB 1*512kB 0*1024kB 1*2048kB 0*4096kB = 3432kB
Sep 25 14:20:51 optisat kernel: [ 159.094194] Normal: 28*4kB 1*8kB 0*16kB 0*32kB 1*64kB 1*128kB 0*256kB 1*512kB 0*1024kB 1*2048kB 0*4096kB = 2872kB
Sep 25 14:20:51 optisat kernel: [ 159.094200] HighMem: 1454*4kB 808*8kB 471*16kB 204*32kB 99*64kB 36*128kB 5*256kB 1*512kB 2*1024kB 3*2048kB 580*4096kB = 2422952kB
Sep 25 14:20:51 optisat kernel: [ 159.094206] 3790 total pagecache pages
Sep 25 14:20:51 optisat kernel: [ 159.094207] 0 pages in swap cache
Sep 25 14:20:51 optisat kernel: [ 159.094208] Swap cache stats: add 0, delete 0, find 0/0
Sep 25 14:20:51 optisat kernel: [ 159.094209] Free swap = 1316856kB
Sep 25 14:20:51 optisat kernel: [ 159.094209] Total swap = 1316856kB
Sep 25 14:20:51 optisat kernel: [ 159.099045] 849904 pages RAM
Sep 25 14:20:51 optisat kernel: [ 159.099046] 622594 pages HighMem
Sep 25 14:20:51 optisat kernel: [ 159.099047] 35058 pages reserved
Sep 25 14:20:51 optisat kernel: [ 159.099048] 8161 pages shared
Sep 25 14:20:51 optisat kernel: [ 159.099048] 202610 pages non-shared
Sep 25 14:20:51 optisat kernel: [ 159.099050] Out of memory: kill process 2459 (dbus-daemon) score 743 or a child
Sep 25 14:20:51 optisat kernel: [ 159.099114] Killed process 2459 (dbus-daemon)
Sep 25 14:20:51 optisat kernel: [ 159.112749] htop invoked oom-killer: gfp_mask=0x800d0, order=0, oom_adj=0
Sep 25 14:20:51 optisat kernel: [ 159.112753] htop cpuset=/ mems_allowed=0
Sep 25 14:20:51 optisat kernel: [ 159.112755] Pid: 3074, comm: htop Not tainted 2.6.32.61 #18
Sep 25 14:20:51 optisat kernel: [ 159.112756] Call Trace:
Sep 25 14:20:51 optisat kernel: [ 159.112761] [<c10919ce>] oom_kill_process+0x9e/0x2c0
Sep 25 14:20:51 optisat kernel: [ 159.112764] [<c1091fcd>] ? select_bad_process+0xad/0xf0
Sep 25 14:20:51 optisat kernel: [ 159.112766] [<c1092053>] __out_of_memory+0x43/0xb0
Sep 25 14:20:51 optisat kernel: [ 159.112768] [<c1092332>] out_of_memory+0x52/0xb0
Sep 25 14:20:51 optisat kernel: [ 159.112770] [<c109517c>] __alloc_pages_nodemask+0x55c/0x570
Sep 25 14:20:51 optisat kernel: [ 159.112773] [<c1101430>] ? proc_info_read+0x0/0xc0
Sep 25 14:20:51 optisat kernel: [ 159.112776] [<c10951a7>] __get_free_pages+0x17/0x30
Sep 25 14:20:51 optisat kernel: [ 159.112778] [<c110146b>] proc_info_read+0x3b/0xc0
Sep 25 14:20:51 optisat kernel: [ 159.112780] [<c1101430>] ? proc_info_read+0x0/0xc0
Sep 25 14:20:51 optisat kernel: [ 159.112783] [<c10bfa34>] vfs_read+0x84/0x180
Sep 25 14:20:51 optisat kernel: [ 159.112785] [<c1101430>] ? proc_info_read+0x0/0xc0
Sep 25 14:20:51 optisat kernel: [ 159.112787] [<c10bfb68>] sys_read+0x38/0x70
Sep 25 14:20:51 optisat kernel: [ 159.112789] [<c1002cd4>] sysenter_do_call+0x12/0x32
Sep 25 14:20:51 optisat kernel: [ 159.112790] Mem-Info:
Sep 25 14:20:51 optisat kernel: [ 159.112791] DMA per-cpu:
Sep 25 14:20:51 optisat kernel: [ 159.112792] CPU 0: hi: 0, btch: 1 usd: 0
Sep 25 14:20:51 optisat kernel: [ 159.112794] CPU 1: hi: 0, btch: 1 usd: 0
Sep 25 14:20:51 optisat kernel: [ 159.112795] CPU 2: hi: 0, btch: 1 usd: 0
Sep 25 14:20:51 optisat kernel: [ 159.112796] CPU 3: hi: 0, btch: 1 usd: 0
Sep 25 14:20:51 optisat kernel: [ 159.112797] Normal per-cpu:
Sep 25 14:20:51 optisat kernel: [ 159.112798] CPU 0: hi: 186, btch: 31 usd: 53
Sep 25 14:20:51 optisat kernel: [ 159.112800] CPU 1: hi: 186, btch: 31 usd: 175
Sep 25 14:20:51 optisat kernel: [ 159.112801] CPU 2: hi: 186, btch: 31 usd: 160
Sep 25 14:20:51 optisat kernel: [ 159.112802] CPU 3: hi: 186, btch: 31 usd: 57
Sep 25 14:20:51 optisat kernel: [ 159.112803] HighMem per-cpu:
Sep 25 14:20:51 optisat kernel: [ 159.112804] CPU 0: hi: 186, btch: 31 usd: 172
Sep 25 14:20:51 optisat kernel: [ 159.112805] CPU 1: hi: 186, btch: 31 usd: 170
Sep 25 14:20:51 optisat kernel: [ 159.112806] CPU 2: hi: 186, btch: 31 usd: 157
Sep 25 14:20:51 optisat kernel: [ 159.112807] CPU 3: hi: 186, btch: 31 usd: 113
Sep 25 14:20:51 optisat kernel: [ 159.112810] active_anon:4201 inactive_anon:1114 isolated_anon:0
Sep 25 14:20:51 optisat kernel: [ 159.112811] active_file:1394 inactive_file:2326 isolated_file:0
Sep 25 14:20:51 optisat kernel: [ 159.112811] unevictable:0 dirty:92 writeback:0 unstable:0
Sep 25 14:20:51 optisat kernel: [ 159.112812] free:607509 slab_reclaimable:2518 slab_unreclaimable:190569
Sep 25 14:20:51 optisat kernel: [ 159.112813] mapped:1744 shmem:59 pagetables:155 bounce:0
Sep 25 14:20:51 optisat kernel: [ 159.112816] DMA free:3460kB min:64kB low:80kB high:96kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15668kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:11592kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
Sep 25 14:20:51 optisat kernel: [ 159.112819] lowmem_reserve[]: 0 859 3236 3236
Sep 25 14:20:51 optisat kernel: [ 159.112824] Normal free:3500kB min:3716kB low:4644kB high:5572kB active_anon:0kB inactive_anon:0kB active_file:4kB inactive_file:68kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:879840kB mlocked:0kB dirty:0kB writeback:0kB mapped:4kB shmem:0kB slab_reclaimable:10072kB slab_unreclaimable:750784kB kernel_stack:952kB pagetables:620kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
Sep 25 14:20:51 optisat kernel: [ 159.112828] lowmem_reserve[]: 0 0 19015 19015
Sep 25 14:20:51 optisat kernel: [ 159.112832] HighMem free:2423076kB min:512kB low:3080kB high:5652kB active_anon:16804kB inactive_anon:4456kB active_file:5572kB inactive_file:9236kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:2433944kB mlocked:0kB dirty:368kB writeback:0kB mapped:6972kB shmem:236kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:96 all_unreclaimable? no
Sep 25 14:20:51 optisat kernel: [ 159.112836] lowmem_reserve[]: 0 0 0 0
Sep 25 14:20:51 optisat kernel: [ 159.112838] DMA: 2*4kB 2*8kB 1*16kB 2*32kB 2*64kB 3*128kB 1*256kB 1*512kB 0*1024kB 1*2048kB 0*4096kB = 3432kB
Sep 25 14:20:51 optisat kernel: [ 159.112844] Normal: 161*4kB 12*8kB 1*16kB 0*32kB 1*64kB 1*128kB 0*256kB 1*512kB 0*1024kB 1*2048kB 0*4096kB = 3508kB
Sep 25 14:20:51 optisat kernel: [ 159.112850] HighMem: 1440*4kB 802*8kB 471*16kB 211*32kB 101*64kB 36*128kB 5*256kB 1*512kB 2*1024kB 3*2048kB 580*4096kB = 2423200kB
Sep 25 14:20:51 optisat kernel: [ 159.112856] 3790 total pagecache pages
Sep 25 14:20:51 optisat kernel: [ 159.112857] 0 pages in swap cache
Sep 25 14:20:51 optisat kernel: [ 159.112858] Swap cache stats: add 0, delete 0, find 0/0
Sep 25 14:20:51 optisat kernel: [ 159.112859] Free swap = 1316856kB
Sep 25 14:20:51 optisat kernel: [ 159.112860] Total swap = 1316856kB
Sep 25 14:20:51 optisat kernel: [ 159.117742] 849904 pages RAM
Sep 25 14:20:51 optisat kernel: [ 159.117743] 622594 pages HighMem
Sep 25 14:20:51 optisat kernel: [ 159.117744] 35058 pages reserved
Sep 25 14:20:51 optisat kernel: [ 159.117745] 8060 pages shared
Sep 25 14:20:51 optisat kernel: [ 159.117746] 202704 pages non-shared
Sep 25 14:20:51 optisat kernel: [ 159.117748] Out of memory: kill process 1897 (rpc.statd) score 601 or a child
Sep 25 14:20:51 optisat kernel: [ 159.117808] Killed process 1897 (rpc.statd)
最佳答案
您可能遇到内存不足问题的原因有多种,首先是 kmem_cache_create() 请求的足够大的连续内存不足。请注意,我从提供的输出中怀疑 kmem_cache_create() 使用了 SLAB 层。
从 dmesg
输出中似乎缺少一行后跟类似于下表的表格,此表格应提供有关导致 OOM 错误的进程的更多信息以及 oom_adj 分数和驻留进程使用的内存。 oom_adj_score 越高,进程被杀死的可能性就越大。
kernel: [ pid ] uid tgid total_vm rss cpu oom_adj oom_score_adj name
尝试使用以下命令来获取 dmesg
输出中的更多信息: dmesg -l info,notice,warn,err,crit,alert,emerg
此外,您可能还需要考虑在/etc/sysctl.conf 文件中设置以下内容并运行 sysctl -p
(以避免重启):
vm.overcommit_memory = 2
vm.overcommit_ratio = 80
引用这个link
关于c - 内存未满时Linux内核模块OOM,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26041288/
这里就涉及到一个问题,到底Kill掉谁呢?一般稍微了解一些Linux内核的同学第一反应是谁用的最多,就Kill掉谁。这当然是Linux内核首先考虑的一种重要因素,但是也不完全是这样的,我们查一些Li
这个问题在这里已经有了答案: Set a JVM to dump heap when OutOfMemoryError is thrown (2 个答案) 关闭 5 年前。 我是JAVA新手。我在用
我们正在使用 Fitnesse 对复杂的基于 Web 的应用程序进行验收测试。全套流程需要几个小时才能通过,因此我们使用多个流程。设置如下: maven fork Fitnesse 服务器进程 mav
我正在Tensorflow的LSTM-RNN上训练一些音乐数据,并且遇到了我不明白的一些GPU内存分配问题:当实际上似乎还有足够的VRAM可用时,我遇到了OOM。 一些背景: 我正在使用6GB的GTX
我正在使用 tf 运行 seq2seq 模型,当使用 tf.train.Saver 从检查点文件加载参数时,推理程序运行良好。但是在使用 freeze_graph.py(使用 tf.framework
我有一个问题需要用 JS 中的某种继承来解决。 我设置了一个小的 jsfiddle 来解释,看: V1 http://jsfiddle.net/FFTj4/5/ function Vehicule(n
这里是 JS 的新手,所以如果我遗漏了一些明显的东西,我深表歉意。尝试构建一个随机数生成器(它以嵌套方式工作,所以有点像随机数元组列表),但我收到此代码的 OOM 错误。 (比如,如果我尝试做类似 g
我有一个需要显示全屏图像的应用程序,我从可绘制文件夹中获取图像,它们大约为 150-250 kb,但它仍然崩溃并出现 OutOfMemory 错误。当然不是第一张图片,但每次用户启动应用程序时我都会加
我正在使用 spark 从 postgres 表中读取并将其作为 json 转储到 Google 云存储。该表很大,有数百个 GB。该代码相对简单(请参见下文)但因 OOM 而失败。似乎 spark
即使系统中有足够的内存并且正确提供了所有必需的内存设置,Tomcat 仍无法启动并出现 OOM。这种情况并没有持续发生,证明 tomact 配置没有问题。 15-Jan-2019 20:17:31.0
我在高负载多线程Java项目中遇到OOM异常问题。 我很感激你能给我任何帮助。 德莱尔斯: 项目是建立在Java+Mysql作为存储。 没有证据表明在应用程序崩溃时会使用额外的RAM(任何监控工具都不
我使用 Android P-OS。内核版本为msm-4.14 自启动以来,oom 被调用并终止进程。不过内存还是很丰富的。我的内存大小是8GByte,Swap是1GByte。我什至没有使用交换。 [
所有的一切, 我正在使用 openjdk 1.8.0_212-b04、Tomcat 8.0.21 和 Red Hat 6.4。 并且我已经调整了测试web应用程序,确保重新部署后不会有没有这样的消息:
所以我在 Crashlytics 中看到我们有很多崩溃是由位图的 OOM 引起的。似乎其中 60% 来自 6.0.1 上的 Galaxy S7 Edge 设备。我们拥有的是一个包含 2 个图像的着陆屏
最近我们在 Docker 容器中遇到了 Ruby 的问题。尽管负载非常低,但应用程序往往会消耗大量内存,并且在提到的一段时间后会出现 OOM。 经过一番调查,我们将问题缩小到单线 docker run
Snakemake 工作流可以在任何类型的失败后重新尝试每次重启,包括如果错误是内存不足(OOM),例如 def get_mem_mb(wildcards, attempt): return
我有一个有趣的问题。我想我发现了一个无限请求循环,它导致我的 istio-proxy 在特定情况下因 OOM 错误而崩溃。 当我直接从应用程序容器内部将请求本地提交到应用程序时,它似乎工作正常,并且在
我使用的是 ActiveMQ 5.2,我的应用程序需要大量主题,大约 500,000 个。当我运行我的应用程序时,仅创建大约 1000 个主题后,ActiveMQ 会抛出 OutOfMemoryExc
我在 k8s 运算符上部署了一个结构化流作业,它只是从 kafka 读取数据,反序列化,添加 2 列并将结果存储在数据湖中(尝试了 delta 和 parquet),几天后执行程序增加了内存,最终我得
我的Mac上的Minikube中有一个本地Kubernetes集群。我将Minio独立服务器部署为具有指定资源限制的单个容器。当我上载大于容器内存限制的文件时,容器因OOMKilled原因终止。在Ub
我是一名优秀的程序员,十分优秀!