Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Mar 2021 16:15:03 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        tech-lists <tech-lists@zyxst.net>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: RPi and powerd, was: Re: RPI4 clock speeds and serial port ( temperatures idle and -j4 buildworld buildkernel )
Message-ID:  <EA000404-7CDC-4D2A-B0C6-3D6BAC599406@yahoo.com>
In-Reply-To: <59B618B3-7AC9-41DF-9807-173DE34B0F8D@yahoo.com>
References:  <FDBC2E89-8473-4C3A-B12E-78821949FDDB@yahoo.com> <20210320005302.GA40542@www.zefox.net> <81CB0CCA-59AC-49A2-9372-4E2C22E3214D@googlemail.com> <20210320155638.GA41617@www.zefox.net> <63E61033-667C-4A08-9012-7D987B652176@yahoo.com> <20210320182821.GA49050@www.zefox.net> <AD8A445A-DF90-4525-8042-EA2A667558FE@yahoo.com> <5BF4DC26-8CCC-48E8-802F-34C42084D47F@yahoo.com> <20210321181339.GA56351@www.zefox.net> <01787975-3D1A-4D28-8F0F-957D6842D487@googlemail.com> <YFnzio4lC/D7ffFh@ceres.zyxst.net> <59B618B3-7AC9-41DF-9807-173DE34B0F8D@yahoo.com>

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


On 2021-Mar-23, at 12:57, Mark Millard <marklmi at yahoo.com> wrote:
>=20
>=20
> On 2021-Mar-23, at 06:56, tech-lists <tech-lists at zyxst.net> wrote:
>=20
>> Hi,
>>=20
>> latest build run:
>=20
> Had a -mcpu=3Dcortext-a72 world and kernel been
> installed and booted first? Was the system
> running a world and kernel that had not been
> tuned for the Cortex-A72?

I've started an experimental build in my
-mcpu=3Dcortex-a72 tuned context . . .

>>>>> World built in 22976 seconds, ncpu: 4, make -j6
>> --------------------------------------------------------------
>>=20
>> 6 Hours : 22 Minutes : 56 Seconds
>>=20
>> created kernel.bin from kernel.full
>> --------------------------------------------------------------
>>>>> Kernel build for GENERIC-NODEBUG completed on Mon Mar 22 13:54:53
>>>>> UTC 2021
>> --------------------------------------------------------------
>>>>> Kernel(s)  GENERIC-NODEBUG built in 2086 seconds, ncpu: 4, make =
-j6
>> --------------------------------------------------------------
>>=20
>> 0 Hours : 34 Minutes : 46 Seconds
>>=20
>> commands used:
>> 1. cd /usr/src
>> 2. git pull --ff-only

I'm simply from-scratch rebuilding what I'm
already running, based on main 7381bbee29df from
2021-03-12:

# ~/fbsd-based-on-what-freebsd-main.sh=20
merge-base: 7381bbee29df959e88ec59866cf2878263e7f3b2
merge-base: CommitDate: 2021-03-12 20:29:42 +0000
def0058cc690 (HEAD -> mm-src) mm-src snapshot for mm's patched build in =
git context.
7381bbee29df (freebsd/main, freebsd/HEAD, pure-src, main) cam: Run all =
XPT_ASYNC ccbs in a dedicated thread
FreeBSD RPi4B 14.0-CURRENT FreeBSD 14.0-CURRENT =
mm-src-n245445-def0058cc690 GENERIC-NODBG  arm64 aarch64 1400005 1400005

>> 3. make -j10 cleanworld
>> 4. make -j10 cleandir
>> 5. make -j10 clean

My /usr/obj/cortexA72_clang/ was empty at the
start of the buildworld buildkernel .
devel/ccache is still not installed.

> This does not show ccache being cleared out
> before the below. So the times may be examples
> of "with ccache benefit" times. The contrast
> with mine and Bob P.'s times suggests a
> nice time-benefit can occur.
>=20
>> 6. make -j6 buildworld
>> 7. make -j6 buildkernel

I'm using "-j6 buildworld buildkernel".

>> here's the src.conf :
>> https://cloud.zyxst.net/~john/FreeBSD/rpi4-main/src.conf

I'm using my normal src.conf equivalent, not
yours. (So the experiment is comparable to my
normal past experiments in this respect, matching
what I've reported in the past.)

> I seem to get intermittent access to
> https://cloud.zyxst.net/ but got to
> see the file content eventually.
>=20
>> relevant rc.conf settings:
>> powerd_enable=3D"YES"
>> powerd_flags=3D"-r 1"

I commented out the config.txt line that assigned
arm_freq_min and the /etc/sysctl/conf line that
assigned an arm frequency.

I put the 2 powerd_* lines above in my /etc/rc.conf .

>> sysctl.conf settings:
>> vfs.read_max=3D128 # default 64 # Cluster read-ahead max block count

I added the above line to my /etc/sysctl.conf .

>> config.txt:
>> kernel=3Du-boot.bin
>> over_voltage=3D6
>> arm_freq=3D2000
>> sdram_freq_min=3D3200

Ignoring comment differences, mine matches
for such lines.

I rebooted on the basis of all these changes
before starting the "-j6 buildworld buildkernel"
style build.

> Thanks much for the information.
>=20

So, 6..10(?) of hours from when the
build started I should have time frames
to report for a "no ccache benefit"
build to compare to my past reported
build times.


=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?EA000404-7CDC-4D2A-B0C6-3D6BAC599406>