Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by mail.openembedded.org (Postfix) with ESMTP id 74F83731CF for ; Fri, 11 Oct 2019 01:23:40 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.2) with ESMTPS id x9B1NXpV021004 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 10 Oct 2019 18:23:33 -0700 (PDT) Received: from [128.224.158.194] (128.224.158.194) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.468.0; Thu, 10 Oct 2019 18:23:33 -0700 To: Alexander Kanavin References: <874b5e653ac604a410f2290e0b97ad7acb4a0d39.1567169002.git.alex.kanavin@gmail.com> <3625c508-3380-25b3-aacd-63543d3782b1@windriver.com> From: Changqing Li Message-ID: Date: Fri, 11 Oct 2019 09:23:30 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [128.224.158.194] Cc: OE-core Subject: Re: [PATCH 03/13] qemu: switch to '-vga std' emulated hardware from vmware/cirrus for x86/mips X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Oct 2019 01:23:40 -0000 Content-Type: multipart/alternative; boundary="------------758E85407C3DDA9C48A9B9B9" Content-Language: en-US --------------758E85407C3DDA9C48A9B9B9 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit On 10/10/19 6:02 PM, Alexander Kanavin wrote: > On Thu, 10 Oct 2019 at 08:16, Changqing Li > 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 Thanks! Sandy --------------758E85407C3DDA9C48A9B9B9 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 8bit


On 10/10/19 6:02 PM, Alexander Kanavin wrote:
On Thu, 10 Oct 2019 at 08:16, Changqing Li <changqing.li@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

Thanks!

Sandy

--------------758E85407C3DDA9C48A9B9B9--