[OE-core] [PATCH 2/3] qemuboot.bbclass: increase the default RAM to 512M
Martin Jansa
martin.jansa at gmail.com
Thu Aug 15 20:22:36 UTC 2019
Maybe we should drop x11 from default DISTRO_FEATURES :)
Will resolve the memory consumption and image size.
Well the image size isn't much different, I was just surprised to see
libx11 being included even in core-image-minimal (because systemd -> dbus
-> libx11: "dbus.do_package" -> "libx11.do_packagedata"), but in the end
the difference in ext4 was only 2MB (61MB/63MB), caused by following 4
packages:
libx11-6 core2-64 1:1.6.8-r0.0
libxau6 core2-64 1:1.0.9-r0.15
libxcb1 core2-64 1.13.1-r0.15
libxdmcp6 core2-64 1:1.1.3-r0.15
so I guess embedded no longer have neither small ram nor small flash.
On Thu, Aug 15, 2019 at 6:20 PM Alexander Kanavin <alex.kanavin at gmail.com>
wrote:
> On Wed, 14 Aug 2019 at 18:42, Richard Purdie <
> richard.purdie at linuxfoundation.org> wrote:
>
>> I'm not sure I agree with this.
>>
>> We are meant to work on embedded systems and 256MB should be enough to
>> let us bring up X under qemu.
>>
>> I'm fine with some sdk/ptest images having more memory, that makes
>> sense but 256MB not allowing X under qemu seems rather poor.
>>
>
> I poked a bit more at this. The main difference between vmware emulated
> hardware and std emulated hardware is that X uses the standard 2D
> framebuffer interface for the former, and the full 3D stack for the latter
> (via use of glamor: https://www.freedesktop.org/wiki/Software/Glamor/).
> The 3D stack (mesa and friends) is what causes the memory usage to swell.
>
> It is possible to disable this behaviour and enforce framebuffer usage
> (see 'man modesetting'), and I have verified that the RAM usage drops to
> similar levels as vmware, but that is not the upstream default; they have
> more or less obsoleted 2D drivers and are defaulting to 3D rendering
> nowadays. I'd rather follow that.
>
> Alex
>
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20190815/63ccc7de/attachment.html>
More information about the Openembedded-core
mailing list