Re: Weak disk I/O performance on daX compared to adaX, was: Re: dd performance [was Re: Call for Foundation-supported Project Ideas]

From: Bertrand Petit <freebsd-hackers_at_phoe.frmug.org>
Date: Tue, 14 Dec 2021 05:57:12 UTC
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