Skip to contentSkip to conversation

support/testing/infra/emulator: increase memory size used by Qemu

PATCH New Thomas Petazzoni 3 participants 4 messages Jun 21, 2019 – Jun 24, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 support/testing/infra/emulator: increase memory size used by Qemu

By default, Qemu emulates a system with 128 MB of RAM. This is not sufficient for some test cases we have, such as TestPerlDBDmysql, where the initramfs is quite large. Therefore, this commit extends the RAM size emulated by Qemu to 256 MB.

Fixes:

https://gitlab.com/buildroot.org/buildroot/-/jobs/237108668

Thanks to Arnout for the analysis of the issue.

---
 support/testing/infra/emulator.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
support/testing/infra/emulator.py +2 -1
index 802e89d4b4..3d3e1750c6 100644
@@ -38,7 +38,8 @@ class Emulator(object):
 
         qemu_cmd = ["qemu-system-{}".format(qemu_arch),
                     "-serial", "stdio",
-                    "-display", "none"]
+                    "-display", "none",
+                    "-m", "256"]
 
         if options:
             qemu_cmd += options
Signature · 1 line
2.21.0
#1 lore raw

PATCH 1/1 support/testing/infra/emulator: increase memory size used by Qemu

Le ven. 21 juin 2019 ? 23:15, Thomas Petazzoni <[email protected]> a ?crit :

Quoted 5 lines

By default, Qemu emulates a system with 128 MB of RAM. This is not sufficient for some test cases we have, such as TestPerlDBDmysql, where the initramfs is quite large. Therefore, this commit extends the RAM size emulated by Qemu to 256 MB.

Quoted 8 lines

Fixes:

https://gitlab.com/buildroot.org/buildroot/-/jobs/237108668

Thanks to Arnout for the analysis of the issue.

---

Quoted 19 lines
 support/testing/infra/emulator.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
support/testing/infra/emulator.py +2 -2
index 802e89d4b4..3d3e1750c6 100644
@@ -38,7 +38,8 @@ class Emulator(object):
 
         qemu_cmd = ["qemu-system-{}".format(qemu_arch),
                     "-serial", "stdio",
-                    "-display", "none"]
+                    "-display", "none",
+                    "-m", "256"]
 
         if options:
             qemu_cmd += options
--
Quoted 3 lines

2.21.0

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190622/158a4824/attachment.html>

author Applied
#2 lore raw

PATCH 1/1 support/testing/infra/emulator: increase memory size used by Qemu

In reply to Thomas Petazzoni
Quoted 7 lines · On Fri, 21 Jun 2019 22:27:24 +0200 Thomas Petazzoni…

By default, Qemu emulates a system with 128 MB of RAM. This is not sufficient for some test cases we have, such as TestPerlDBDmysql, where the initramfs is quite large. Therefore, this commit extends the RAM size emulated by Qemu to 256 MB.

Fixes:

Quoted 8 lines

https://gitlab.com/buildroot.org/buildroot/-/jobs/237108668

Thanks to Arnout for the analysis of the issue.

---
 support/testing/infra/emulator.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw

PATCH 1/1 support/testing/infra/emulator: increase memory size used by Qemu

In reply to Thomas Petazzoni
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

By default, Qemu emulates a system with 128 MB of RAM. This is not sufficient for some test cases we have, such as TestPerlDBDmysql, where the initramfs is quite large. Therefore, this commit extends the RAM size emulated by Qemu to 256 MB.

Quoted 7 lines

Fixes:

https://gitlab.com/buildroot.org/buildroot/-/jobs/237108668

Thanks to Arnout for the analysis of the issue.

Committed to 2019.02.x and 2019.05.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard