From nobody Tue Nov 23 05:44:21 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 85D121897F23 for ; Tue, 23 Nov 2021 05:44:32 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) (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 4HytPW5ShGz4qZS for ; Tue, 23 Nov 2021 05:44:31 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: by mail-pl1-x634.google.com with SMTP id k4so16075951plx.8 for ; Mon, 22 Nov 2021 21:44:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=QOeY2MFdlWbID3IRa6z6NxOOFw9aynS7jlLgbpiJp4Y=; b=Z1GznH6tKgxibwy9mr1oIuWxReapXKR+wYAkhV3SfuVUih3YZRgbkpOXo8bi3dlsKT 7+ajYdQY0yjjmj1I5OWB2vVBB7MAEzj8I9zxh36DKPH9ztKHPZQ8Gh1EAVZdzGjuSq/L h86qLXnoXogLOW8b9Xzmp1D3VCZZDGlNeBFahcj47/JgBKhbRVRbCA54BFJCFJhZDdLR Xg4ERW0SkhKVHjCfS5JHcSPHi99rkiUaCumGQFu4nXGDP/gwTC8Y9PlSMOwrzVW7UB44 oJOGZdaudWiyQfgq9q+9rjSxHt9OP78300VsFTRcGFNsG3vvLqT5jSIGV09emsJzQIAF +Kmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=QOeY2MFdlWbID3IRa6z6NxOOFw9aynS7jlLgbpiJp4Y=; b=QI5uUebM+x/i2bQohCkyU5Wh5ScDxRUTt2FknL4wio1uOfRcAVDhUBZdMG0PqveWBo 4s4KkZJs8R/d5GVbYvRdA+TEOBQEt1ZclJEj0TJeLh3NS6ui1zSiDfpupKANJt523xna LjzHYaX309HawBj3xQWHhEYNvgbB8WNX3NWOiK69LWdccvJZd62SSzlZl0yEktfwKflT 3GqJ0HZsck6OjgoVDwoVvh0Fle8rZGv0vhgxRrFEI7e+g6AJFRlfEw84EyHp31vIPNup d9ukv4zlMcx/Tsj1sHewRFm/OjAdETEqMz8mDzJhVqk+4XTJXDgjg1+nM6gCAho0yi+7 iTRA== X-Gm-Message-State: AOAM531/9wN/2AZBIWGEL58UP7secWbKXHsDF4gon4N6ntVji20L97as T7W5qhl98YNhkLqWikeBT2zN9JRiDlA3YyaK X-Google-Smtp-Source: ABdhPJwfUddbtxEIULmZJSgQVX0yPP66jyUjm5OxXxTq/irqWXK2jldqxWqXcPK9zmc0bh9P14J0Og== X-Received: by 2002:a17:902:9888:b0:142:8731:4b55 with SMTP id s8-20020a170902988800b0014287314b55mr3707242plp.51.1637646264411; Mon, 22 Nov 2021 21:44:24 -0800 (PST) Received: from [192.168.1.10] ([115.69.53.183]) by smtp.gmail.com with ESMTPSA id z10sm11038550pfh.106.2021.11.22.21.44.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Nov 2021 21:44:24 -0800 (PST) Subject: Re: 13.0-RELEASE Poor performance on Raspberry pi 3 B+ To: freebsd-arm@freebsd.org References: From: MJ Message-ID: <94d868fb-3646-598f-fdea-7d4c61bae4c1@gmail.com> Date: Tue, 23 Nov 2021 16:44:21 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 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 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-AU Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4HytPW5ShGz4qZS X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=Z1GznH6t; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mafsys1234@gmail.com designates 2607:f8b0:4864:20::634 as permitted sender) smtp.mailfrom=mafsys1234@gmail.com X-Spamd-Result: default: False [-0.22 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_MEDIUM(0.62)[0.619]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::634:from]; NEURAL_HAM_SHORT(-0.52)[-0.519]; NEURAL_SPAM_LONG(0.68)[0.679]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N On 23/11/2021 1:42 pm, Juan David Hurtado G wrote: > 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 it, > it takes a few seconds to ask for the password. I had similar experiences. Do you have any USB devices attached? One thing to watch for is any mounting of USB drives. I also had problems with certain cables connecting USB drives to the Pi but when I placed them on a powered hub they were fine (not slow to mount). As a reference, running devuan I had no issues. If you have USB drives attached, try this: place hw.usb.no_boot_wait="1" in /boot/loader.conf > > While doing `freebsd-update fetch install` it took a plenty of minutes, so > 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. I've never tried this. Is this now possible because it's a Tier 1 architecture? Would not memory be a constraint here? You definitely wouldn't want to be using tmpfs system. > > PS: I don't think it is the microsd card since it runs raspios fine. > And usually they start exhibiting write issues beforehand if they're going to fail. Have you looked in /var/log/messages to see if there's any help there? Matt.