<?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>5963</bug_id>
          
          <creation_ts>2014-03-13 14:50:57 +0000</creation_ts>
          <short_desc>Large images fail in bizarre ways as live images</short_desc>
          <delta_ts>2016-01-27 03:21:24 +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>OE-Core</product>
          <component>deployment</component>
          <version>1.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</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>2.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darren Hart">dvhart</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>esteele101</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>41189</commentid>
    <comment_count>0</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-03-13 14:50:57 +0000</bug_when>
    <thetext>When large images, like SDK images, are booted as live images (hddimg) they often run out of memory, the OOM killer kicks in and kills random things, resulting in a variety of odd boot failures.

These images should be installed via something like mkefidisk or wic first and not booted as live images.

An early detection and consistent sort of warning at boot time for live images would be helpful and possibly reduce the number of times this &quot;bug&quot; gets reported against various BSPs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52560</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2015-07-23 15:16:58 +0000</bug_when>
    <thetext>We suspect some of the issues may have been as a result of the issue in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=5c71337cd79b03322f39e56c22c3e7634a2d9abd which is now resolved (as an error). That has perhaps removed some of this kind of issue.

Moving to unassigned as I doubt Brendan will get to this soon.

Checking the system memory size in the live image would be good to ensure we have enough space to run as a live image.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53200</commentid>
    <comment_count>2</comment_count>
    <who name="Evan Steele">esteele101</who>
    <bug_when>2015-08-18 21:05:08 +0000</bug_when>
    <thetext>I&apos;ve opted to take a look at this issue as my introduction to Yocto bugs. I&apos;m going to replicate the issue through QEMU before looking at creating some runtime scripts that will see if we have sufficient memory to run the live image. It&apos;ll probably just write something to dmesg as a warning if memory is low enough to start triggering the OOM_killer</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56495</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2015-11-16 16:14:23 +0000</bug_when>
    <thetext>In addition to ensuring that the image is created properly, we should add a check to the initramfs to ensure that the live image is smaller than available ram at runtime.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58257</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2016-01-27 03:21:24 +0000</bug_when>
    <thetext>Merged into master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=8a2dfa16917aca821caf1a1d9b53faa3b025656c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>