Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Nov 2021 09:33:33 -0500
From:      Juan David Hurtado G <jdhurtado@orbiware.com>
To:        freebsd-arm@freebsd.org
Subject:   Re: 13.0-RELEASE Poor performance on Raspberry pi 3 B+
Message-ID:  <CAL3Ut_Y_BLbGM1WZ%2B8JbkSp9F=s9_xcWbFikLpcOufioxd1m_g@mail.gmail.com>
In-Reply-To: <CAL3Ut_bFZhWKThHJsPaa%2BP0JXH6-=e3Pxv3xF3Y0u9dXpQ3kZQ@mail.gmail.com>
References:  <CAL3Ut_bFZhWKThHJsPaa%2BP0JXH6-=e3Pxv3xF3Y0u9dXpQ3kZQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000c723ae05d189bed8
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thanks to @evadot and @f451 on Discord, seems there is the issue:

Raspberry Pi 3B+

```
root@generic:~ # dmesg | grep -i mmcsd
mmcsd0: 31GB <SDHC SPCC 2.0 SN 1072013D MFG 08/2017 by 49 SP> at mmc0
0.4MHz/4bit/65535-block
```

Raspberry Pi 4 with a different card:
```
mmcsd0: 31GB <SDHC 00000 0.0 SN 0000509F MFG 09/2019 by 159 TI> at mmc1
0.4MHz/4bit/65535-block
```

So no matter the pi or the card, the microsd clock is at 0.4MHz while in
raspios same cards gets 50 MHz apparently

Seems that explain the behaviour... So is this a FreeBSD bug? or a card
issue even if I've tested with different cards?

PS: A brand new sandisk ultra is on the way so I can test with it.

El lun, 22 nov 2021 a las 21:42, Juan David Hurtado G (<
jdhurtado@orbiware.com>) escribi=C3=B3:

> Hi, I'm trying to use the OS on a Raspberry pi 3 B+
>
> Boot is pretty slow. It hangs on `ue0: Ethernet addresss: ...` for some
> minutes before showing the `login:` to enter the username. When I enter i=
t,
> it takes a few seconds to ask for the password.
>
> While doing `freebsd-update fetch install` it took a plenty of minutes, s=
o
> I canceled the process and then did `freebsd-update fetch` and then
> `freebsd-update install` to see what was going on.
>
> Found that the process was at `wdraid` state. Doing a simple search, I
> found about `vfs.hirunningspace` so I tweaked it to 1Mb and then to 2Mb. =
It
> seems to help, but not by much. Look at this:
>
> freebsd@generic:~ % time freebsd-version -kru
> 13.0-RELEASE-p4
> 13.0-RELEASE-p4
> 13.0-RELEASE-p5
> 0.365u 0.045s 0:41.25 0.9%    20+177k 14+0io 0pf+0w
>
> :(
>
> What could I be missing? Maybe I need to tweak partitions and use some
> kind of configuration/optimization? how? I do appreciate any guidance you
> can provide in order to troubleshoot this.
>
> PS: I don't think it is the microsd card since it runs raspios fine.
>
> PS2: The red led is turned off at the boot process so no way of knowing
> visually if the pi is running. Weird is that the led turned on again afte=
r
> `shutdown -p now` hehe.
>
> --
> Juan David Hurtado G
>


--=20
Juan David Hurtado G
(+57) 319 252 3773
www.orbiware.com

--000000000000c723ae05d189bed8--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAL3Ut_Y_BLbGM1WZ%2B8JbkSp9F=s9_xcWbFikLpcOufioxd1m_g>