[Starlingx-discuss] build-pkg --parallel
I had a successful parallel build (aka build-pkgs --parallel) inside the docker container. ~1h45m on 24 core, 64G ram The prerequisite was a populated $MY_REPO/cgcs-tis-repo/dependancy-cache. Currently we only generate the cache *after* the build in the 'generate-cgcs-tis-repo' step. *I'd like to see the cache stored in git and updated regularly by 'official' builds.* Note: The cache doesn't have to be perfect, so a cache that is out of date by a day or a week is still very useful. build-pkgs/mockchain just needs a rough guide on build dependencies and potential dependency loops. Scott
It is awesome!! Running “create_dependancy_cache.py” against the mirror (of RPMs) is to generate a new “dependancy-cache”, isn’t it? From: Scott Little <scott.little@windriver.com> Date: Wednesday, 1 August 2018 at 3:03 AM To: "starlingx-discuss@lists.starlingx.io" <starlingx-discuss@lists.starlingx.io> Subject: [Starlingx-discuss] build-pkg --parallel I had a successful parallel build (aka build-pkgs --parallel) inside the docker container. ~1h45m on 24 core, 64G ram The prerequisite was a populated $MY_REPO/cgcs-tis-repo/dependancy-cache. Currently we only generate the cache after the build in the 'generate-cgcs-tis-repo' step. I'd like to see the cache stored in git and updated regularly by 'official' builds. Note: The cache doesn't have to be perfect, so a cache that is out of date by a day or a week is still very useful. build-pkgs/mockchain just needs a rough guide on build dependencies and potential dependency loops. Scott
Hi Scott and all, I have an issue when I did parallel build and need your help It seems b1/b2/b3 could not mount to tmpfs. Only b0 which not mount to tmpfs can work. 00:09:08 ERROR: Command failed: 00:09:08 # mount -n -t tmpfs -o mode=0755 -o nr_inodes=0 -o size=5g mock_chroot_tmpfs /localdisk/loadbuild/zhipengl/starlingx/std/mock/b1/root Root cause seems to be nr_inode=0, as I saw dmesg log as below. However, I could not find where or how I can change this nr_inode. [22719.688732] tmpfs: Bad value '0' for mount option 'nr_inodes' [22719.710907] tmpfs: Bad value '0' for mount option 'nr_inodes' [22726.037303] tmpfs: Bad value '0' for mount option 'nr_inodes' [22740.384578] tmpfs: Bad value '0' for mount option 'nr_inodes' [22740.385174] tmpfs: Bad value '0' for mount option 'nr_inodes' Thanks! Zhipeng From: Scott Little [mailto:scott.little@windriver.com] Sent: 2018年8月1日 3:01 To: starlingx-discuss@lists.starlingx.io Subject: [Starlingx-discuss] build-pkg --parallel I had a successful parallel build (aka build-pkgs --parallel) inside the docker container. ~1h45m on 24 core, 64G ram The prerequisite was a populated $MY_REPO/cgcs-tis-repo/dependancy-cache. Currently we only generate the cache after the build in the 'generate-cgcs-tis-repo' step. I'd like to see the cache stored in git and updated regularly by 'official' builds. Note: The cache doesn't have to be perfect, so a cache that is out of date by a day or a week is still very useful. build-pkgs/mockchain just needs a rough guide on build dependencies and potential dependency loops. Scott
nr_inodes=0 is supplied by the mock prior to issuing the mount syscall. There seems to be a mismatch between the mock inside your docker (I assume) and the kernel you are running. On 18-08-06 10:58 PM, Liu, ZhipengS wrote:
Hi Scott and all,
I have an issue when I did parallel build and need your help
It seems b1/b2/b3 could not mount to tmpfs. Only b0 which not mount to tmpfs can work.
00:09:08 ERROR: Command failed:
00:09:08 # mount -n -t tmpfs -o mode=0755 -o nr_inodes=0 -o size=5g mock_chroot_tmpfs /localdisk/loadbuild/zhipengl/starlingx/std/mock/b1/root
Root cause seems to be nr_inode=0, as I saw dmesg log as below.
However, I could not find where or how I can change this nr_inode.
[22719.688732] tmpfs: Bad value '0' for mount option 'nr_inodes'
[22719.710907] tmpfs: Bad value '0' for mount option 'nr_inodes'
[22726.037303] tmpfs: Bad value '0' for mount option 'nr_inodes'
[22740.384578] tmpfs: Bad value '0' for mount option 'nr_inodes'
[22740.385174] tmpfs: Bad value '0' for mount option 'nr_inodes'
Thanks!
Zhipeng
*From:*Scott Little [mailto:scott.little@windriver.com] *Sent:* 2018年8月1日3:01 *To:* starlingx-discuss@lists.starlingx.io *Subject:* [Starlingx-discuss] build-pkg --parallel
I had a successful parallel build (aka build-pkgs --parallel) inside the docker container. ~1h45m on 24 core, 64G ram
The prerequisite was a populated $MY_REPO/cgcs-tis-repo/dependancy-cache.
Currently we only generate the cache *after* the build in the 'generate-cgcs-tis-repo' step. *I'd like to see the cache stored in git and updated regularly by 'official' builds.*
Note: The cache doesn't have to be perfect, so a cache that is out of date by a day or a week is still very useful. build-pkgs/mockchain just needs a rough guide on build dependencies and potential dependency loops.
Scott
Thanks Scott! I also thought it should be related to the kernel I’m running, I will check further. Zhipeng From: Scott Little [mailto:scott.little@windriver.com] Sent: 2018年8月9日 0:51 To: Liu, ZhipengS <zhipengs.liu@intel.com>; starlingx-discuss@lists.starlingx.io Subject: Re: [Starlingx-discuss] build-pkg --parallel nr_inodes=0 is supplied by the mock prior to issuing the mount syscall. There seems to be a mismatch between the mock inside your docker (I assume) and the kernel you are running. On 18-08-06 10:58 PM, Liu, ZhipengS wrote: Hi Scott and all, I have an issue when I did parallel build and need your help It seems b1/b2/b3 could not mount to tmpfs. Only b0 which not mount to tmpfs can work. 00:09:08 ERROR: Command failed: 00:09:08 # mount -n -t tmpfs -o mode=0755 -o nr_inodes=0 -o size=5g mock_chroot_tmpfs /localdisk/loadbuild/zhipengl/starlingx/std/mock/b1/root Root cause seems to be nr_inode=0, as I saw dmesg log as below. However, I could not find where or how I can change this nr_inode. [22719.688732] tmpfs: Bad value '0' for mount option 'nr_inodes' [22719.710907] tmpfs: Bad value '0' for mount option 'nr_inodes' [22726.037303] tmpfs: Bad value '0' for mount option 'nr_inodes' [22740.384578] tmpfs: Bad value '0' for mount option 'nr_inodes' [22740.385174] tmpfs: Bad value '0' for mount option 'nr_inodes' Thanks! Zhipeng From: Scott Little [mailto:scott.little@windriver.com] Sent: 2018年8月1日 3:01 To: starlingx-discuss@lists.starlingx.io<mailto:starlingx-discuss@lists.starlingx.io> Subject: [Starlingx-discuss] build-pkg --parallel I had a successful parallel build (aka build-pkgs --parallel) inside the docker container. ~1h45m on 24 core, 64G ram The prerequisite was a populated $MY_REPO/cgcs-tis-repo/dependancy-cache. Currently we only generate the cache after the build in the 'generate-cgcs-tis-repo' step. I'd like to see the cache stored in git and updated regularly by 'official' builds. Note: The cache doesn't have to be perfect, so a cache that is out of date by a day or a week is still very useful. build-pkgs/mockchain just needs a rough guide on build dependencies and potential dependency loops. Scott
participants (3)
-
Hu, Yong
-
Liu, ZhipengS
-
Scott Little