From nobody Tue Nov 23 19:38:24 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 B8B2718A1894 for ; Tue, 23 Nov 2021 19:38:38 +0000 (UTC) (envelope-from jdhurtado@orbiware.com) Received: from mail-ua1-x931.google.com (mail-ua1-x931.google.com [IPv6:2607:f8b0:4864:20::931]) (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 4HzDvy3bVQz3pMP for ; Tue, 23 Nov 2021 19:38:38 +0000 (UTC) (envelope-from jdhurtado@orbiware.com) Received: by mail-ua1-x931.google.com with SMTP id a14so238056uak.0 for ; Tue, 23 Nov 2021 11:38:38 -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 :cc; bh=JwyXFVj9Jtqxhkc/1WnVgPyTBuHTr/Y0srdLE+XmBAg=; b=Du10mQHgs01kXOYJ9Bp1FXBgWLAg4IHhuHnqoijnMP09YqG3iDW9mkSwtLofgxuSmB uv1jTjPXUEDInX5NJmBQCT1XNY38dXRKlQXmpgCmgHCAJscj3TpuGQpg3RTGx/Ky1WxL eotQeuLGFa+eZppmYXm1PJjLOJaELl/BSkvM9lC2ravVheJ6HaSTUkqwJdbzknAdb4Vy D9yT2jqnAcDimYApGtw89k2l7tktSBgiLt1PjEJ+y7ejuNYUvPUppa27/DuTpc00l/Wd QosbmMcIK7LfhjPkdoyD9UipkxQZt2LjqjuJxU9bN91bjo8Kglq+xAem7Lezwr3zHD9A BA6Q== 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:cc; bh=JwyXFVj9Jtqxhkc/1WnVgPyTBuHTr/Y0srdLE+XmBAg=; b=l4uqtUrl/d7nSLK5NOewduy2EAPN9Q2JESClx0LlBAO3Tw008sfbPjnU3zrnKKEgQi WUEglJUu7gPuUErAhcSINGdqSJCkdHciWaHMGC57T/JawldmpwY+5pEG6ANaIPBXR5NV EDMfNc2syDp96OlzdgGNVaqYwplBSZfLneElF/8VtFmwVUNyRKd22tfSCzqHbmPtwKCX F1zd6k9dWY4+EoeM0ZffszdPAxR14v6lIGabYvtsgWAOko1k+UEr6/Uu+I/en12PTwV7 6XYTJVcffAwnnVXCmbl3ixv3yXmEJCD6LtUxyw2ZKg0e5t2qyx9EzOHRMPZan0QxkZhE MUtQ== X-Gm-Message-State: AOAM531GfFm8+YNF4JssL8rzKfInBLcZ0tuQ/a4u4t4LN9+622dY+dN8 slgVICcaUwXspBDP/W7T7NGwiX7XVqCC3uayQ/wd X-Google-Smtp-Source: ABdhPJzm3xid8+YA496gpabo4hEkpCeFgzu1rm+ZWCrsivuDpgIu+9N8b9RgnkpLqBaSBKxo5Qxm7oR0pmnlylklgNI= X-Received: by 2002:ab0:3b12:: with SMTP id n18mr12118662uaw.2.1637696315668; Tue, 23 Nov 2021 11:38:35 -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: <94d868fb-3646-598f-fdea-7d4c61bae4c1@gmail.com> <202111231347.1ANDl4Nd083211@mail.karels.net> In-Reply-To: <202111231347.1ANDl4Nd083211@mail.karels.net> From: Juan David Hurtado G Date: Tue, 23 Nov 2021 14:38:24 -0500 Message-ID: Subject: Re: 13.0-RELEASE Poor performance on Raspberry pi 3 B+ To: mike@karels.net Cc: MJ , freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="000000000000272b7a05d179e31c" X-Rspamd-Queue-Id: 4HzDvy3bVQz3pMP X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: Y --000000000000272b7a05d179e31c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > So it's not a general problem. Hi Mike, I have tried with another raspberry and with another micro sd (class 10) and in another location and same behaviour: It takes hours to do a `freebsd-update fetch`. After tweaking vfs.hirunningspace it seems to help a little but the system still feels laggy. That's with a fresh install, no extra services or apps. El mar, 23 nov 2021 a las 8:47, Mike Karels () escribi=C3= =B3: > Matt wrote: > > 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 so= me > > > 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=3D= "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 > > > > > > :( > > Another data point: on my RPi 3B+, I get this: > > rpi% time freebsd-version -kru > 13.0-RELEASE-p4 > 13.0-RELEASE-p4 > 13.0-RELEASE-p5 > 0.372u 0.053s 0:01.34 31.3% 27+178k 28+0io 0pf+0w > rpi% time freebsd-version -kru > 13.0-RELEASE-p4 > 13.0-RELEASE-p4 > 13.0-RELEASE-p5 > 0.372u 0.047s 0:00.41 100.0% 27+174k 0+0io 0pf+0w > > So it's not a general problem. > > Mike > > > > What could I be missing? Maybe I need to tweak partitions and use som= e > 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. > > --=20 Juan David Hurtado G (+57) 319 252 3773 www.orbiware.com --000000000000272b7a05d179e31c--