From owner-freebsd-stable@freebsd.org Thu Apr 4 08:38:07 2019 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 326591568EAA for ; Thu, 4 Apr 2019 08:38:07 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from kagate.punkt.de (kagate.punkt.de [217.29.33.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 053878CCB4 for ; Thu, 4 Apr 2019 08:37:59 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from hugo10.ka.punkt.de (hugo10.ka.punkt.de [217.29.44.10]) by gate2.intern.punkt.de with ESMTP id x348bwee010124 for ; Thu, 4 Apr 2019 10:37:58 +0200 (CEST) Received: from [217.29.44.151] ([217.29.44.151]) by hugo10.ka.punkt.de (8.14.2/8.14.2) with ESMTP id x348bw9r096634 for ; Thu, 4 Apr 2019 10:37:58 +0200 (CEST) (envelope-from hausen@punkt.de) From: "Patrick M. Hausen" Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: NVME aborting outstanding i/o Message-Id: References: <818CF16A-D71C-47C0-8A1B-35C9D8F68F4E@punkt.de> To: freebsd-stable@freebsd.org Date: Thu, 4 Apr 2019 10:37:58 +0200 X-Mailer: Apple Mail (2.3445.104.8) X-Rspamd-Queue-Id: 053878CCB4 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of hausen@punkt.de designates 217.29.33.131 as permitted sender) smtp.mailfrom=hausen@punkt.de X-Spamd-Result: default: False [-2.70 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:217.29.32.0/20]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MX_GOOD(-0.01)[mailin.pluspunkthosting.de,mailin.pluspunkthosting.de]; NEURAL_HAM_SHORT(-0.53)[-0.532,0]; RCVD_IN_DNSWL_NONE(0.00)[131.33.29.217.list.dnswl.org : 127.0.10.0]; IP_SCORE(-0.36)[ipnet: 217.29.32.0/20(-0.99), asn: 16188(-0.79), country: DE(-0.01)]; DMARC_NA(0.00)[punkt.de]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16188, ipnet:217.29.32.0/20, country:DE]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Apr 2019 08:38:07 -0000 Hi all, I=E2=80=99m currently doing some load tests/burn in for two new servers. These feature all NVME SSDs and run FreeNAS, i.e. FreeBSD 11.2-STABLE. pcib17: at device 3.2 numa-domain 1 on = pci15 pcib17: [GIANT-LOCKED] pci17: numa-domain 1 on pcib17 nvme7: mem 0xeca10000-0xeca13fff at device = 0.0 numa-domain 1 on pci17 When putting some moderate i/o load on the system, the log fills with = these messages: nvme7: aborting outstanding i/o nvme7: DATASET MANAGEMENT sqid:41 cid:91 nsid:1 nvme7: ABORTED - BY REQUEST (00/07) sqid:41 cid:91 cdw0:0 There has been some discussion of this on on the iX Systems forum as = well as various FreeBSD media and one person suggested setting: hw.nvme.per_cpu_io_queues=3D0 This is where I need some help now. This is from the manpage for = nvme(4): ---------- To force a single I/O queue pair shared by all CPUs, set the = following tunable value in loader.conf(5): hw.nvme.per_cpu_io_queues=3D0 To assign more than one CPU per I/O queue pair, thereby reducing the number of MSI-X vectors consumed by the device, set the following = tunable value in loader.conf(5): hw.nvme.min_cpus_per_ioq=3DX To force legacy interrupts for all nvme driver instances, set the following tunable value in loader.conf(5): hw.nvme.force_intx=3D1 Note that use of INTx implies disabling of per-CPU I/O queue pairs. ---------- But: root@freenas01[~]# sysctl hw.nvme.per_cpu_io_queues sysctl: unknown oid 'hw.nvme.per_cpu_io_queues' root@freenas01[~]# sysctl hw.nvme.min_cpus_per_ioq sysctl: unknown oid 'hw.nvme.min_cpus_per_ioq' root@freenas01[~]# sysctl hw.nvme.force_intx sysctl: unknown oid 'hw.nvme.force_intx' Where do I go from here? Thanks! Patrick --=20 punkt.de GmbH Internet - Dienstleistungen - Beratung Kaiserallee 13a Tel.: 0721 9109-0 Fax: -100 76133 Karlsruhe info@punkt.de http://punkt.de AG Mannheim 108285 Gf: Juergen Egeling