Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jan 2021 19:19:40 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        bob prohaska <fbsd@www.zefox.net>
Cc:        Current FreeBSD <freebsd-current@freebsd.org>, freebsd-arm@freebsd.org
Subject:   Re: Silent hang in buildworld, was Re: Invoking -v for clang during buildworld
Message-ID:  <00104FAD-E32B-4DDE-80DD-FCEF14CEC06B@yahoo.com>
In-Reply-To: <A0427375-5515-4D3C-AF2A-915E60A836A7@yahoo.com>
References:  <20210116043740.GA19523@www.zefox.net> <ED26508F-282D-439D-8A6A-65A136C76C84@yahoo.com> <20210116155538.GA24259@www.zefox.net> <F62027C8-0813-4E6F-934A-3088F966AF8C@yahoo.com> <20210116220334.GA26756@www.zefox.net> <C75D3D9C-4284-4BE3-B2CD-5DC6BBB60843@yahoo.com> <20210117174006.GA30728@www.zefox.net> <85889EAE-F579-4220-9185-944D9AA5075A@yahoo.com> <20210118015009.GA31353@www.zefox.net> <60CCCDE8-E3D3-4920-9FC0-A945330F6830@yahoo.com> <A0427375-5515-4D3C-AF2A-915E60A836A7@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help


> . . .
> FYI: I re-established my access to a RPi2B V1.1 and made
> it report: "maximum recommended amount (468832 pages)"
>=20
> (The figure can vary some from release to release.)
>=20
> 468832*4096 =3D=3D 1920335872 or a little over 1831 MiBytes
>=20
> For the 4096 Byte pages, that means that the following from
> gpart fits without complaint (size is in blocks, not pages):
>=20
>  413140992    3686400  da0p2  freebsd-swap  (1.8G)
>=20
> 3686400*512 is a little over 1.75 GiByte or 1800 MiByte. So
> I've left some room below 1831 MiBytes, but not a lot.
>=20
> FYI about my build experiment that is running:
>=20
> # sysctl hw.physmem
> hw.physmem: 979042304
>=20
> which, in recent times for armv7, I can (and did) set in
> /boot/loader.conf on a faster cortex-A7 SBC (that can boot
> the same media but has more RAM).
>=20
> So I tried a -j4 build, but with LDFLAGS.lld+=3D -Wl,--threads=3D1
> in use and my other particular src.conf/make.conf like content
> (so the builds do likely differ from yours in various ways).
> My build is producing a non-debug build (but with -g symbols).
> Somewhat after where your buildworld.log stops, my odd variant
> of top was reporting:
>=20
> Mem:  . . . , 753672Ki MaxObsActive, 200412Ki MaxObsWired, 892732Ki =
MaxObs(Act+Wir)
> Swap: . . . , 145832Ki MaxObsUsed
>=20
> and top was also showing lots of processes as having "0B" RES
> in STATE "wait" or "nanslp" (so, apparently swapped out, not paging).
> ("MaxObs" is short for "maximum observed".)
>=20
> For comparison, your swapscript.log reported a maximum total of
> 346192 KiBytes "Used" for swap, about 98% into the log file.
>=20
> (Time goes by . . .)
>=20
> It finished with building libllvm and is part way into building
> libclang. This is probably well past where your hangup happened,
> given that your published buildworldlog file stopped with
> libllvm's Target/ARM/ARMMCInstLower.o . My odd top now shows:
>=20
> Mem:  . . . , 753672Ki MaxObsActive, 200412Ki MaxObsWired, 892732Ki =
MaxObs(Act+Wir)
> Swap: . . . , 392328Ki MaxObsUsed
>=20
> The build continues to run. I'll let you know how it goes.
> . . .

Just after libclang finished my odd top showed:

Mem:  . . . , 753672Ki MaxObsActive, 200412Ki MaxObsWired, 892736Ki =
MaxObs(Act+Wir)
Swap: . . . , 537588Ki MaxObsUsed

After liblldb:

Mem:  . . . , 753672Ki MaxObsActive, 200412Ki MaxObsWired, 899276Ki =
MaxObs(Act+Wir)
Swap: . . . , 537588Ki MaxObsUsed

Much later, after the lldb program had been built:

Mem:  . . . , 765700Ki MaxObsActive, 200412Ki MaxObsWired, 954116Ki =
MaxObs(Act+Wir)
Swap: . . . , 537588Ki MaxObsUsed

>>> World build completed on Mon Jan 18 19:10:08 PST 2021
>>> World built in 72960 seconds, ncpu: 4, make -j4

This was building from scratch what was already installed:

# ~/fbsd-based-on-what-freebsd-main.sh=20
merge-base: 818390ce0ca539300dd15d7a817784f1e3f7a9b8
merge-base: CommitDate: 2021-01-13 21:27:44 +0000
4180404713ec (HEAD -> mm-src) mm-src snapshot for mm's patched build in =
git context.
818390ce0ca5 (freebsd/main, freebsd/HEAD, pure-src, main) arm64: fix =
early devmap assertion
FreeBSD OPiP2E_RPi2v11 13.0-CURRENT FreeBSD 13.0-CURRENT =
mm-src-c255938-g4180404713ec GENERIC-NODBG  arm armv7 1300135 1300135

This suggests that you should be able to build on the RPi2B v1.1,
using -j4, with appropriate configuration for what and how to build.


It is now building the matching kernel, my GENERIC-NODBG style.



=3D=3D=3D
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00104FAD-E32B-4DDE-80DD-FCEF14CEC06B>