<?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: How is the memory set in android kernel for different platform in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-is-the-memory-set-in-android-kernel-for-different-platform/m-p/930289#M139564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me the board and Android version that you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jul 2019 19:42:03 GMT</pubDate>
    <dc:creator>diegoadrian</dc:creator>
    <dc:date>2019-07-25T19:42:03Z</dc:date>
    <item>
      <title>How is the memory set in android kernel for different platform</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-is-the-memory-set-in-android-kernel-for-different-platform/m-p/930288#M139563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am downloading android kernel on iMX6Q through Mfgtool. while doing it I got following error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UTP: sending Success to kernel for command $ mkfs.ext4 -F -E nodiscard -b 4096 -m 0 -O ^flex_bg,^uninit_bg /dev/mmcblk1p`cat /tmp/partIdx`.&lt;BR /&gt;utp_poll: pass returned.&lt;BR /&gt;UTP: received command '$ mount -o remount,size=1024M rootfs /'&lt;BR /&gt;UTP: executing "mount -o remount,size=1024M rootfs /"&lt;BR /&gt;UTP: sending Success to kernel for command $ mount -o remount,size=1024M rootfs /.&lt;BR /&gt;utp_poll: pass returned.&lt;BR /&gt;UTP: received command 'send'&lt;BR /&gt;UTP: sending Success to kernel for command send.&lt;BR /&gt;random: crng init done&lt;BR /&gt;&lt;STRONG&gt;uuc invoked oom-killer: gfp_mask=0x24200ca(GFP_HIGHUSER_MOVABLE), nodemask=0, order=0, oom_score_adj=0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CPU: 0 PID: 102 Comm: uuc Not tainted 4.9.11+ #1&lt;/STRONG&gt;&lt;BR /&gt;Hardware name: Freescale i.MX6Q (Device Tree)&lt;BR /&gt;[&amp;lt;8010ed50&amp;gt;] (unwind_backtrace) from [&amp;lt;8010b274&amp;gt;] (show_stack+0x10/0x14)&lt;BR /&gt;[&amp;lt;8010b274&amp;gt;] (show_stack) from [&amp;lt;803aea6c&amp;gt;] (dump_stack+0x80/0x9c)&lt;BR /&gt;[&amp;lt;803aea6c&amp;gt;] (dump_stack) from [&amp;lt;801feb98&amp;gt;] (dump_header.constprop.4+0x64/0x1a0)&lt;BR /&gt;[&amp;lt;801feb98&amp;gt;] (dump_header.constprop.4) from [&amp;lt;801bf2cc&amp;gt;] (oom_kill_process+0x2d0/0x4b4)&lt;BR /&gt;[&amp;lt;801bf2cc&amp;gt;] (oom_kill_process) from [&amp;lt;801bf784&amp;gt;] (out_of_memory+0xd8/0x41c)&lt;BR /&gt;[&amp;lt;801bf784&amp;gt;] (out_of_memory) from [&amp;lt;801c3d4c&amp;gt;] (__alloc_pages_nodemask+0xb5c/0xbb8)&lt;BR /&gt;[&amp;lt;801c3d4c&amp;gt;] (__alloc_pages_nodemask) from [&amp;lt;801d251c&amp;gt;] (shmem_getpage_gfp.constprop.7+0x504/0xa00)&lt;BR /&gt;[&amp;lt;801d251c&amp;gt;] (shmem_getpage_gfp.constprop.7) from [&amp;lt;801bb354&amp;gt;] (generic_perform_write+0xb8/0x1a0)&lt;BR /&gt;[&amp;lt;801bb354&amp;gt;] (generic_perform_write) from [&amp;lt;801bcb18&amp;gt;] (__generic_file_write_iter+0x100/0x1f0)&lt;BR /&gt;[&amp;lt;801bcb18&amp;gt;] (__generic_file_write_iter) from [&amp;lt;801bccfc&amp;gt;] (generic_file_write_iter+0xf4/0x208)&lt;BR /&gt;[&amp;lt;801bccfc&amp;gt;] (generic_file_write_iter) from [&amp;lt;80201140&amp;gt;] (__vfs_write+0xbc/0x114)&lt;BR /&gt;[&amp;lt;80201140&amp;gt;] (__vfs_write) from [&amp;lt;80201e98&amp;gt;] (vfs_write+0xa0/0x168)&lt;BR /&gt;[&amp;lt;80201e98&amp;gt;] (vfs_write) from [&amp;lt;80202bec&amp;gt;] (SyS_write+0x3c/0x90)&lt;BR /&gt;[&amp;lt;80202bec&amp;gt;] (SyS_write) from [&amp;lt;801076c0&amp;gt;] (ret_fast_syscall+0x0/0x3c)&lt;BR /&gt;Mem-Info:&lt;BR /&gt;active_anon:2018 inactive_anon:114204 isolated_anon:0&lt;BR /&gt; active_file:0 inactive_file:0 isolated_file:0&lt;BR /&gt; unevictable:0 dirty:0 writeback:0 unstable:0&lt;BR /&gt; slab_reclaimable:471 slab_unreclaimable:989&lt;BR /&gt; mapped:556 shmem:116157 pagetables:11 bounce:0&lt;BR /&gt; free:408 free_pcp:41 free_cma:0&lt;BR /&gt;Node 0 active_anon:8072kB inactive_anon:456816kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:2224kB dirty:0kB writeback:0kB shmem:464628kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? yes&lt;BR /&gt;Normal free:1632kB min:1652kB low:2064kB high:2476kB active_anon:8072kB inactive_anon:456816kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:524288kB managed:507900kB mlocked:0kB slab_reclaimable:1884kB slab_unreclaimable:3956kB kernel_stack:544kB pagetables:44kB bounce:0kB free_pcp:164kB local_pcp:164kB free_cma:0kB&lt;BR /&gt;lowmem_reserve[]: 0 0 0&lt;BR /&gt;Normal: 2*4kB (U) 3*8kB (UM) 2*16kB (U) 33*32kB (UM) 8*64kB (U) 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB 0*32768kB = 1632kB&lt;BR /&gt;116157 total pagecache pages&lt;BR /&gt;0 pages in swap cache&lt;BR /&gt;Swap cache stats: add 0, delete 0, find 0/0&lt;BR /&gt;Free swap = 0kB&lt;BR /&gt;Total swap = 0kB&lt;BR /&gt;131072 pages RAM&lt;BR /&gt;0 pages HighMem/MovableOnly&lt;BR /&gt;4097 pages reserved&lt;BR /&gt;81920 pages cma reserved&lt;BR /&gt;[ pid ] uid tgid total_vm rss nr_ptes nr_pmds swapents oom_score_adj name&lt;BR /&gt;[ 102] 0 102 467 320 6 0 0 0 uuc&lt;BR /&gt;Out of memory: Kill process 102 (uuc) score 2 or sacrifice child&lt;BR /&gt;Killed process 102 (uuc) total-vm:1868kB, anon-rss:132kB, file-rss:4kB, shmem-rss:1144kB&lt;BR /&gt;oom_reaper: reaped process 102 (uuc), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB&lt;BR /&gt;/linuxrc: line 44: 102 Killed uuc&lt;BR /&gt;Kernel panic - not syncing: Attempted to kill init! exitcode=0x00008900&lt;/P&gt;&lt;P&gt;---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00008900&lt;/P&gt;&lt;P&gt;file-storage invoked oom-killer: gfp_mask=0x24002c2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN), nodemask=0, order=0, oom_score_adj=0&lt;BR /&gt;CPU: 0 PID: 82 Comm: file-storage Not tainted 4.9.11+ #1&lt;BR /&gt;Hardware name: Freescale i.MX6 UltraLite (Device Tree)&lt;BR /&gt;[&amp;lt;8010ed50&amp;gt;] (unwind_backtrace) from [&amp;lt;8010b274&amp;gt;] (show_stack+0x10/0x14)&lt;BR /&gt;[&amp;lt;8010b274&amp;gt;] (show_stack) from [&amp;lt;803aea6c&amp;gt;] (dump_stack+0x80/0x9c)&lt;BR /&gt;[&amp;lt;803aea6c&amp;gt;] (dump_stack) from [&amp;lt;801feb98&amp;gt;] (dump_header.constprop.4+0x64/0x1a0)&lt;BR /&gt;[&amp;lt;801feb98&amp;gt;] (dump_header.constprop.4) from [&amp;lt;801bfa3c&amp;gt;] (out_of_memory+0x390/0x41c)&lt;BR /&gt;[&amp;lt;801bfa3c&amp;gt;] (out_of_memory) from [&amp;lt;801c3d4c&amp;gt;] (__alloc_pages_nodemask+0xb5c/0xbb8)&lt;BR /&gt;[&amp;lt;801c3d4c&amp;gt;] (__alloc_pages_nodemask) from [&amp;lt;801ef38c&amp;gt;] (__vmalloc_node_range+0xec/0x20c)&lt;BR /&gt;[&amp;lt;801ef38c&amp;gt;] (__vmalloc_node_range) from [&amp;lt;801ef73c&amp;gt;] (__vmalloc_node.constprop.13+0x40/0x50)&lt;BR /&gt;[&amp;lt;801ef73c&amp;gt;] (__vmalloc_node.constprop.13) from [&amp;lt;801ef7d8&amp;gt;] (vmalloc+0x24/0x34)&lt;BR /&gt;[&amp;lt;801ef7d8&amp;gt;] (vmalloc) from [&amp;lt;8058eda4&amp;gt;] (utp_user_data_alloc+0x14/0x60)&lt;BR /&gt;[&amp;lt;8058eda4&amp;gt;] (utp_user_data_alloc) from [&amp;lt;80591410&amp;gt;] (fsg_main_thread+0x608/0x22f8)&lt;BR /&gt;[&amp;lt;80591410&amp;gt;] (fsg_main_thread) from [&amp;lt;8014a9b4&amp;gt;] (kthread+0xd0/0xf0)&lt;BR /&gt;[&amp;lt;8014a9b4&amp;gt;] (kthread) from [&amp;lt;80107778&amp;gt;] (ret_from_fork+0x14/0x3c)&lt;BR /&gt;Mem-Info:&lt;BR /&gt;active_anon:1948 inactive_anon:114209 isolated_anon:0&lt;BR /&gt; active_file:0 inactive_file:0 isolated_file:0&lt;BR /&gt; unevictable:0 dirty:0 writeback:0 unstable:0&lt;BR /&gt; slab_reclaimable:471 slab_unreclaimable:989&lt;BR /&gt; mapped:1 shmem:116157 pagetables:4 bounce:0&lt;BR /&gt; free:407 free_pcp:43 free_cma:0&lt;BR /&gt;Node 0 active_anon:7792kB inactive_anon:456836kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:4kB dirty:0kB writeback:0kB shmem:464628kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? yes&lt;BR /&gt;Normal free:1628kB min:1652kB low:2064kB high:2476kB active_anon:7792kB inactive_anon:456852kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:524288kB managed:507900kB mlocked:0kB slab_reclaimable:1884kB slab_unreclaimable:3952kB kernel_stack:536kB pagetables:4kB bounce:0kB free_pcp:172kB local_pcp:172kB free_cma:0kB&lt;BR /&gt;lowmem_reserve[]: 0 0 0&lt;BR /&gt;Normal: 21*4kB (M) 9*8kB (UM) 2*16kB (M) 27*32kB (UM) 9*64kB (UM) 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB 0*32768kB = 1628kB&lt;BR /&gt;116161 total pagecache pages&lt;BR /&gt;0 pages in swap cache&lt;BR /&gt;Swap cache stats: add 0, delete 0, find 0/0&lt;BR /&gt;Free swap = 0kB&lt;BR /&gt;Total swap = 0kB&lt;BR /&gt;131072 pages RAM&lt;BR /&gt;0 pages HighMem/MovableOnly&lt;BR /&gt;4097 pages reserved&lt;BR /&gt;81920 pages cma reserved&lt;BR /&gt;[ pid ] uid tgid total_vm rss nr_ptes nr_pmds swapents oom_score_adj name&lt;BR /&gt;Kernel panic - not syncing: Out of memory and no killable processes...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at logs:uuc is invoking oomkiller, dont kniow why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I read on the internet following thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/9199731/understanding-the-linux-oom-killers-logs"&gt;https://stackoverflow.com/questions/9199731/understanding-the-linux-oom-killers-logs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is mentioning its related to memory and to fix the problem they have mentioned&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;To fix this problem the behavior of the kernel has to be changed, so it will no longer overcommit the memory for application requests.&lt;/P&gt;&lt;P style="color: #242729; border: 0px; margin: 0px 0px 1em;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Finally I have included those mentioned values into the /etc/sysctl.conf file, so they get automatically applied on start-up:&lt;/P&gt;&lt;BLOCKQUOTE style="color: #242729; background-color: #fff8dc; border-width: 0px 0px 0px 2px; border-style: initial initial initial solid; border-color: initial initial initial #ffeb8e; padding: 10px;"&gt;&lt;P style="border: 0px; font-weight: inherit; margin: 0px 0px 1em;"&gt;vm.overcommit_memory = 2&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;vm.overcommit_ratio = 80&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I do something like this in IMX6?&lt;/P&gt;&lt;P&gt;Where are the memory configuration for iMX6 like RAM, L1/L2 Data and Instruction cache defined in source code.&lt;/P&gt;&lt;P&gt;and how can I modify to solve my issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 06:16:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-is-the-memory-set-in-android-kernel-for-different-platform/m-p/930288#M139563</guid>
      <dc:creator>asmaa</dc:creator>
      <dc:date>2019-06-17T06:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: How is the memory set in android kernel for different platform</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-is-the-memory-set-in-android-kernel-for-different-platform/m-p/930289#M139564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me the board and Android version that you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2019 19:42:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-is-the-memory-set-in-android-kernel-for-different-platform/m-p/930289#M139564</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2019-07-25T19:42:03Z</dc:date>
    </item>
  </channel>
</rss>

