From owner-freebsd-stable@freebsd.org Mon Mar 22 15:19:56 2021 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6D5105B24A0 for ; Mon, 22 Mar 2021 15:19:56 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) (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 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F3ypz30TLz3q35; Mon, 22 Mar 2021 15:19:55 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-qv1-xf36.google.com with SMTP id j17so8753729qvo.13; Mon, 22 Mar 2021 08:19:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jOqYITxvDCWOC8qFs4Emoj9rzMNAlTzoHScgAqEpTOQ=; b=Sz5vF2zzHVMcfZpTv8PldYA6cdRKbA7XHDhWgyKLmRLNh8qMRaV40N5Ejtt3+z7KYB Oib/FJWyuwYAtJSVc6YU1X7cZQSdOmiWKbMm7pkKBNf2e4xlFPChPtYuVl61mQj0dI9C mvGuJ635zhg1owL7RpQVVl14swb9qodyoB7CcuuIIhV2QT8qnTlxQhvq22bXo8oI2TdA kEvVLKWfBpf13BdDVVNcUxM3bolDt74t/3JRv/tsZr3b6w6K7/vqvFS4/cWkjSOUpsBN 38hpIVzLa20HI1uEi16iL+5WxStZyA8Q++wubexbEclShU1zZx4KrUa8zYSebKmuZn5u MobA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jOqYITxvDCWOC8qFs4Emoj9rzMNAlTzoHScgAqEpTOQ=; b=o/msHESwWvQSd2CTcPb+Tt8Kz9GvtfmIod38Z6OcqL8IdU2GcF8Gvycc6ljUoS1LB0 1yKpK38WE+NpDgzgNErEpwPduNx2NPEMaQ2ei8f+Rs/RC7hXjg+YnuTOu4nG26vPVFZH tgOt/KJW1uOnZhHhK26HExK50el5S4DrrFf/rD1QHxFCVYBCB1s+55rPI7KSmmeZu42w 14X8TuUBENsMmyg/LPPe/2rgNbqTpM+3lT/mvjjdgFJw7xfNlcybIffoRvqDlJa39I0n 7opcNIdR2ZMz7mLpum2WFU2i+f/UiutypLZ3h4HpnYjLk0O+qz8htfst5GncedHw/CEc d/Cw== X-Gm-Message-State: AOAM5312DoWMCXInYdrn3HNzxCw9TgFSdnJKAse/z0oCWk0qGAcnmqax YHwN1VCFkbiwxn7b7lKKmOPOlwTKza1m0/5Jr4E= X-Google-Smtp-Source: ABdhPJyQkM1WqhMkAhcDZeTIyCvpfy7RaecYMZ8/IH4sDT9k7cJJsR6G7MVd9XGrIAj1wDVCtIKZIIfVWOpWvQrJmMg= X-Received: by 2002:a0c:8ec1:: with SMTP id y1mr516098qvb.11.1616426393158; Mon, 22 Mar 2021 08:19:53 -0700 (PDT) MIME-Version: 1.0 References: <12705C29-53EA-4484-8291-C409AF4B3DE5.ref@yahoo.com> <12705C29-53EA-4484-8291-C409AF4B3DE5@yahoo.com> In-Reply-To: From: Adrian Chadd Date: Mon, 22 Mar 2021 08:19:40 -0700 Message-ID: Subject: Re: Filesystem operations slower in 13.0 than 12.2 To: Kevin Oberman Cc: Mark Millard , FreeBSD-STABLE Mailing List , Konstantin Belousov Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4F3ypz30TLz3q35 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Sz5vF2zz; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::f36 as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-3.71 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.71)[-0.709]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::f36:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::f36:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f36:from]; FREEMAIL_CC(0.00)[yahoo.com,freebsd.org]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-stable]; RCVD_COUNT_TWO(0.00)[2] X-Mailman-Approved-At: Tue, 23 Mar 2021 04:30:30 +0000 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2021 15:19:56 -0000 On Mon, 15 Mar 2021 at 14:58, Kevin Oberman wrote: > > > > It appears that the messages are associated with reading > > the disk(s), not directly with writing them, where the > > reads take more than "hz * 20" time units to complete. > > (I'm looking at main (14) code.) What might contribute > > to the time taken for the pending read(s)? > > > The reference to hz * 20 woke up a few sleeping memory cells. I forgot that > I cleaned up my loader.conf. It was largely a copy of the one on my > decade-old T520. I commented out "kern.hz=100". I don't recall the details, > but I think it was actually from an even older system, my T42 from before I > retired. > > In any case, restoring this setting has greatly improved the situation. I > now have really bad disk I/O performance on large disk to disk activity > (untarring the firefox distro) instead of terrible performance and the > system freezes have vanished, though I do see pauses in response to clicks > or text entry, but the display remains active and the pauses are short... 1 > to 15 seconds, I'd guess. No, I have no idea what this indicates. ... which drive controller is this? Is it just a laptop ATA disk? > I'm still not seeing the performance I was seeing back in February when 40 > MB/s for extended intervals was common and I once untarred firefox.tar.gz2 > in under a minute and performance seldom dropped below 1.4 MB/s. Did you find a resolution? I wonder if setting kern.hz is kicking some process(es) to get some time more frequently due to bugs elsewhere in the system (interrupts, IPI handling, wake-ups, etc) -adrian