Allocated 5G RAM to qemu when running the ptest to avoid OOMs

Signed-off-by: Khem Raj <[email protected]>
---
 meta-python/recipes-core/images/meta-python-image-ptest.bb     | 3 ++-
 .../recipes-devtools/python/python3-fastjsonschema_2.20.0.bb   | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta-python/recipes-core/images/meta-python-image-ptest.bb 
b/meta-python/recipes-core/images/meta-python-image-ptest.bb
index 002bd7a39e..794b9d1e4d 100644
--- a/meta-python/recipes-core/images/meta-python-image-ptest.bb
+++ b/meta-python/recipes-core/images/meta-python-image-ptest.bb
@@ -29,7 +29,8 @@ QB_MEM = "-m 1024"
 #QB_MEM:virtclass-mcextend-<pn> = "-m 4096"
 # python3-scrypt ptests run into OOMs on RISCV64 qemu
 QB_MEM:virtclass-mcextend-python3-scrypt = "-m 2048"
-QB_MEM:virtclass-mcextend-python3-fastjsonschema = "-m 2048"
+# Needs atleast 5G to avoid OOMs
+QB_MEM:virtclass-mcextend-python3-fastjsonschema = "-m 5120"
 QB_MEM:virtclass-mcextend-python3-pillow = "-m 2048"
 
 TEST_SUITES = "ping ssh parselogs ptest"
diff --git 
a/meta-python/recipes-devtools/python/python3-fastjsonschema_2.20.0.bb 
b/meta-python/recipes-devtools/python/python3-fastjsonschema_2.20.0.bb
index 0524a73b67..4dd9444a9a 100644
--- a/meta-python/recipes-devtools/python/python3-fastjsonschema_2.20.0.bb
+++ b/meta-python/recipes-devtools/python/python3-fastjsonschema_2.20.0.bb
@@ -17,9 +17,11 @@ do_install_ptest() {
        cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
 }
 
+# python3-misc for timeit.py
 RDEPENDS:${PN}-ptest += "\
     python3-colorama \
     python3-jsonschema \
+    python3-misc \
     python3-pylint \
     python3-pytest \
     python3-pytest-benchmark \
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#112314): 
https://lists.openembedded.org/g/openembedded-devel/message/112314
Mute This Topic: https://lists.openembedded.org/mt/108468727/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to