Date: Wed, 30 Oct 2024 15:55:57 -0700 From: Brian <brian@sonicboom.org> To: freebsd-current@freebsd.org Subject: Re: speedup build time Message-ID: <1977c28a-7e83-4a4f-b3ec-7ab8817f7b01@sonicboom.org> In-Reply-To: <012d01db28cc$5fc66ac0$1f534040$@gmail.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
Doesn't ccache work? install the package and put WITh_CCACHE_BUILD=yes
in /etc/make.conf. With a lot of ccache hits i cann build kernel and
world with 4 cores onn a vm in about ab hour.
On 10/27/2024 5:00 PM, Maku Bex wrote:
>
> Hello,
>
> I’m trying to figure out a way to decrease build time of -CURRENT
> and/or -STABLE but it is not working out that well.
>
> I’ve tried the following:
>
> * Tuning /etc/make.conf and /etc/src-env.conf based on their
> manpages (make.conf(5), make(1), src.conf(5)).
> * Removed certain options from GENERIC, which reduced the kernel
> build time significantly.
>
> Hardware specs:
>
> * I7-10700T 8C/16T @2.0GHz.
> * 16GB RAM.
> * 256GB NVMe.
>
> Currently, ‘make buildworld’ has been running for 7hrs and counting.
> Is there anything else I can do to speed up world build?
>
> thx,
>
[-- Attachment #2 --]
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Doesn't ccache work? install the package and put
WITh_CCACHE_BUILD=yes in /etc/make.conf. With a lot of ccache hits
i cann build kernel and world with 4 cores onn a vm in about ab
hour.<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 10/27/2024 5:00 PM, Maku Bex wrote:<br>
</div>
<blockquote type="cite"
cite="mid:012d01db28cc$5fc66ac0$1f534040$@gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator"
content="Microsoft Word 15 (filtered medium)">
<style>@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}@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;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}div.WordSection1
{page:WordSection1;}ol
{margin-bottom:0in;}ul
{margin-bottom:0in;}</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-family:"Courier New"">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Courier New"">I’m trying to
figure out a way to decrease build time of -CURRENT and/or
-STABLE but it is not working out that well. <o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Courier New"">I’ve tried the
following:<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Courier New""><o:p> </o:p></span></p>
<ul style="margin-top:0in" type="disc">
<li class="MsoListParagraph"
style="margin-left:0in;mso-list:l0 level1 lfo3"><span
style="font-family:"Courier New"">Tuning
/etc/make.conf and /etc/src-env.conf based on their
manpages (make.conf(5), make(1), src.conf(5)).<o:p></o:p></span></li>
<li class="MsoListParagraph"
style="margin-left:0in;mso-list:l0 level1 lfo3"><span
style="font-family:"Courier New"">Removed
certain options from GENERIC, which reduced the kernel
build time significantly. <o:p></o:p></span></li>
</ul>
<p class="MsoNormal"><span
style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Courier New"">Hardware specs:<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Courier New""><o:p> </o:p></span></p>
<ul style="margin-top:0in" type="disc">
<li class="MsoListParagraph"
style="margin-left:6.75pt;mso-list:l2 level1 lfo6"><span
style="font-family:"Courier New"">I7-10700T
8C/16T @2.0GHz.<o:p></o:p></span></li>
<li class="MsoListParagraph"
style="margin-left:6.75pt;mso-list:l2 level1 lfo6"><span
style="font-family:"Courier New"">16GB RAM.<o:p></o:p></span></li>
<li class="MsoListParagraph"
style="margin-left:6.75pt;mso-list:l2 level1 lfo6"><span
style="font-family:"Courier New"">256GB NVMe.<o:p></o:p></span></li>
</ul>
<p class="MsoNormal"><span
style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Courier New"">Currently, ‘make
buildworld’ has been running for 7hrs and counting. Is there
anything else I can do to speed up world build?<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Courier New"">thx,<o:p></o:p></span></p>
</div>
</blockquote>
</body>
</html>
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1977c28a-7e83-4a4f-b3ec-7ab8817f7b01>
