<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">nr_inodes=0</span>
is supplied by the mock prior to issuing the mount syscall.<br>
<br>
<pre>There seems to be a mismatch between the mock inside your docker (I assume) and the kernel you are running.
</pre>
<br>
<br>
On 18-08-06 10:58 PM, Liu, ZhipengS wrote:<br>
</div>
<blockquote type="cite"
cite="mid:93814834B4855241994F290E959305C752F62C88@SHSMSX103.ccr.corp.intel.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Microsoft YaHei";
panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
{font-family:"\@Microsoft YaHei";
panose-1:2 11 5 3 2 2 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;
color:black;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Hi
Scott and all,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">I
have an issue when I did parallel build and need your help<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">It
seems b1/b2/b3 could not mount to tmpfs. Only b0 which not
mount to tmpfs can work.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">00:09:08
ERROR: Command failed:<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">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<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Root
cause seems to be nr_inode=0, as I saw dmesg log as below.
<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">However,
I could not find where or how I can change this nr_inode.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">[22719.688732]
tmpfs: Bad value '0' for mount option 'nr_inodes'<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">[22719.710907]
tmpfs: Bad value '0' for mount option 'nr_inodes'<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">[22726.037303]
tmpfs: Bad value '0' for mount option 'nr_inodes'<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">[22740.384578]
tmpfs: Bad value '0' for mount option 'nr_inodes'<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">[22740.385174]
tmpfs: Bad value '0' for mount option 'nr_inodes'<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Thanks!<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Zhipeng<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><a name="_____replyseparator"
moz-do-not-send="true"></a><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext">
Scott Little [<a class="moz-txt-link-freetext" href="mailto:scott.little@windriver.com">mailto:scott.little@windriver.com</a>]
<br>
<b>Sent:</b> 2018</span><span
style="font-size:11.0pt;font-family:"Microsoft
YaHei",sans-serif;color:windowtext" lang="ZH-CN">年</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext">8</span><span
style="font-size:11.0pt;font-family:"Microsoft
YaHei",sans-serif;color:windowtext" lang="ZH-CN">月</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext">1</span><span
style="font-size:11.0pt;font-family:"Microsoft
YaHei",sans-serif;color:windowtext" lang="ZH-CN">日</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext">
3:01<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:starlingx-discuss@lists.starlingx.io">starlingx-discuss@lists.starlingx.io</a><br>
<b>Subject:</b> [Starlingx-discuss] build-pkg --parallel<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>I had a successful parallel build (aka build-pkgs --parallel)
inside the docker container. ~1h45m on 24 core, 64G ram<o:p></o:p></p>
<p>The prerequisite was a populated
$MY_REPO/cgcs-tis-repo/dependancy-cache.<o:p></o:p></p>
<p>Currently we only generate the cache <b>after</b> the build
in the 'generate-cgcs-tis-repo' step.
<b>I'd like to see the cache stored in git and updated
regularly by 'official' builds.</b>
<o:p></o:p></p>
<p>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.<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>Scott<o:p></o:p></p>
<p><o:p> </o:p></p>
<p><o:p> </o:p></p>
</div>
</blockquote>
<p><br>
</p>
</body>
</html>