From owner-freebsd-hackers@freebsd.org Mon Feb 20 20:17:23 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F375ACE6577 for ; Mon, 20 Feb 2017 20:17:23 +0000 (UTC) (envelope-from dirkx@webweaving.org) Received: from weser.webweaving.org (weser.webweaving.org [148.251.234.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.webweaving.org", Issuer "RapidSSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A367414E2 for ; Mon, 20 Feb 2017 20:17:22 +0000 (UTC) (envelope-from dirkx@webweaving.org) Received: from [10.11.0.204] (5ED06D14.cm-7-1b.dynamic.ziggo.nl [94.208.109.20]) (authenticated bits=0) by weser.webweaving.org (8.15.2/8.15.2) with ESMTPSA id v1KK3txp074097 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 20 Feb 2017 21:03:56 +0100 (CET) (envelope-from dirkx@webweaving.org) X-Authentication-Warning: weser.webweaving.org: Host 5ED06D14.cm-7-1b.dynamic.ziggo.nl [94.208.109.20] claimed to be [10.11.0.204] From: Dirk-Willem van Gulik Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: sa and mpt in FreeBSD 11.0-RELEASE-p2 Message-Id: Date: Mon, 20 Feb 2017 21:04:11 +0100 To: freebsd-hackers@freebsd.org X-Mailer: Apple Mail (2.3259) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (weser.webweaving.org [148.251.234.232]); Mon, 20 Feb 2017 21:03:56 +0100 (CET) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Feb 2017 20:17:24 -0000 A machine, recently upgraded from 8.4 to FreeBSD 11.0-RELEASE-p2 seems = to have lost pretty much any and all performance on mpt(4) with its = attached tape drives Read performance is around 50Mbyte/second - and write a paltry = 100-200kbyte/second (and occasionally hitting 800kbyte/second) (from/to = memory disk&/dev/null; no risk of shoe shining, compression off). SCSI bus looks happy; with no kernel messages. Output of the DLT script = below. Normal LTO drives in a tape robot, G9 server; pretty much all SAS = *except* for a U320 to tape drive with the performance issue. Active = terminator. Does this ring a bell with anyone? Was anything changed in either the sa = or mpt driver since 8.x ?=20 One odd thing is that a 'dd(1)' -without- a block size (compression is = off, data is a prepared urandom file on md disk) writes much faster -- = while on 8.x one -had- to use a sane blockwise to get the 'normal' speed = of around 120Mbyte/second. Could it be that one needs to fiddle with = MAXPHYS (which AFAIK is a readonly sysctl). Dw. DLT / http://www.freebsddiary.org/tape-testing.php READING Corrected errors with substantial delay: 0 Corrected errors with possible delay : 0 Total errors : 0 Total errors corrected : 0 Total times correction algorithm used : 0 Total bytes processed : 8590352388 Total corrected errors / GB : 0 Total uncorrected errors : 0 Read compression ratio : 101% On tape Mbytes read : 2 On tape kbytes read residual : 329320 WRITING Corrected errors with substantial delay: 154 Corrected errors with possible delay : 0 Total errors : 0 Total errors corrected : 0 Total times correction algorithm used : 168 Total bytes processed : 4909148037124 Total corrected errors / GB : 0 Total uncorrected errors : 0 Write compression ratio : 99% Host requested Mbytes written : 1442 Host requested kbytes written residual : 115996 On tape Mbytes written : 1443 On tape kbytes written residual : 0 camcontrol devlist at scbus3 target 5 lun 0 (sa0,pass0) at scbus3 target 5 lun 1 (ch0,pass1) at scbus4 target 0 lun 0 (pass2,da0) at scbus6 target 0 lun 0 (pass3,da1) at scbus6 target 1 lun 0 (pass4,da2) at scbus7 target 5 lun 0 (sa1,pass5) at scbus7 target 5 lun 1 (ch1,pass6) mt rblim /dev/nsa0: min blocksize 1 byte max blocksize 16777215 bytes granularity 1 byte mt status, ostatus and errstatus Mode Density Blocksize bpi Compression Current: 0x46:LTO-4 variable 323215 disabled ---------available modes--------- 0: 0x46:LTO-4 variable 323215 0x1 1: 0x46:LTO-4 variable 323215 0x1 2: 0x46:LTO-4 variable 323215 0x1 3: 0x46:LTO-4 variable 323215 0x1 --------------------------------- Current Driver State: at rest. --------------------------------- File Number: 0 Record Number: 0 Residual Count 0 Drive: sa0: Serial Number: HU1027B53Y --------------------------------- Mode Density Blocksize bpi Compression Current: 0x46:LTO-4 variable 323215 disabled --------------------------------- Current Driver State: at rest. --------------------------------- Partition: 0 Calc File Number: 0 Calc Record Number: 0 Residual: 0 Reported File Number: 0 Reported Record Number: 0 Flags: BOP Last I/O Residual: 0 Last I/O Command: 0A 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 Last I/O Sense: 70 00 0B 00 00 00 00 10 00 00 00 00 47 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Last Control Residual: 0 Last Control Command: 34 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Last Control Sense: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00