SDK imx-5.4.47-2.2.0 : i.MX6ULL: Getting OOM error on QTbase opengl examples

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SDK imx-5.4.47-2.2.0 : i.MX6ULL: Getting OOM error on QTbase opengl examples

1,862 Views
hafizabdul_kari
Contributor III

We are getting OOM error when running qtbase opengl examples on i.MX6ULL target, and the SDK version is imx-5.4.47-2.2.0.

 

 

root@imx6ull9x9evk:/usr/share/examples# ./opengl/textures/textures 
[ 1232.630824] textures invoked oom-killer: gfp_mask=0x400dc2(GFP_KERNEL_ACCOUNT|__GFP_HIGHMEM|__GFP_ZERO), order=0, oom_score_adj=0
[ 1232.657306] CPU: 0 PID: 516 Comm: textures Not tainted 5.4.47-2.2.0+g5ec03d06f54e #1
[ 1232.665081] Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[ 1232.671322] [<801107b8>] (unwind_backtrace) from [<8010b688>] (show_stack+0x10/0x14)
[ 1232.679104] [<8010b688>] (show_stack) from [<80be5cec>] (dump_stack+0x90/0xa4)
[ 1232.686365] [<80be5cec>] (dump_stack) from [<801e46a4>] (dump_header+0x54/0x1b8)
[ 1232.693792] [<801e46a4>] (dump_header) from [<801e3d2c>] (oom_kill_process+0x188/0x194)
[ 1232.701825] [<801e3d2c>] (oom_kill_process) from [<801e439c>] (out_of_memory+0x10c/0x338)
[ 1232.710040] [<801e439c>] (out_of_memory) from [<80220a20>] (__alloc_pages_nodemask+0xb1c/0xe4c)
[ 1232.718776] [<80220a20>] (__alloc_pages_nodemask) from [<8020893c>] (__pte_alloc+0x24/0x168)
[ 1232.727249] [<8020893c>] (__pte_alloc) from [<8020bb80>] (handle_mm_fault+0x278/0xc14)
[ 1232.735200] [<8020bb80>] (handle_mm_fault) from [<801148e4>] (do_page_fault+0x114/0x388)
[ 1232.743319] [<801148e4>] (do_page_fault) from [<80114cb0>] (do_DataAbort+0x3c/0xc0)
[ 1232.751005] [<80114cb0>] (do_DataAbort) from [<80101e1c>] (__dabt_usr+0x3c/0x40)
[ 1232.758418] Exception stack(0x88901fb0 to 0x88901ff8)
[ 1232.763494] 1fa0:                                     44bd8008 00000000 00041002 44bd8000
[ 1232.771699] 1fc0: 000971ca 000400c8 00041000 01234008 01764008 760642fc 000400c8 00004c30
[ 1232.779899] 1fe0: 000000c0 7e9cc1f0 7600db77 75fcd37e 40000030 ffffffff
[ 1233.092289] Mem-Info:
[ 1233.098891] active_anon:58821 inactive_anon:2296 isolated_anon:0
[ 1233.098891]  active_file:33 inactive_file:34 isolated_file:0
[ 1233.098891]  unevictable:0 dirty:0 writeback:0 unstable:0
[ 1233.098891]  slab_reclaimable:1502 slab_unreclaimable:3317
[ 1233.098891]  mapped:391 shmem:2448 pagetables:620 bounce:0
[ 1233.098891]  free:7488 free_pcp:14 free_cma:102
[ 1233.212426] Node 0 active_anon:235284kB inactive_anon:9184kB active_file:44kB inactive_file:296kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:1544kB dirty:0kB writeback:0kB shmem:9792kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
[ 1233.287346] Normal free:29964kB min:30000kB low:37500kB high:45000kB active_anon:235284kB inactive_anon:9184kB active_file:60kB inactive_file:56kB unevictable:0kB writepending:0kB present:393216kB managed:370408kB mlocked:0kB kernel_stack:640kB pagetables:2480kB bounce:0kB free_pcp:264kB local_pcp:264kB free_cma:408kB
[ 1233.359388] lowmem_reserve[]: 0 0 0
[ 1233.362940] Normal: 54*4kB (UMC) 61*8kB (UMC) 45*16kB (UC) 27*32kB (UMC) 18*64kB (UM) 10*128kB (UM) 5*256kB (UM) 5*512kB (UM) 3*1024kB (UM) 3*2048kB (UM) 1*4096kB (M) 1*8192kB (M) 0*16384kB 0*32768kB = 30064kB
[ 1233.469376] 2503 total pagecache pages
[ 1233.473162] 0 pages in swap cache
[ 1233.508401] Swap cache stats: add 0, delete 0, find 0/0
[ 1233.513661] Free swap  = 0kB
[ 1233.516556] Total swap = 0kB
[ 1233.559045] 98304 pages RAM
[ 1233.594973] 0 pages HighMem/MovableOnly
[ 1233.615948] 5702 pages reserved
[ 1233.631271] 40960 pages cma reserved
[ 1233.634880] Tasks state (memory values in pages):
[ 1233.687549] [  pid  ]   uid  tgid total_vm      rss pgtables_bytes swapents oom_score_adj name
[ 1233.696244] [    112]     0   112     3365      286    16384        0          -250 systemd-journal
[ 1233.794100] [    130]     0   130     2878      134    16384        0         -1000 systemd-udevd
[ 1233.823629] [    143]   992   143     3704       82    18432        0             0 systemd-timesyn
[ 1233.876238] [    430]     0   430      413       21     8192        0             0 atd
[ 1233.935828] [    431]     0   431      642       67    14336        0             0 crond
[ 1233.987680] [    432]   997   432      839       65    12288        0          -900 dbus-daemon
[ 1233.996433] [    439]     0   439     1486      116    14336        0             0 ofonod
[ 1234.070786] [    450]   996   450      685       49    12288        0             0 rpcbind
[ 1234.123222] [    451]     0   451      377       26    14336        0             0 syslogd
[ 1234.177360] [    460]     0   460     2206      135    20480        0             0 connmand
[ 1234.185847] [    462]     0   462     1231      926    16384        0             0 klogd
[ 1234.217312] [    463]   994   463     1423       90    12288        0             0 systemd-network
[ 1234.226405] [    464]     0   464     1322       84    12288        0             0 systemd-logind
[ 1234.247296] [    465]   998   465      917       49    12288        0             0 avahi-daemon
[ 1234.256124] [    466]   995   466      614      140    12288        0             0 rpc.statd
[ 1234.287287] [    468]   998   468      917       49    12288        0             0 avahi-daemon
[ 1234.296112] [    474]     0   474      887       18    14336        0             0 agetty
[ 1234.367345] [    475]     0   475      940       85    12288        0             0 login
[ 1234.375574] [    478]     0   478     1684       80    16384        0             0 wpa_supplicant
[ 1234.460053] [    479]     0   479    11232     1571    53248        0             0 weston
[ 1234.512715] [    481]     0   481     1584      151    12288        0             0 systemd
[ 1234.546533] [    482]     0   482     2043      319    16384        0             0 (sd-pam)
[ 1234.612697] [    488]     0   488     2213      334    16384        0             0 (sd-pam)
[ 1234.662681] [    489]     0   489     2482      347    18432        0             0 weston-keyboard
[ 1234.712430] [    490]     0   490     2361      283    16384        0             0 weston-desktop-
[ 1234.783949] [    491]     0   491      656       86    10240        0             0 sh
[ 1234.847322] [    516]     0   516   207051    53331   835584        0             0 textures
[ 1234.855807] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),global_oom,task_memcg=/user.slice/user-0.slice/session-c2.scope,task=textures,pid=516,uid=0
[ 1235.017373] Out of memory: Killed process 516 (textures) total-vm:828204kB, anon-rss:213324kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:816kB oom_score_adj:0
[ 1235.603947] oom_reaper: reaped process 516 (textures), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
Killed

 

 

 

0 Kudos
Reply
3 Replies

1,856 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello

 

You have the MX6ULL don´t have GPU and 512 MB of RAM, you need at least 1GB to run the demo.

 

Regards

 

0 Kudos
Reply

1,848 Views
hafizabdul_kari
Contributor III

As i have imx6ullevk, and it has 4GB DDR3 ram
https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/evaluation-kit-...
how can i make use of 4GB to make this demo run?
I have tried changing the memory size in kernel dtb, kernel boot parameters, u-boot configs e.g. in <u-boot>/include/configs/mx6ullevk.h file changing the size of PHYS_SDRAM_SIZE to SZ_1G, but nothing worked for me so far.

0 Kudos
Reply

1,842 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

You don´t have gpu

 

0 Kudos
Reply