[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 0/3] Yocto Gitlab CI
- To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
- From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
- Date: Mon, 17 Oct 2022 09:21:20 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BJRFfvC9WKJ61OarQi9PJR/eubBtRm/bRs9ihoNyWl0=; b=LadueYw4PbVhs/zQyZ6MuzPCz310zgKXErfNGPQIU9C4GIWADNyMVe3PvZ1JFHAHDkobAfDnpvU2GyWthD6a4xg6nPuUV/gd1qKaRo7AM9NLpYAXEoogBUhxKqgDGNGtLZREkbZkjKP9k2mI2CuOR/h90xmjX/9uXtLJTzRIJ7LvapulSwHHGlc4/Fta1TIfFVU8S4IzCSWkeWc1uIIa+qSuqezG7AleXAXTg+un2pIr0hlnmxSLq9CPSsVcxLgM4FpHgLsgbrrPcKDIuMpXod4gOAVKNUtI7oJxCqfwSzvUFqQhLQP2D6dUPvyzEDGn1JNg05UjK0uSiiu6+q1bsw==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BJRFfvC9WKJ61OarQi9PJR/eubBtRm/bRs9ihoNyWl0=; b=R7SVsa+FzigXuzmWar0tqzCK3mSFrFNe9UnbaCokG6QXN1OSMaa+P5R9FUU2DtfSJTE7y0m4oZihvrU/rnEPr10IUUwH2TnWCf0d97zRgbSBOH/Cl67+OMvjwRxMPyuZ3G3w5Rg3oYoBB/G3hBxOshM965rNtTg2kzItJl8O6bXp6igMXwAzbBJP53CO9YOsTvu+rEOPq0P4fzA3l1C3UsXV0nYu2rTLqLqXZxs68q4icMTJo/3qdZK31qqANuhy87yNeqQtRowdJ6g+7E5z+4COfW4k02EjAOeWEl0w4zATqKbuMvoCKSTHVri0BwXCJkq9QgOj2EM9tbEiwbTTzw==
- Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=Zbzp3Hfs6Ob2IGa5htWrDOzeOYWkJtDZlPcDBUPcfCr6jkVtFfYHv8lL500mc8qmfABQf8/f8UWtb23T3K6YrAJI6DyeYzzedn5nau8nPkfdwq19u1lZvNAUdnxrdwg43MXI5Yzk/FUMVEs9edVAv2Mu5dZyXxCCTXlC3dAoLgSSrMKV+CRWAimyg6YXcwbTDCYIZYbsiyg02UClTPoXG9ejJBFJRzE4yP4mqjOq8HL/NywXIerI4TWgQw92b4KZtyxPyWMmq1qxyhbIP4toZOqBVF0XB3tRUp3ugTeydBpbEHdl8/t2AwlwP9vmbuJ18zqlDUhpjGeijYOzebqlbg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aVRZ8SRCK/UH7JBSmR+qmDv8syWuqYRJKk5b8++sM9D/tUB+nI8CN8umm7dAL33vJFI25q5owtAYrxwQh02tgCRfQnfcKCESFcdgxcScnmZYbrapuWg/ZUeHZBJzB0s6huh+2kZRzYCK75gETwdThxECOqMQzs7GPb0h15oOfH3PSWTrO3dqMBuLfZm7eCbI+68igxluK3wem+UxzupHoLtiop6bjiy4Pa/aKwiKW15lT9B5gBZUN5TUsDjie0AvKL8vdgrEts2KwP1Uh6qSYMgGG2agxuTXAydXFUTvIefk6Ryofow70JGAlHakNg7BCpV9qW1eGtEn7Fonhs+9Qg==
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Doug Goldstein <cardoe@xxxxxxxxxx>
- Delivery-date: Mon, 17 Oct 2022 09:21:34 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Thread-index: AQHY3hEMDLhOM5SRDUy6m8XkPQoc/64OWrqAgAP8xgA=
- Thread-topic: [PATCH v2 0/3] Yocto Gitlab CI
Hi Stefano,
> On 14 Oct 2022, at 21:27, Stefano Stabellini <sstabellini@xxxxxxxxxx> wrote:
>
> On Wed, 12 Oct 2022, Bertrand Marquis wrote:
>> This patch series is a first attempt to check if we could use Yocto in
>> gitlab ci to build and run xen on qemu for arm, arm64 and x86.
>>
>> The first patch is creating a container with all elements required to
>> build Yocto, a checkout of the yocto layers required and an helper
>> script to build and run xen on qemu with yocto.
>>
>> The second patch is creating containers with a first build of yocto done
>> so that susbsequent build with those containers would only rebuild what
>> was changed and take the rest from the cache.
>>
>> The third patch is adding a way to easily clean locally created
>> containers.
>>
>> This is is mainly for discussion and sharing as there are still some
>> issues/problem to solve:
>> - building the qemu* containers can take several hours depending on the
>> network bandwith and computing power of the machine where those are
>> created
>> - produced containers containing the cache have a size between 8 and
>> 12GB depending on the architecture. We might need to store the build
>> cache somewhere else to reduce the size. If we choose to have one
>> single image, the needed size is around 20GB and we need up to 40GB
>> during the build, which is why I splitted them.
>> - during the build and run, we use a bit more then 20GB of disk which is
>> over the allowed size in gitlab
>>
>> Once all problems passed, this can be used to build and run dom0 on qemu
>> with a modified Xen on the 3 archs in less than 10 minutes.
>
> The build still doesn't work for me. I found the reason:
>
> create archive failed: cpio: write failed - Cannot allocate memory
>
> It is a "silly" out of memory error. I tried to solve the problem by
> adding:
>
> export RPM_BUILD_NCPUS=8
>
> at the beginning of build-yocto.sh but it didn't work. I realize that
> this error might be considered a workstation configuration error at my
> end but I cannot find a way past it. Any suggestions?
Can you give me more details on when this is happening ? Ie the full logs.
Can you try to apply the following:
--- a/automation/build/yocto/build-yocto.sh
+++ b/automation/build/yocto/build-yocto.sh
@@ -107,6 +107,9 @@ IMAGE_INSTALL:append:pn-xen-image-minimal = "
ssh-pregen-hostkeys"
# Save some disk space
INHERIT += "rm_work"
+# Reduce number of jobs
+BB_NUMBER_THREADS=2
+
EOF
if [ "${do_localsrc}" = "y" ]; then
This should reduce the number of parallel jobs during Yocto build.
Cheers
Bertrand
|