From nobody Wed Nov 24 14:33:33 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 61F4A189B41B for ; Wed, 24 Nov 2021 14:33:46 +0000 (UTC) (envelope-from jdhurtado@orbiware.com) Received: from mail-ua1-x934.google.com (mail-ua1-x934.google.com [IPv6:2607:f8b0:4864:20::934]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hzk5j518dz4cq1 for ; Wed, 24 Nov 2021 14:33:45 +0000 (UTC) (envelope-from jdhurtado@orbiware.com) Received: by mail-ua1-x934.google.com with SMTP id p37so5514452uae.8 for ; Wed, 24 Nov 2021 06:33:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orbiware.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=9XhhpOGhIl130NqZetBMoiWHuZr1ssLVou4khNpcXuA=; b=YCJer5V+0Fkp4pkkJTO/Mev/cLG2kFimks+PIueAMxNMkaIA0fAzkrd2hUfHHR0l8c jd/L6YUR9qOQQYLWh4+YnBPpGFuTDt30YYqluZCNVoApYPtQSl0cDkgPWo4lxNCX+/0i aE49zXR2rrVGw2sB5E3VgzWf1VkheOXokBIgxsxyZ4RgHkwQdqqh0bdZ+G6G4dfT3L1q 8zzGl8MjRBD6o9l1XPxHHnsLWwlLB8s/709HwgdX7V4yEBfplCDMT6Bb49NB7Uck9ryb 7fj1wtBACeMthBnHEbdeZpH05B45JDC+9lWhMUMkVeLoA8qjbjht/IhIncmveTmAeSQq Cegg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=9XhhpOGhIl130NqZetBMoiWHuZr1ssLVou4khNpcXuA=; b=2M1bPxKgLpiMhdc+ohYANgbDDDrd5t6UWQC7C2zxJW+DHfn6Fu73tXKowJhtF+pqj1 lVQdrkG68IEOFaslLDWK+TuVtEfJ5SNakpTawHQKsg46V1AqiVwf9DjCIkEN+SFRrydj Zd1AOXnpoyitXXvdeV9ixuZYu/EdgW3Eg9Lig50hf9/CSXWJCYKQQdkT3Bzkups8GPN+ QV7oWz+Pf3R+8clDJj+z4y0S7ZaMDdM7H+CCjIii8EA/kbFrurwugwv5eEzm66aRalSU acQBX3XzDuY8FF3iNDXSiabAUtGY3voy5DVKAjt/zLwfJa2LgVsGZro6zfx6r+36YANi 7KNQ== X-Gm-Message-State: AOAM530ma+ioetvOQWMhbhx3KUBQGBBgLyObc/XoymAovjZ4IH/Osx1p n/wYydWbPF0mG2FOqyileykUKR3YjLh2q3XtOkt8oBgHI5IC X-Google-Smtp-Source: ABdhPJyzQ5zu6IEiOd/wCBzcD1AVk80RLNkWcLexHryPV/Ri43E4iGcUDLgTdwcwi6BVY/79bpaGYLo4/40L0CsKGfU= X-Received: by 2002:a05:6102:3ec3:: with SMTP id n3mr24475839vsv.48.1637764424994; Wed, 24 Nov 2021 06:33:44 -0800 (PST) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Juan David Hurtado G Date: Wed, 24 Nov 2021 09:33:33 -0500 Message-ID: Subject: Re: 13.0-RELEASE Poor performance on Raspberry pi 3 B+ To: freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="000000000000c723ae05d189bed8" X-Rspamd-Queue-Id: 4Hzk5j518dz4cq1 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=orbiware.com header.s=google header.b=YCJer5V+; dmarc=pass (policy=none) header.from=orbiware.com; spf=softfail (mx1.freebsd.org: 2607:f8b0:4864:20::934 is neither permitted nor denied by domain of jdhurtado@orbiware.com) smtp.mailfrom=jdhurtado@orbiware.com X-Spamd-Result: default: False [-3.67 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.89)[-0.894]; R_DKIM_ALLOW(-0.20)[orbiware.com:s=google]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; RCPT_COUNT_ONE(0.00)[1]; DKIM_TRACE(0.00)[orbiware.com:+]; DMARC_POLICY_ALLOW(0.00)[orbiware.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::934:from]; NEURAL_HAM_SHORT(-0.98)[-0.981]; DMARC_POLICY_ALLOW_WITH_FAILURES(-0.50)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: Y --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 at mmc0 0.4MHz/4bit/65535-block ``` Raspberry Pi 4 with a different card: ``` mmcsd0: 31GB 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--