<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>102</bug_id>
          
          <creation_ts>2010-07-11 22:53:35 +0000</creation_ts>
          <short_desc>OOM error when booting qemuppc images</short_desc>
          <delta_ts>2010-12-21 06:07:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>ppc</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiajun Xu">jiajun.xu</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>david.c.stewart</cc>
    
    <cc>josh</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>yongkang.you</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          <cf_verified>Program Management</cf_verified>
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>8945</commentid>
    <comment_count>0</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-07-11 22:53:35 +0000</bug_when>
    <thetext>Testing Env:    
Host: Ubuntu 10.04 LTS
Kernel: 2.6.32-21-generic-pae
Poky gitinfo(used to build qemu-native):
aa416b6133bd55b5ba4d2fb6f5faef274ba511a0 (git.pokylinux.org:poky-wr
+yocto-kernel-clean)
Qemuarm images (both sato &amp; sdk) from M1 build on autobuilder,
http://autobuilder.pokylinux.org/milestone/20100710-1/.

When booting qemumips images with the latest images built for M1, kernel reports OOM(out of memory) error. The error does not impact qemu booting. After waiting for a while, I can get login prompt.

command to start qemu
######
/home/jxu49/wr/new/poky-wr/build/tmp/sysroots/i686-linux/usr/bin/qemu-system-ppc -kernel /home/jxu49/test/M1-20100710/zImage-2.6.34+r1+git0+63a07cb64ccc3ceae619d3298545d602ab5ecd38-r1-qemuppc-20100710075758.bin -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=/home/jxu49/wr/new/poky-wr/scripts/poky-qemu-ifup,downscript=/home/jxu49/wr/new/poky-wr/scripts/poky-qemu-ifdown -cpu 603e -M prep -bios powerpc_rom.bin -hda /home/jxu49/test/M1-20100710/poky-image-sdk-qemuppc-20100710075758.rootfs.ext3 -no-reboot -show-cursor -usb -usbdevice wacom-tablet -nographic --append root=/dev/hda console=ttyS0 console=tty0 ip=192.168.7.2::192.168.7.1:255.255.255.0 mem=64M
######

Qemu error message:
######
EXT3-fs (hda): warning: feature flags set on rev 0 fs, running e2fsck is recommended
EXT3-fs (hda): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) readonly on device 3:0.
Freeing unused kernel memory: 184k init
kjournald starting.  Commit interval 5 seconds
EXT3-fs (hda): warning: updating to rev 1 because of new feature flag, running e2fsck is recommended
EXT3-fs (hda): using internal journal
localedef invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0
Call Trace:
[c3b47bf0] [c0008834] show_stack+0x48/0x15c (unreliable)
[c3b47c20] [c00882b4] dump_header+0x58/0x150
[c3b47c50] [c008842c] oom_kill_process+0x80/0x130
[c3b47c70] [c0088a54] __out_of_memory+0x118/0x1bc
[c3b47cb0] [c0088b6c] out_of_memory+0x74/0x110
[c3b47ce0] [c008c5a8] __alloc_pages_nodemask+0x634/0x644
[c3b47d80] [c008e460] __do_page_cache_readahead+0x134/0x290
[c3b47de0] [c0086154] filemap_fault+0x3cc/0x434
[c3b47e20] [c009e2e0] __do_fault+0x64/0x4ec
[c3b47e70] [c0015d00] do_page_fault+0x32c/0x5c4
[c3b47f40] [c001237c] handle_page_fault+0xc/0x80
--- Exception: 401 at 0xff0e350
    LR = 0x100225a0
Mem-Info:
DMA per-cpu:
CPU    0: hi:   18, btch:   3 usd:   2
active_anon:6872 inactive_anon:6879 isolated_anon:0
 active_file:0 inactive_file:45 isolated_file:0
 unevictable:0 dirty:0 writeback:0 unstable:0
 free:252 slab_reclaimable:214 slab_unreclaimable:583
 mapped:11 shmem:7 pagetables:62 bounce:0
DMA free:1008kB min:1016kB low:1268kB high:1524kB active_anon:27488kB inactive_anon:27516kB active_file:0kB inactive_file:180kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:65024kB mlocked:0kB dirty:0kB writeback:0kB mapped:44kB shmem:28kB slab_reclaimable:856kB slab_unreclaimable:2332kB kernel_stack:264kB pagetables:248kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:17 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
DMA: 0*4kB 0*8kB 1*16kB 1*32kB 1*64kB 1*128kB 1*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB = 1008kB
52 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap  = 0kB
Total swap = 0kB
16384 pages RAM
1331 pages reserved
35 pages shared
14739 pages non-shared
Out of memory: kill process 1210 (portmap) score 467 or a child
Killed process 1210 (portmap) vsz:1868kB, anon-rss:72kB, file-rss:0kB
######</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8969</commentid>
    <comment_count>1</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-07-13 05:48:11 +0000</bug_when>
    <thetext>Sorry that I made a mistake, the issue is for qemuppc, not for qemumips. Change the title.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8989</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-07-15 04:37:56 +0000</bug_when>
    <thetext>http://git.pokylinux.org/cgit.cgi/poky/commit/?id=bd19169a60d5aaadc278439578d06c8027cfecf3 should fix this (it was occurring on qemumips and qemuppc)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9040</commentid>
    <comment_count>3</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-07-22 07:49:25 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; http://git.pokylinux.org/cgit.cgi/poky/commit/?id=bd19169a60d5aaadc278439578d06c8027cfecf3
&gt; should fix this (it was occurring on qemumips and qemuppc)

Richard,
The OOM issue is fixed. But the first time I boot up qemuppc image may cost more than 5 minutes. I am using the weekly build 20100721, http://yoctobuild01.jf.intel.com/build-areas/weekly-release/build/build/tmp/deploy/images/.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9047</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-07-22 15:38:43 +0000</bug_when>
    <thetext>First boot speed is a separate issue and locale generation does take a while. I&apos;m going to mark this particular bug as resolved fixed. We can open a new feature enhancement bug with the task of having locale generation at build time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9060</commentid>
    <comment_count>5</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-07-26 07:22:21 +0000</bug_when>
    <thetext>Mark the bug as verified, it has gone with weekly build 20100721,
http://yoctobuild01.jf.intel.com/build-areas/weekly-release/build/build/tmp/deploy/images/.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>