Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Does someone keep track of how long it takes to buildworld/kernel?

203 views
Skip to first unread message

Garance A Drosehn

unread,
Jan 13, 2017, 5:28:22 PM1/13/17
to
On 13 Jan 2017, at 15:23, Eric Joyner wrote:

> ^ Message ^
>
> It takes forever, but I keep on forgetting to time how long it takes,
> so I don't know how long "forever" is.

I have scripts which do buildworld's for me, and they keep all kinds of
extra information for each step (buildkernel, installkernel, buildworld,
installworld). Unfortunately I haven't been building world very much
lately, and I haven't built anything on release-11.

I do build on older hardware, so it takes a long time. (hours, iirc)

--
Garance Alistair Drosehn = dro...@rpi.edu
Senior Systems Programmer or g...@FreeBSD.org
Rensselaer Polytechnic Institute; Troy, NY; USA
_______________________________________________
freebsd-...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

Ngie Cooper (yaneurabeya)

unread,
Jan 13, 2017, 5:49:13 PM1/13/17
to

> On Jan 13, 2017, at 12:23, Eric Joyner <e...@FreeBSD.org> wrote:
>
> ^ Message ^
>
> It takes forever, but I keep on forgetting to time how long it takes, so I
> don't know how long "forever" is.

Using -DNO_CLEAN on my 12.0-CURRENT / amd64 / 3GB RAM / 3 cores / VMware Fusion + open-vmtools VM…
- … buildworld with special baked WITHOUT/MK options in src.conf: 26 mins
- …. buildkernel of GENERIC/GENERIC-NODEBUG with stripped src.conf and MODULES_OVERRIDE: 14 minutes

Overall time: 40 minutes

Granted, I’m pretty up-to-date (just upgrading a few hundred revs at a time), but a from-scratch build on more ample Sandybridge/Haswell hardware with SSDs shouldn’t take any longer than 30 mins (if you optimize things heavily, it can be less than that).

If you need a beefy box to play with for building en masse (since you’re a FreeBSD dev), try the universe*.freebsd.org boxes.

Cheers,
-Ngie
signature.asc

jungle Boogie

unread,
Jan 16, 2017, 10:41:33 AM1/16/17
to
On 13 January 2017 at 12:23, Eric Joyner <e...@freebsd.org> wrote:
>
> It takes forever, but I keep on forgetting to time how long it takes, so I
> don't know how long "forever" is.


My last buildworld on a severely under powered i386 for 11stable: 420:41 minutes
Build kernel is around 85 minutes.

How I track:
https://github.com/dschep/ntfy + https://pushover.net

I get a notification on my phone, otherwise I would forget to check
and/or check too frequently. I set it up in a tmux session and detach
until it's finished.



--
-------
inum: 883510009027723
sip: jungle...@sip2sip.info

Polytropon

unread,
Jan 16, 2017, 11:09:29 PM1/16/17
to
On Mon, 16 Jan 2017 07:41:06 -0800, jungle Boogie wrote:
> On 13 January 2017 at 12:23, Eric Joyner <e...@freebsd.org> wrote:
> >
> > It takes forever, but I keep on forgetting to time how long it takes, so I
> > don't know how long "forever" is.
>
>
> My last buildworld on a severely under powered i386 for 11stable: 420:41 minutes
> Build kernel is around 85 minutes.

Some "manual copy & paste" data from the past (original post
is from 2008, repost from 11/2015):


*** quote ***


FreeBSD 5 on Pentium 4 with 2 GHz and 1 GB RAM:

b.world+b.kern: 17494.415u 2562.134s 5:46:42.25 96.4% (with CFLAGS)
17474.169u 2481.368s 5:46:30.40 95.9% (without CLFAGS)
5608.712u 1595.130s 2:13:18.67 90.0%
6382.185u 1788.433s 2:26:36.06 92.8%
buildworld: 5086.993u 1431.086s 1:58:16.33 91.8%
11457.047u 2151.158s 3:54:15.31 96.8%
buildkernel 2326.380u 234.457s 43:42.15 97.6%
1102.491u 278.194s 25:18.58 90.9%
1182.203u 294.622s 26:12.71 93.9%
1518.402u 310.741s 34:16.96 88.9%
3289.368u 529.669s 1:05:25.90 97.2%
installkernel: 5.718u 6.898s 0:30.97 40.6%
6.655u 7.389s 0:32.08 43.7%
6.994u 7.734s 0:33.19 44.3%

(...software advance happens here...)

FreeBSD 7 on Pentium 4 with 2 GHz and 1 GB RAM:

b.world+b.kern: 16574.070u 2516.128s 6:06:03.90 86.9% (with debug)
18232.967u 2427.404s 7:19:49.24 78.2% (with debug)
18992.839u 2569.146s 9:12:00.28 65.1%
buildworld: 11457.047u 2151.158s 3:54:15.31 96.8%
buildkernel: 3289.368u 529.669s 1:05:25.90 97.2%
3503.732u 524.399s 1:11:05.53 94.4%
4032.019u 572.636s 1:58:29.08 64.7% (with debug)
installkernel: 17.396u 12.587s 0:46.89 63.9%
18.890u 12.131s 1:11.85 43.1%

As you can see, 5 hours was a possible value on a single-core
single-threat slow-as-ass CPU. But then the system became more
advanced, and 7 - 9 hours compile time became possible. :-)


*** end quote ***



Sadly I don't have a "copy" of my build time on my current
home PC, including a Core 2 Duo 4600 with 1.8 GHz and 2 GB RAM,
using a SATA disk, with FreeBSD 8-STABLE, but I think it was
around 5 hours for everything (including a custom kernel).

It would be nice if the build system would automatically issue
a log file or at least log message about build time and usage
statistics. If it wouldn't tell about my brain's age, I would
politely ask to have a "flower box"... ;-)



--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

tech-lists

unread,
Jan 17, 2017, 9:18:39 AM1/17/17
to
On 13/01/2017 20:23, Eric Joyner wrote:
> ^ Message ^
>
> It takes forever, but I keep on forgetting to time how long it takes, so I
> don't know how long "forever" is.

Hi,

On my machine it takes about 20-30 mins with an empty /usr/obj. I
haven't times it precisely though. Specs:

CPU: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4251.31-MHz K8-class CPU)
real memory = 34359738368 (32768 MB)

It runs zfs. /usr/obj and /tmp are on a SSD.
I buildworld & buildkernel with -j32.

--
J.

Sergei Akhmatdinov

unread,
Jan 18, 2017, 1:04:19 AM1/18/17
to

Just did a world+kernel after the recent OpenSSH announcement.

World took 2h13m, kernel took 10m. I usually run time -lh with my makes, but I
accidentally closed my terminal and forgot to log the full output, so I'll just
give you real time from memory.

I'm running 11-STABLE, kernel is custom.
CPU: Intel Core i5-3210M 2.50GHz
8GB of RAM

Running ZFS and using ccache for world and kernel. I recall kernel taking about
30 minutes to compile on first run, so it looks like ccache shaved that by a
lot. Don't recall how long it took to make world the first time.

Cheers,
--
Sergei Akhmatdinov

My GPG public key:
gpg --keyserver pgp.mit.edu --recv-keys AD800D99
0 new messages