This is a brand-new computer, so I don't know if this is an issue with this controller or some other kind of interaction within the system. Suggestions for troubleshooting are welcome.
On a fresh install of FreeBSD 14.0-RELEASE, I'm only getting about 70MB/s while doing a
I don't know if it's related, but mprutil keeps causing this line to show up in syslog:
On a fresh install of FreeBSD 14.0-RELEASE, I'm only getting about 70MB/s while doing a
dd if=/dev/zero of=/dev/dax bs=8M
to drives connected to this controller. When the same disks are attached to a normal SATA controller, they'll do about 200MB/s. It's not a total bandwidth limitation, because if I run multiple instances of dd(1) against multiple drives, each will do 70-80MB/s. gstat -p
shows 100% busy during these tests.I don't know if it's related, but mprutil keeps causing this line to show up in syslog:
Code:
Dec 28 01:01:00 marathon kernel: mpr0: mpr_user_pass_thru: user reply buffer (64) smaller than returned buffer (68)
Code:
Dec 28 00:52:11 marathon kernel: mpr0: <Avago Technologies (LSI) SAS3008> port 0xf000-0xf0ff mem 0xfcc40000-0xfcc4ffff,0
xfcc00000-0xfcc3ffff at device 0.0 on pci1
Dec 28 00:52:11 marathon kernel: mpr0: Firmware: 16.00.12.00, Driver: 23.00.00.00-fbsd
Dec 28 00:52:11 marathon kernel: mpr0: IOCCapabilities: 7a85c<ScsiTaskFull,DiagTrace,SnapBuf,EEDP,TransRetry,EventReplay
,MSIXIndex,HostDisc,FastPath,RDPQArray>
Dec 28 00:52:11 marathon kernel: mpr0: Found device <881<SataDev,Direct>,End Device> <6.0Gbps> handle<0x0009> enclosureHandle<0x0001> slot 3
Dec 28 00:52:11 marathon kernel: mpr0: At enclosure level 0 and connector name ( )
Dec 28 00:52:11 marathon kernel: mpr0: Found device <881<SataDev,Direct>,End Device> <6.0Gbps> handle<0x000a> enclosureHandle<0x0001> slot 2
Dec 28 00:52:11 marathon kernel: mpr0: At enclosure level 0 and connector name ( )
Dec 28 00:52:11 marathon kernel: mpr0: Found device <881<SataDev,Direct>,End Device> <6.0Gbps> handle<0x000b> enclosureHandle<0x0001> slot 0
Dec 28 00:52:11 marathon kernel: mpr0: At enclosure level 0 and connector name ( )
Dec 28 00:52:11 marathon kernel: mpr0: Found device <881<SataDev,Direct>,End Device> <6.0Gbps> handle<0x000c> enclosureHandle<0x0001> slot 1
.... etc
Dec 28 00:52:11 marathon kernel: da0: <ATA WDC WD80EZAZ-11T 0A83> Fixed Direct Access SPC-4 SCSI device
Dec 28 00:52:11 marathon kernel: da0: Serial Number JEKUR9VZ
Dec 28 00:52:11 marathon kernel: da0: 600.000MB/s transfers
Dec 28 00:52:11 marathon kernel: da0: Command Queueing enabled
Dec 28 00:52:11 marathon kernel: da0: 7630885MB (15628053168 512 byte sectors)
Dec 28 00:52:11 marathon kernel: da1 at mpr0 bus 0 scbus0 target 1 lun 0
Dec 28 00:52:11 marathon kernel: da1: <ATA WDC WD80EZAZ-11T 0A83> Fixed Direct Access SPC-4 SCSI device
Dec 28 00:52:11 marathon kernel: da1: Serial Number 2SG0JGSF
Dec 28 00:52:11 marathon kernel: da1: 600.000MB/s transfers
Dec 28 00:52:11 marathon kernel: da1: Command Queueing enabled
Dec 28 00:52:11 marathon kernel: da1: 7630885MB (15628053168 512 byte sectors)
Dec 28 00:52:11 marathon kernel: da3 at mpr0 bus 0 scbus0 target 3 lun 0
Dec 28 00:52:11 marathon kernel: da3: <ATA WDC WD80EDAZ-11T 0A81> Fixed Direct Access SPC-4 SCSI device
Dec 28 00:52:11 marathon kernel: da3: Serial Number VGH4P1JG
..... etc
Code:
# sysctl dev.mpr.0 | less
dev.mpr.0.prp_page_alloc_fail: 0
dev.mpr.0.prp_pages_free_lowwater: 0
dev.mpr.0.prp_pages_free: 0
dev.mpr.0.use_phy_num: 1
dev.mpr.0.dump_reqs_alltypes: 0
dev.mpr.0.spinup_wait_time: 3
dev.mpr.0.chain_alloc_fail: 0
dev.mpr.0.enable_ssu: 1
dev.mpr.0.max_io_pages: -1
dev.mpr.0.max_chains: 16384
dev.mpr.0.chain_free_lowwater: 16384
dev.mpr.0.chain_free: 16384
dev.mpr.0.io_cmds_highwater: 8
dev.mpr.0.io_cmds_active: 1
dev.mpr.0.msg_version: 2.5
dev.mpr.0.driver_version: 23.00.00.00-fbsd
dev.mpr.0.firmware_version: 16.00.12.00
dev.mpr.0.max_evtframes: 32
dev.mpr.0.max_replyframes: 2048
dev.mpr.0.max_prireqframes: 128
dev.mpr.0.max_reqframes: 2048
dev.mpr.0.msix_msgs: 1
dev.mpr.0.max_msix: 96
dev.mpr.0.disable_msix: 0
dev.mpr.0.debug_level: 0x3,info,fault
dev.mpr.0.%parent: pci1
dev.mpr.0.%pnpinfo: vendor=0x1000 device=0x0097 subvendor=0x1014 subdevice=0x0457 class=0x010700
dev.mpr.0.%location: slot=0 function=0 dbsf=pci0:1:0:0
dev.mpr.0.%driver: mpr
dev.mpr.0.%desc: Avago Technologies (LSI) SAS3008
Code:
# mprutil show adapter
mpr0 Adapter:
Board Name: N2215
Board Assembly: H3-25480-04D
Chip Name: LSISAS3008
Chip Revision: ALL
BIOS Revision: 18.00.00.00
Firmware Revision: 16.00.12.00
Integrated RAID: no
SATA NCQ: ENABLED
PCIe Width/Speed: x8 (8.0 GB/sec)
IOC Speed: Full
Temperature: 71 C
PhyNum CtlrHandle DevHandle Disabled Speed Min Max Device
0 0001 0009 N 6.0 3.0 12 SAS Initiator
1 0002 000a N 6.0 3.0 12 SAS Initiator
2 0003 000b N 6.0 3.0 12 SAS Initiator
3 0004 000c N 6.0 3.0 12 SAS Initiator
4 0005 000d N 6.0 3.0 12 SAS Initiator
5 0006 000e N 6.0 3.0 12 SAS Initiator
6 0007 000f N 6.0 3.0 12 SAS Initiator
7 0008 0010 N 6.0 3.0 12 SAS Initiator
Code:
# mprutil show iocfacts
MsgVersion: 2.5
MsgLength: 17
Function: 0x3
HeaderVersion: 50,00
IOCNumber: 0
MsgFlags: 0x0
VP_ID: 0
VF_ID: 0
IOCExceptions: 0
IOCStatus: 0
IOCLogInfo: 0x0
MaxChainDepth: 128
WhoInit: 0x4
NumberOfPorts: 1
MaxMSIxVectors: 96
RequestCredit: 9856
ProductID: 0x2221
IOCCapabilities: 0x7a85c <ScsiTaskFull,DiagTrace,SnapBuf,EEDP,TransRetry,EventReplay,MSIXIndex,HostDisc,FastPath,RDPQArray>
FWVersion: 16.00.12.00
IOCRequestFrameSize: 32
MaxChainSegmentSize: 8
MaxInitiators: 32
MaxTargets: 1024
MaxSasExpanders: 42
MaxEnclosures: 43
ProtocolFlags: 0x3 <ScsiTarget,ScsiInitiator>
HighPriorityCredit: 104
MaxRepDescPostQDepth: 65504
ReplyFrameSize: 32
MaxVolumes: 0
MaxDevHandle: 1106
MaxPersistentEntries: 128
MinDevHandle: 9
CurrentHostPageSize: 0