From nobody Tue Dec 14 05:57:12 2021 X-Original-To: freebsd-hackers@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 B395718E833A for ; Tue, 14 Dec 2021 06:09:07 +0000 (UTC) (envelope-from elrond@phoe.frmug.org) Received: from frmug.org (enterprise.frmug.org [IPv6:2a01:e0d:1:3:58bf:fa61:0:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4JCnyC49SJz4Zl3 for ; Tue, 14 Dec 2021 06:09:07 +0000 (UTC) (envelope-from elrond@phoe.frmug.org) Received: by frmug.org (Postfix, from userid 66) id 705CE12B641; Tue, 14 Dec 2021 07:09:06 +0100 (CET) Received: by memo2.memo.frmug.org (Postfix, from userid 1001) id 1F48517A7C; Tue, 14 Dec 2021 07:05:46 +0100 (CET) Resent-From: Bertrand Petit Resent-Date: Tue, 14 Dec 2021 07:05:45 +0100 Resent-Message-ID: <20211214060545.GA30665@memo2.memo.frmug.org> Resent-To: freebsd-hackers@freebsd.org Date: Tue, 14 Dec 2021 06:57:12 +0100 From: Bertrand Petit To: Stefan Blachmann Cc: Alan Somers , Johannes Totz , FreeBSD Hackers Subject: Re: Weak disk I/O performance on daX compared to adaX, was: Re: dd performance [was Re: Call for Foundation-supported Project Ideas] Message-ID: <20211214055711.GT33211@memo2.memo.frmug.org> References: List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) X-Rspamd-Queue-Id: 4JCnyC49SJz4Zl3 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Tue, Dec 14, 2021 at 04:06:50AM +0100, Stefan Blachmann wrote: > > So my questions: > - Why does FreeBSD use the da driver instead of the ada driver for > drives on SATA ports 1-4? A look at the Z240 block diagram in the maintenance and service guide (document number 669531-005) reveals the presence of two different HBAs. First there is one raid controller (Intel or LSI depending on the bought options) and, secondly, a plain AHCI adapter. One can only boot from the first controller. It is usual for HP/HPe machines to provide a firmware setting permitting the disablement of the raid controller. When used, this setting morphs the controller to a plain AHCI HBA. Doing this on my Proliants did improve I/O performances up to the satisfying point of the disks themselves becoming the bottleneck. I recommend using the AHCI mode, especially if you are storing zpools. You should also be aware that not all SATA ports are made equal on this motherboard. In the manual some are marked as 6 Gb/s while other are 3 Gb/s. (SATA 3 vs. SATA 2?) Some ports can also be configured for eSATA operation, this should be checked. -- %!PS -- Bertrand Petit /D{def}def/E{exch}D/G{get}D/I{2 div}D/U{dup}D/L{roll}D/Y{setgray}D/N{newpath}D /O{N 0 0 moveto}D/P{pop}D/T{translate}D currentpagedevice/PageSize G U 0 G/w E D 1 G /h E D w I h I T 0 Y 1 setlinewidth 0 1 2 { P 120 rotate 2 4 w U mul h U mul add sqrt I 50 add {N 50 0 3 2 L 0 360 arc stroke}for}for/s{O true charpath pathbbox exch 4 -1 L E sub I 3 1 L sub I} D /l(bp)D 0.94 Y /Helvetica findfont 22 scalefont setfont l s P(x)s exch P T O l show showpage