[OE-core] [PATCH 03/13] qemu: switch to '-vga std' emulated hardware from vmware/cirrus for x86/mips

Alexander Kanavin alex.kanavin at gmail.com
Thu Oct 10 10:02:11 UTC 2019


On Thu, 10 Oct 2019 at 08:16, Changqing Li <changqing.li at windriver.com>
wrote:

> After switch from -vga vmware to -vga std (use qemux86-64),  start image
> by "runqemu nographic",
>
> Memory used by process Xorg raised a lot,   for my image,   from ~%7 to
> ~%34 (check by ps aux --sort -rss)
>
> also check memory by command "systemctl status xserver-nodm",  raised from
> ~60M to ~120M.
>
> with the high raise of memory usage of Xorg, when run oe-test on the
> target,  OOM is happened like:
>
> [ 1038.221438] *Out of memory*: Killed process 180 (Xorg)
> total-vm:335368kB, anon-rss:68824kB, file-rss:0kB, shmem-rss:140kB
>
>
> Also test with poky distro,  and image core-image-sato, also installed
> procps.
>
> 1. "ps aux --sort -rss":  Xorg from  ~3.6%  to ~ 17.4%
>
> 2. "systemctl status xserver-nodm":  from ~65M to ~131M
>
>
> Any idea about how to resolve this problem?  do we really need unify all
> boards to -vga=std? Thanks.
>

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.

Or you can bump the available RAM for your image like is already done for
core-image-sato.

Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20191010/73a86c36/attachment.html>


More information about the Openembedded-core mailing list