Re: freebsd 6x slower than Raspbian 10 buster on RPi 4b

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

> On 8 Feb 2021, at 21:12, Elwood Downey <[email protected]> wrote:
> 
> Hello all!
> 
> Just wanted to share a comparison I did between freebsd and raspbian on the
> same RPi 4b with 1 GB RAM. I wrote a tiny C++ program that creates
> pthreads, each of which mallocs an array and spins filling it with sqrtf of
> the array index. Setting it to 3 threads (the hw has 4 cores), I found
> freebsd takes consistently 6.5x wall-clock time longer than with raspbian.
> Below are the sessions for each showing pertinent details. Attached is the
> program itself (if it doesn't make it through the newsgroup, mail me direct
> for a copy). One good news is the thread overhead for freebsd is about 100x
> smaller so kudos to the scheduler.
> 
> This is surprising and disappointing. Any comments welcome, especially what
> I'm doing wrong here. Thank you for your time.

It looks to me like you’re running a CURRENT snapshot - this is built with
the debugging kernel config which has a major performance impact. If
you build a kernel using the CURRENT-NODEBUG config (i.e. cd /usr/src && 
make buildkernel KERNCONF=CURRENT-NODEBUG ) you’ll probably find that speeds
things up a bit. -CURRENT is development code and should be treated as such.

Mike
_______________________________________________
[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.