<div dir="ltr"><div dir="ltr">On Thu, 10 Oct 2019 at 08:16, Changqing Li &lt;<a href="mailto:changqing.li@windriver.com">changqing.li@windriver.com</a>&gt; wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">After switch from -vga vmware to -vga std (use qemux86-64), 
      start image by &quot;runqemu nographic&quot;, <br>
    
    <p>Memory used by process Xorg raised a lot,   for my image,   from
      ~%7 to ~%34 (check by ps aux --sort -rss)<br>
    </p>
    <p>also check memory by command &quot;systemctl status xserver-nodm&quot;, 
      raised from ~60M to ~120M.</p>
    <p>with the high raise of memory usage of Xorg, when run oe-test on
      the target,  OOM is happened like:</p>
    <p><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(245,245,245);text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none">[
        1038.221438]<span> </span></span><b style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(245,245,245);text-decoration-style:initial;text-decoration-color:initial">Out of memory</b><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(245,245,245);text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none">: Killed
        process 180 (Xorg) total-vm:335368kB, anon-rss:68824kB,
        file-rss:0kB, shmem-rss:140kB</span></p>
    <p><br>
    </p>
    <p>Also test with poky distro,  and image core-image-sato, also
      installed procps.<br>
    </p>
    <p>1. &quot;ps aux --sort -rss&quot;:  Xorg from  ~3.6%  to ~ 17.4%</p>
    <p>2. &quot;systemctl status xserver-nodm&quot;:  from ~65M to ~131M</p>
    <p><br>
    </p>
    <p>Any idea about how to resolve this problem?  do we really need
      unify all boards to -vga=std? Thanks.</p></div></blockquote><div><br></div><div>The increased memory usage is due to glamor loading the full 3D stack, mesa and friends. You can drop opengl from DISTRO_FEATURES, or otherwise disable glamor in xorg recipe via PACKAGECONFIG.</div><div><br></div><div>Or you can bump the available RAM for your image like is already done for core-image-sato.</div><div><br></div><div>Alex<br></div></div></div>