Re: RPi and powerd, was: Re: RPI4 clock speeds and serial port ( temperatures idle and -j4 buildworld buildkernel )

Mark Millard via freebsd-arm <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]>

On 2021-Mar-23, at 12:57, Mark Millard <marklmi at yahoo.com> wrote:
> 
> 
> On 2021-Mar-23, at 06:56, tech-lists <tech-lists at zyxst.net> wrote:
> 
>> Hi,
>> 
>> latest build run:
> 
> Had a -mcpu=cortext-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=cortex-a72 tuned context . . .

>>>>> World built in 22976 seconds, ncpu: 4, make -j6
>> --------------------------------------------------------------
>> 
>> 6 Hours : 22 Minutes : 56 Seconds
>> 
>> 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
>> --------------------------------------------------------------
>> 
>> 0 Hours : 34 Minutes : 46 Seconds
>> 
>> 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 
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.
> 
>> 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.
> 
>> relevant rc.conf settings:
>> powerd_enable="YES"
>> powerd_flags="-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=128 # default 64 # Cluster read-ahead max block count

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

>> config.txt:
>> kernel=u-boot.bin
>> over_voltage=6
>> arm_freq=2000
>> sdram_freq_min=3200

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.
> 

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.


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

_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.