* [OE-core][PATCH] gobject-introspection: reserve less memory for qemu
@ 2021-01-22 4:44 Chen Qi
2021-01-22 7:55 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Chen Qi @ 2021-01-22 4:44 UTC (permalink / raw)
To: openembedded-core
By default, qemu reserves 4G virtual address. It's too large.
We've met error due to lack of memory even on a 32G build machine.
So change it to 512M to mitigate this problem.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
.../gobject-introspection/gobject-introspection_1.66.1.bb | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.66.1.bb b/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.66.1.bb
index ee0ab2866b..6c49fe31ba 100644
--- a/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.66.1.bb
+++ b/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.66.1.bb
@@ -36,6 +36,7 @@ DEPENDS_append = " libffi zlib glib-2.0 python3 flex-native bison-native autocon
# Also prelink-rtld is used to find out library dependencies of introspection binaries
# (standard ldd doesn't work when cross-compiling).
DEPENDS_class-target_append = " gobject-introspection-native qemu-native prelink-native"
+QEMU_OPTIONS_append = " -R 512M"
# needed for writing out the qemu wrapper script
export STAGING_DIR_HOST
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [OE-core][PATCH] gobject-introspection: reserve less memory for qemu
2021-01-22 4:44 [OE-core][PATCH] gobject-introspection: reserve less memory for qemu Chen Qi
@ 2021-01-22 7:55 ` Richard Purdie
2021-01-22 9:11 ` Chen Qi
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2021-01-22 7:55 UTC (permalink / raw)
To: Chen Qi, openembedded-core
On Fri, 2021-01-22 at 12:44 +0800, Chen Qi wrote:
> By default, qemu reserves 4G virtual address. It's too large.
> We've met error due to lack of memory even on a 32G build machine.
>
> So change it to 512M to mitigate this problem.
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
> .../gobject-introspection/gobject-introspection_1.66.1.bb | 1 +
> 1 file changed, 1 insertion(+)
Are you sure its out of memory?
Its only taking virtual addresses, it shouldn't actually be allocating
it all.
We did notice that on some of our autobuilder workers we had to change
mmap_min_addr setting being too 65536 which solved out "out of memory"
issues.
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [OE-core][PATCH] gobject-introspection: reserve less memory for qemu
2021-01-22 7:55 ` Richard Purdie
@ 2021-01-22 9:11 ` Chen Qi
0 siblings, 0 replies; 3+ messages in thread
From: Chen Qi @ 2021-01-22 9:11 UTC (permalink / raw)
To: Richard Purdie, openembedded-core
On 01/22/2021 03:55 PM, Richard Purdie wrote:
> On Fri, 2021-01-22 at 12:44 +0800, Chen Qi wrote:
>> By default, qemu reserves 4G virtual address. It's too large.
>> We've met error due to lack of memory even on a 32G build machine.
>>
>> So change it to 512M to mitigate this problem.
>>
>> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
>> ---
>> .../gobject-introspection/gobject-introspection_1.66.1.bb | 1 +
>> 1 file changed, 1 insertion(+)
> Are you sure its out of memory?
>
> Its only taking virtual addresses, it shouldn't actually be allocating
> it all.
>
> We did notice that on some of our autobuilder workers we had to change
> mmap_min_addr setting being too 65536 which solved out "out of memory"
> issues.
>
> Cheers,
>
> Richard
>
>
Thanks. I checked the server, the value is 4096. I've changed it to 65536.
Best Regards,
Chen Qi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-01-22 9:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-22 4:44 [OE-core][PATCH] gobject-introspection: reserve less memory for qemu Chen Qi
2021-01-22 7:55 ` Richard Purdie
2021-01-22 9:11 ` Chen Qi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.