From nobody Fri Feb 23 17:56:38 2024 X-Original-To: freebsd-fs@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 4ThHl95TNvz5BC8V for ; Fri, 23 Feb 2024 17:56:53 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) (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 4ThHl74Lg9z4mwH for ; Fri, 23 Feb 2024 17:56:51 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20230601.gappssmtp.com header.s=20230601 header.b=gOhqAg2a; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2a00:1450:4864:20::62e) smtp.mailfrom=wlosh@bsdimp.com Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a2f22bfb4e6so103307166b.0 for ; Fri, 23 Feb 2024 09:56:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1708711010; x=1709315810; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=EewHI2ZhWCRMcmDVM+svx6rg21YhEQsCLt3o4WKzkAY=; b=gOhqAg2azojAhqzVica5Y8L8Kn1QP9XuaiXF5AD1BimXd8y5arvA6jobUESMCTrB69 yFzrPEzKP3/oUH+EheNVfJX6zSSog/pT/N4E8k49nRY7aVMVqN1FND0+B4br2g9tUTEW wTlZ+tbVqUmF4GRs2Sba3XrS8iNLuuYO5fiylP/fJCtRrof0GgmAWdWqBDqofSEPK2Wn HVo8gFPlY975gJegvo8+XGKIYhAR3u9vWhvUvwN6G5r4u+c7ixf28cLhfOr7s1gcESj8 O/kQolX47pfDuckXuS6g/sA6yAq4/NqWcH2HONL3NmmVkjFFV6NO/2glmAnTq0J4a+t8 CcKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708711010; x=1709315810; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EewHI2ZhWCRMcmDVM+svx6rg21YhEQsCLt3o4WKzkAY=; b=TkbgCV9IPET6mQIz9YDbThujwrI75z0BW0y9xLC4+k1LlNWgJ5QmLJv7XocoV0kiQw y7sGcsXlEsbDZ+l2AUHZofluR4qHGWWdfdYDr1J8tISYrgYnmYyBemkadAVsBP5T4PtO 0ORiI7cPK0P+11beLOJPPoud+v5xMbpb8+1FAgVqlhoEDhzuRBT2yMV59Vy2RXzX1MLo tzk0+HpXMqBvUt2R5vm7OpJ06TVwLQ76Mi3mPW9vfU3z/W+q3PbTBE7ibfG2b+IByISX aIMcn3Ex3rufUeoISRTp/Ps0tXfUmS0qphOVZ4rTVktxizXQOKN797bv6CD24GWVkMCr HmEQ== X-Gm-Message-State: AOJu0YzbbJnbJvzg31Mn133quEuInfJ6Udb9jaSXDAbo3H5HbQmflYwG KhnCkScEbrHtOgn9wkgt26PMZ0tyn88VwsuinWsXiAuSJK7pd1XZGlzmlPHK9qWPPvAs/j3359+ 4w1LLNKtByJa4Gvzx9jFe1rrtbAkDS7z8E+K7bw== X-Google-Smtp-Source: AGHT+IEbJ0r6iOflVq0VEpSDvfGPBTDEmBJ+0eSdWZs3LttNl7Y4w2xzltmylAbl+uXTwzgmrtDA52irnnUmX6WavIc= X-Received: by 2002:a17:906:1b4f:b0:a3f:4f15:49d9 with SMTP id p15-20020a1709061b4f00b00a3f4f1549d9mr387381ejg.18.1708711010321; Fri, 23 Feb 2024 09:56:50 -0800 (PST) List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 References: <5n117579-8259-3on3-90pn-79o8n52q4q32@yvfgf.mnoonqbm.arg> In-Reply-To: From: Warner Losh Date: Fri, 23 Feb 2024 10:56:38 -0700 Message-ID: Subject: Re: really slow problem with nvme To: "Bjoern A. Zeeb" Cc: FreeBSD FS Content-Type: multipart/alternative; boundary="000000000000cb56210612104827" X-Spamd-Bar: -- X-Spamd-Result: default: False [-3.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20230601.gappssmtp.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; R_SPF_NA(0.00)[no SPF record]; DMARC_NA(0.00)[bsdimp.com]; RCPT_COUNT_TWO(0.00)[2]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; FROM_HAS_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62e:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org]; DKIM_TRACE(0.00)[bsdimp-com.20230601.gappssmtp.com:+] X-Rspamd-Queue-Id: 4ThHl74Lg9z4mwH --000000000000cb56210612104827 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Feb 23, 2024, 10:55=E2=80=AFAM Warner Losh wrote: > > > On Fri, Feb 23, 2024, 10:46=E2=80=AFAM Bjoern A. Zeeb < > bzeeb-lists@lists.zabbadoz.net> wrote: > >> Hi, >> >> this is a Samsung SSD 970 EVO Plus 1TB nvme and gpart and newfs >> were already slow (it took like two hours for newfs). >> >> Here's another example now: >> >> # /usr/bin/time mkdir foo >> 1.82 real 0.00 user 0.00 sys >> >> How does one debug this? >> > > What filesystem? Sounds like UFS but just making sure. . > > So what's the link speed and number of lanes? If it's bad i might reseat > (though that might not help) that looks good... > > Though I'd bet money that this is an interrupt issue. I'd do a vmstat. -i > to watch how quickly they accumulate... > > How old is the drive? Fresh install? Do other drives have this same issue > in the same slot? Dies this drive have issues in other maxhines or slots? > Oh, and what's its temperature? Any message in dmesg? Warner > Warner > > -- >> Bjoern A. Zeeb r15:7 >> >> --000000000000cb56210612104827 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Fri, Feb 23, 2024, 10:55=E2=80=AFAM Warner Losh <= ;imp@bsdimp.com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">


On Fri, Feb 23, 2024, 10= :46=E2=80=AFAM Bjoern A. Zeeb <bzeeb-lists@lists.zabbadoz.ne= t> wrote:
Hi,

this is a Samsung SSD 970 EVO Plus 1TB nvme and gpart and newfs
were already slow (it took like two hours for newfs).

Here's another example now:

# /usr/bin/time mkdir foo
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01.82 real=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A00.00 user=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00.00 sys

How does one debug this?

=
What filesystem? Sounds like UFS but just making su= re. .

So what's the = link speed and number of lanes?=C2=A0 If it's bad i might reseat (thoug= h that might not help) that looks good...

=
Though I'd bet money that this is an interrupt issue.= I'd do a vmstat. -i to watch how quickly they accumulate...

How old is the drive? Fresh instal= l? Do other drives have this same issue in the same slot? Dies this drive h= ave issues in other maxhines or slots?
=

Oh, and what's its temper= ature? Any message in dmesg?

Warner


Warner

--
Bjoern A. Zeeb=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0r15:7

--000000000000cb56210612104827--