[FS#120] opkg fails with Out of memory on a device with 32 MB of RAM

LEDE Bugs lede-bugs at lists.infradead.org
Mon Oct 17 06:55:29 PDT 2016


The following task has a new comment added:

FS#120 - opkg fails with Out of memory on a device with 32 MB of RAM
User who did this - Alberto Bursi (bobafetthotmail)

----------
tried with swap (it has like 1.5GiB of swap now), installing things still fails hard. 
(I'm installing a local package now, as I'm also trying to test other stuff)

root at lede:/mnt# opkg install gdisk_1.0.1-1_mips_24kc.ipk
[ 5094.764231] opkg invoked oom-killer: gfp_mask=0x24201ca, order=0, oom_score_adj=0
[ 5094.771788] CPU: 0 PID: 2312 Comm: opkg Not tainted 4.4.24 #0
[ 5094.777618] Stack : 803e07a4 00000000 00000001 80430000 8198d180 8042ae63 803c1e58 00000908
          8049379c 811c3d1c 00000000 00000003 0006538b 800a7228 00000006 803ca770
          00000000 00000000 803c58c8 811c3bbc 80496542 800a51a4 8042a4d0 00000000
          00000001 801f4700 00000000 00000000 00000000 00000000 00000000 00000000
          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
          ...
[ 5094.813699] Call Trace:
[ 5094.816181] [] show_stack+0x50/0x84
[ 5094.820577] [] dump_header.isra.4+0x48/0x130
[ 5094.825768] [] oom_kill_process+0x98/0x43c
[ 5094.830774] [] out_of_memory+0x2e0/0x324
[ 5094.835629] [] __alloc_pages_nodemask+0x684/0x6f0
[ 5094.841312] [] filemap_fault+0x258/0x458
[ 5094.846185] [] __do_fault+0x3c/0xa8
[ 5094.850604] [] handle_mm_fault+0x4e4/0xb84
[ 5094.855635] [] __do_page_fault+0x134/0x470
[ 5094.860641] [] ret_from_exception+0x0/0x10
[ 5094.865652] 
[ 5094.867151] Mem-Info:
[ 5094.869469] active_anon:1019 inactive_anon:1064 isolated_anon:32
[ 5094.869469]  active_file:0 inactive_file:11 isolated_file:0
[ 5094.869469]  unevictable:0 dirty:0 writeback:1088 unstable:0
[ 5094.869469]  slab_reclaimable:144 slab_unreclaimable:2683
[ 5094.869469]  mapped:1 shmem:2 pagetables:53 bounce:0
[ 5094.869469]  free:256 free_pcp:0 free_cma:0
[ 5094.901444] Normal free:1024kB min:1024kB low:1280kB high:1536kB active_anon:4076kB inactive_anon:4256kB active_file:0kB inactive_file:44kB unevictable:0kB isolated(anon):128kB isolated(file):0kB present:32768kB managed:27820kB mlocked:0kB dirty:0kB writeback:4352kB mapped:4kB shmem:8kB slab_reclaimable:576kB slab_unreclaimable:10732kB kernel_stack:376kB pagetables:212kB unstable:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:51240 all_unreclaimable? yes
[ 5094.945352] lowmem_reserve[]: 0 0
[ 5094.948710] Normal: 40*4kB (U) 80*8kB (UM) 14*16kB (UM) 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1024kB
[ 5094.960562] 1117 total pagecache pages
[ 5094.964345] 1104 pages in swap cache
[ 5094.967942] Swap cache stats: add 4379, delete 3275, find 1170/1704
[ 5094.974256] Free swap  = 1624364kB
[ 5094.977678] Total swap = 1630592kB
[ 5094.981097] 8192 pages RAM
[ 5094.983830] 0 pages HighMem/MovableOnly
[ 5094.987689] 1237 pages reserved
[ 5094.990846] [ pid ]   uid  tgid total_vm      rss nr_ptes nr_pmds swapents oom_score_adj name
[ 5094.999455] [  522]     0   522      295        1       3       0       15             0 ubusd
[ 5095.008139] [  527]     0   527      297        1       3       0       10             0 ash
[ 5095.016644] [  704]     0   704      307        1       4       0       34             0 logd
[ 5095.025237] [  713]     0   713      361        1       4       0       22             0 rpcd
[ 5095.033835] [  782]     0   782      338        5       3       0       18             0 odhcpd
[ 5095.042609] [  823]     0   823      265        1       4       0       10             0 dropbear
[ 5095.051541] [  840]     0   840      380        1       4       0       25             0 uhttpd
[ 5095.060376] [  974]     0   974      297        1       3       0        8             0 ntpd
[ 5095.068971] [ 1859]     0  1859      409        7       4       0       28             0 netifd
[ 5095.077737] [ 1961]     0  1961      230        1       3       0       10             0 odhcp6c
[ 5095.086591] [ 1970]     0  1970      296        1       3       0        8             0 udhcpc
[ 5095.095366] [ 2031]   453  2031      263        1       4       0       16             0 dnsmasq
[ 5095.104226] [ 2306]     0  2306     1871     1001       4       0      633             0 opkg
[ 5095.112821] [ 2312]     0  2312     1668      517       4       0      905             0 opkg
[ 5095.121397] Out of memory: Kill process 2306 (opkg) score 3 or sacrifice child
[ 5095.128687] Killed process 2312 (opkg) total-vm:6672kB, anon-rss:2068kB, file-rss:0kB
Installing gdisk (1.0.1-1) to root...
Collected errors:
 * gz_close: Unzip process killed by signal 9.

another try, this time seems to double-crash.

root at lede:/mnt# opkg install gdisk_1.0.1-1_mips_24kc.ipk
[ 5283.015505] netifd invoked oom-killer: gfp_mask=0x2420848, order=0, oom_score_adj=0
[ 5283.023280] CPU: 0 PID: 1859 Comm: netifd Not tainted 4.4.24 #0
[ 5283.029232] Stack : 803e07a4 00000000 00000001 80430000 8198f980 8042ae63 803c1e58 00000743
          8049379c 80d35a7c 00000000 00000003 0006538b 800a7228 00000006 803ca770
          00000000 00000000 803c58c8 80d3591c 80496542 800a51a4 8042a4d0 00000000
          00000001 801f4700 00000000 00000000 00000000 00000000 00000000 00000000
          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
          ...
[ 5283.065296] Call Trace:
[ 5283.067778] [] show_stack+0x50/0x84
[ 5283.072175] [] dump_header.isra.4+0x48/0x130
[ 5283.077366] [] oom_kill_process+0x98/0x43c
[ 5283.082372] [] out_of_memory+0x2e0/0x324
[ 5283.087229] [] __alloc_pages_nodemask+0x684/0x6f0
[ 5283.092888] [] pagecache_get_page+0x154/0x278
[ 5283.098166] [] __getblk_slow+0x15c/0x374
[ 5283.103021] [] squashfs_read_data+0x1c8/0x6e8
[ 5283.108290] [] squashfs_cache_get+0x194/0x2cc
[ 5283.113577] [] squashfs_readpage_block+0x1a0/0x4d8
[ 5283.119277] [] squashfs_readpage+0x5bc/0x6d0
[ 5283.124487] [] __do_page_cache_readahead+0x1f8/0x264
[ 5283.130366] [] filemap_fault+0x1ac/0x458
[ 5283.135231] [] __do_fault+0x3c/0xa8
[ 5283.139626] [] handle_mm_fault+0x4e4/0xb84
[ 5283.144650] [] __do_page_fault+0x134/0x470
[ 5283.149657] [] ret_from_exception+0x0/0x10
[ 5283.154664] 
[ 5283.156166] Mem-Info:
[ 5283.158485] active_anon:970 inactive_anon:1044 isolated_anon:0
[ 5283.158485]  active_file:30 inactive_file:79 isolated_file:0
[ 5283.158485]  unevictable:0 dirty:0 writeback:1039 unstable:0
[ 5283.158485]  slab_reclaimable:144 slab_unreclaimable:2683
[ 5283.158485]  mapped:1 shmem:0 pagetables:55 bounce:0
[ 5283.158485]  free:256 free_pcp:0 free_cma:0
[ 5283.190374] Normal free:1024kB min:1024kB low:1280kB high:1536kB active_anon:3880kB inactive_anon:4176kB active_file:120kB inactive_file:316kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:32768kB managed:27820kB mlocked:0kB dirty:0kB writeback:4156kB mapped:4kB shmem:0kB slab_reclaimable:576kB slab_unreclaimable:10732kB kernel_stack:376kB pagetables:220kB unstable:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:51708 all_unreclaimable? yes
[ 5283.234370] lowmem_reserve[]: 0 0
[ 5283.237725] Normal: 72*4kB (UME) 74*8kB (UE) 9*16kB (U) 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1024kB
[ 5283.249586] 1161 total pagecache pages
[ 5283.253369] 1052 pages in swap cache
[ 5283.256967] Swap cache stats: add 6510, delete 5458, find 1987/2922
[ 5283.263281] Free swap  = 1624560kB
[ 5283.266702] Total swap = 1630592kB
[ 5283.270120] 8192 pages RAM
[ 5283.272855] 0 pages HighMem/MovableOnly
[ 5283.276713] 1237 pages reserved
[ 5283.279871] [ pid ]   uid  tgid total_vm      rss nr_ptes nr_pmds swapents oom_score_adj name
[ 5283.288479] [  522]     0   522      295        1       3       0       15             0 ubusd
[ 5283.297159] [  527]     0   527      297        1       3       0       10             0 ash
[ 5283.305664] [  704]     0   704      307        1       4       0       34             0 logd
[ 5283.314263] [  713]     0   713      361        1       4       0       22             0 rpcd
[ 5283.322860] [  782]     0   782      338        3       3       0       20             0 odhcpd
[ 5283.331619] [  823]     0   823      265        1       4       0       10             0 dropbear
[ 5283.340568] [  840]     0   840      380        1       4       0       25             0 uhttpd
[ 5283.349335] [  974]     0   974      297        1       3       0        8             0 ntpd
[ 5283.357932] [ 1859]     0  1859      409        5       4       0       30             0 netifd
[ 5283.366701] [ 1961]     0  1961      230        1       3       0       10             0 odhcp6c
[ 5283.375555] [ 1970]     0  1970      296        7       3       0        2             0 udhcpc
[ 5283.384328] [ 2031]   453  2031      263        1       4       0       16             0 dnsmasq
[ 5283.393190] [ 2320]     0  2320     1851      968       5       0      646             0 opkg
[ 5283.401772] [ 2326]     0  2326     1668      492       5       0      930             0 opkg
[ 5283.410357] Out of memory: Kill process 2320 (opkg) score 3 or sacrifice child
[ 5283.417647] Killed process 2326 (opkg) total-vm:6672kB, anon-rss:1968kB, file-rss:0kB
[ 5285.135381] udhcpc invoked oom-killer: gfp_mask=0x2420848, order=0, oom_score_adj=0
[ 5285.143147] CPU: 0 PID: 1970 Comm: udhcpc Not tainted 4.4.24 #0
[ 5285.149098] Stack : 803e07a4 00000000 00000001 80430000 8198ea80 8042ae63 803c1e58 000007b2
          8049379c 81d47ad4 00000000 00000003 0006538b 800a7228 00000006 803ca770
          00000000 00000000 803c58c8 81d47974 80496542 800a51a4 8042a4d0 00000000
          00000001 801f4700 00000000 00000000 00000000 00000000 00000000 00000000
          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
          ...
[ 5285.185181] Call Trace:
[ 5285.187662] [] show_stack+0x50/0x84
[ 5285.192058] [] dump_header.isra.4+0x48/0x130
[ 5285.197255] [] oom_kill_process+0x98/0x43c
[ 5285.202257] [] out_of_memory+0x2e0/0x324
[ 5285.207110] [] __alloc_pages_nodemask+0x684/0x6f0
[ 5285.212761] [] pagecache_get_page+0x154/0x278
[ 5285.218032] [] __getblk_slow+0x15c/0x374
[ 5285.222898] [] squashfs_read_data+0x1c8/0x6e8
[ 5285.228171] [] squashfs_readpage_block+0x32c/0x4d8
[ 5285.233896] [] squashfs_readpage+0x5bc/0x6d0
[ 5285.239083] [] __do_page_cache_readahead+0x1f8/0x264
[ 5285.244982] [] filemap_fault+0x1ac/0x458
[ 5285.249822] [] __do_fault+0x3c/0xa8
[ 5285.254233] [] handle_mm_fault+0x4e4/0xb84
[ 5285.259252] [] __do_page_fault+0x134/0x470
[ 5285.264272] [] ret_from_exception+0x0/0x10
[ 5285.269266] 
[ 5285.270767] Mem-Info:
[ 5285.273100] active_anon:968 inactive_anon:1046 isolated_anon:0
[ 5285.273100]  active_file:58 inactive_file:64 isolated_file:0
[ 5285.273100]  unevictable:0 dirty:0 writeback:1031 unstable:0
[ 5285.273100]  slab_reclaimable:144 slab_unreclaimable:2685
[ 5285.273100]  mapped:4 shmem:0 pagetables:50 bounce:0
[ 5285.273100]  free:256 free_pcp:0 free_cma:0
[ 5285.305023] Normal free:1024kB min:1024kB low:1280kB high:1536kB active_anon:3872kB inactive_anon:4184kB active_file:232kB inactive_file:256kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:32768kB managed:27820kB mlocked:0kB dirty:0kB writeback:4124kB mapped:16kB shmem:0kB slab_reclaimable:576kB slab_unreclaimable:10740kB kernel_stack:376kB pagetables:200kB unstable:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:54780 all_unreclaimable? yes
[ 5285.349120] lowmem_reserve[]: 0 0
[ 5285.352473] Normal: 76*4kB (UE) 76*8kB (UME) 7*16kB (U) 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1024kB
[ 5285.364334] 1177 total pagecache pages
[ 5285.368108] 1055 pages in swap cache
[ 5285.371706] Swap cache stats: add 6520, delete 5465, find 1988/2927
[ 5285.378019] Free swap  = 1624772kB
[ 5285.381441] Total swap = 1630592kB
[ 5285.384869] 8192 pages RAM
[ 5285.387589] 0 pages HighMem/MovableOnly
[ 5285.391443] 1237 pages reserved
[ 5285.394615] [ pid ]   uid  tgid total_vm      rss nr_ptes nr_pmds swapents oom_score_adj name
[ 5285.403216] [  522]     0   522      295        1       3       0       15             0 ubusd
[ 5285.411888] [  527]     0   527      297        1       3       0       10             0 ash
[ 5285.420395] [  704]     0   704      307        1       4       0       34             0 logd
[ 5285.428991] [  713]     0   713      361        1       4       0       22             0 rpcd
[ 5285.437577] [  782]     0   782      338        4       3       0       19             0 odhcpd
[ 5285.446344] [  823]     0   823      265        1       4       0       10             0 dropbear
[ 5285.455282] [  840]     0   840      380        1       4       0       25             0 uhttpd
[ 5285.464046] [  974]     0   974      297        1       3       0        8             0 ntpd
[ 5285.472624] [ 1859]     0  1859      409        5       4       0       30             0 netifd
[ 5285.481390] [ 1961]     0  1961      230        1       3       0       10             0 odhcp6c
[ 5285.490241] [ 1970]     0  1970      296       10       3       0        2             0 udhcpc
[ 5285.499014] [ 2031]   453  2031      263        1       4       0       16             0 dnsmasq
[ 5285.507875] [ 2320]     0  2320     1851      968       5       0      646             0 opkg
[ 5285.516459] Out of memory: Kill process 2320 (opkg) score 3 or sacrifice child
[ 5285.523748] Killed process 2320 (opkg) total-vm:7404kB, anon-rss:3868kB, file-rss:4kB
Killed

----------

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=120#comment674



More information about the lede-bugs mailing list