From owner-freebsd-scsi@freebsd.org Wed Jul 29 02:33:08 2015 Return-Path: Delivered-To: freebsd-scsi@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 5C0BC9AD93B for ; Wed, 29 Jul 2015 02:33:08 +0000 (UTC) (envelope-from dan@langille.org) Received: from clavin1.langille.org (clavin.langille.org [162.208.116.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "clavin.langille.org", Issuer "StartCom Class 2 Primary Intermediate Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2B439BEA for ; Wed, 29 Jul 2015 02:33:07 +0000 (UTC) (envelope-from dan@langille.org) Received: from (clavin1.int.langille.org (clavin1.int.unixathome.org [10.4.7.7]) (Authenticated sender: hidden) with ESMTPSA id C25CF6660 ; Wed, 29 Jul 2015 02:33:06 +0000 (UTC) Subject: Re: dmesg output not as expected Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Content-Type: multipart/signed; boundary="Apple-Mail=_035793B9-0530-45D2-A2C1-7221D4D643CD"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5 From: Dan Langille In-Reply-To: Date: Tue, 28 Jul 2015 22:33:05 -0400 Cc: freebsd-scsi@freebsd.org Message-Id: References: <5A302DC6-C3EF-4DB1-8AD1-A0314C048A28@langille.org> To: David Gwynne X-Mailer: Apple Mail (2.2102) X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jul 2015 02:33:08 -0000 --Apple-Mail=_035793B9-0530-45D2-A2C1-7221D4D643CD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jul 28, 2015, at 10:30 PM, David Gwynne wrote: >=20 >=20 >> On 29 Jul 2015, at 12:18, Dan Langille wrote: >>=20 >>>=20 >>> On Jul 28, 2015, at 1:01 PM, Dan Langille wrote: >>>=20 >>> I wish to move a tape library from one system to another. Today I = moved the cable from one system to another and ran 'camcontrol rescan = all'. >>>=20 >>> For sa0, why do I see 80MB/s on the old system vs 40MB/s on the new = system? Is this card related? Slot related? >>>=20 >>> Similarly, ch0 goes from 20MB/s to 3.3MB/s.... >>>=20 >>> I was hoping for a speed boost. :) >>>=20 >>> Some of the camcontrol devlist output includes: >>>=20 >>> at scbus14 target 1 lun 0 = (pass11,sa0) >>> at scbus14 target 3 lun 0 = (pass12,ch0) >>>=20 >>> This is on the existing system: >>>=20 >>> I *think* this system holds a Symbios Ultra2 32-bit PCI SCSI Adapter = SYM8951U >>>=20 >>> Jul 23 13:24:19 knew kernel: sym0: <895> port 0xe000-0xe0ff mem = 0xfebeec00-0xfebeecff,0xfebef000-0xfebeffff irq 22 at device 2.0 on pci4 >>> Jul 23 13:24:19 knew kernel: sym0: No NVRAM, ID 7, Fast-40, LVD, = parity checking >>>=20 >>> Jul 23 13:24:19 knew kernel: sa0 at sym0 bus 0 scbus7 target 1 lun 0 >>> Jul 23 13:24:19 knew kernel: sa0: Removable = Sequential Access SCSI-2 device >>> Jul 23 13:24:19 knew kernel: sa0: Serial Number CXB46H0716 >>> Jul 23 13:24:19 knew kernel: sa0: 80.000MB/s transfers (40.000MHz, = offset 31, 16bit) >>>=20 >>> Jul 23 13:24:19 knew kernel: ch0 at sym0 bus 0 scbus7 target 3 lun 0 >>> Jul 23 13:24:19 knew kernel: ch0: = Removable Changer SCSI-2 device >>> Jul 23 13:24:19 knew kernel: ch0: Serial Number 3G22JJP38S46 >>> Jul 23 13:24:19 knew kernel: ch0: 20.000MB/s transfers (10.000MHz, = offset 15, 16bit) >>> Jul 23 13:24:19 knew kernel: ch0: 25 slots, 1 drive, 1 picker, 1 = portal >>> Jul 23 13:24:19 knew kernel: ch0: quirks=3D0x2 >>>=20 >>> This is the same tape drive on another system: >>>=20 >>> LSI Logic Ultra320 (LSI20320IE) SCSI PCI-E >>>=20 >>> mpt0: port 0x8000-0x80ff mem = 0xfb220000-0xfb23ffff,0xfb200000-0xfb21ffff irq 19 at device 8.0 on = pci15 >>> mpt0: MPI Version=3D1.2.14.0 >>>=20 >>> Jul 28 16:36:31 varm kernel: sa0 at mpt0 bus 0 scbus14 target 1 lun = 0 >>> Jul 28 16:36:31 varm kernel: sa0: Removable = Sequential Access SCSI-2 device >>> Jul 28 16:36:31 varm kernel: sa0: Serial Number CXB46H0716 >>> Jul 28 16:36:31 varm kernel: sa0: 40.000MB/s transfers (40.000MHz = DT, offset 6) >>>=20 >>> Jul 28 16:37:03 varm kernel: ch0 at mpt0 bus 0 scbus14 target 3 lun = 0 >>> Jul 28 16:37:03 varm kernel: ch0: = Removable Changer SCSI-2 device >>> Jul 28 16:37:03 varm kernel: ch0: Serial Number 3G22JJP38S46 >>> Jul 28 16:37:03 varm kernel: ch0: 3.300MB/s transfers >>> Jul 28 16:37:03 varm kernel: ch0: 25 slots, 1 drive, 1 picker, 1 = portal >>> Jul 28 16:37:03 varm kernel: ch0: quirks=3D0x2 >>=20 >> After rebooting this server, I see this in /var/run/dmesg. Why does = it change? >>=20 >> ch0 at mpt0 bus 0 scbus14 target 3 lun 0 >> ch0: Removable Changer SCSI-2 device >> ch0: Serial Number 3G22JJP38S46 >> ch0: 20.000MB/s transfers (10.000MHz DT, offset 15, 16bit) >> ch0: 25 slots, 1 drive, 1 picker, 1 portal >> ch0: quirks=3D0x2 >>=20 >> I was hoping to get more through put on this newer system with a = different card. =46rom what I see, my speed is only half of what it = was. >>=20 >> I'm using a PCI-E 3.0 X8 (in X16) slot. Have I missing something? >=20 > technically parallel scsi isn't a hot pluggable medium. rebooting = likely lets it settle and negotiate better. >=20 > you probably shouldnt care about the speed you talk to the changer at = btw. you're not sending data to the changer device, just commands to = move tapes around which are very low bandwidth. Noted. However, sa0 went from 80 to 40MB/s... > did your tape device negotiate faster after the reboot? I did not notice. I'll compare soon. =E2=80=94 Dan Langille http://langille.org/ --Apple-Mail=_035793B9-0530-45D2-A2C1-7221D4D643CD Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQJ8BAEBCgBmBQJVuDtiXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ1MTE2RjM0ODIzRDdERDM4OTY0OUJBNzdF QjIxNTlERUU5NzI3MzlGAAoJEOshWd7pcnOfW/IP/jBHrtKM2A8kNonrlC7Ktdv8 l6YGmFoOgf8i6J+/d0qpW6TlBWK0fS210q/djb+THKSQ8C354/oWajKaXyUukbx+ 1ISl+H+zRcQH1H0yV7phI/a5p4wJxxAmscFxnfjhJHgxQBmEkWRhhKM+mOcTXukS TAqeCG01k3Vjmlj/bo5aQia4hmr6qnXwfeIwoij986M6fGmoOt/zRrQ0UzbtxLT7 riBocKEso3pOcsHSSi/IQg9W5gcXsbX8Fp9a/CiNqk9rmrmHG0UeRg8KYjaCv9MY pNOLoL5OUWhxkvgdpcyt64bsgCs5k1B5O5oDomCE9lZ/T8tm99JL9pZ3Cq3Aotw2 nE0MS+zTuUcVkyOrM7a4ZtRthGL2ag9tjj9/XxkOst6VMxzinLWiMx5cI0juhaKK JKNxA21zL81I8PKRfw3DIHq5B+vdm4Gt4ZFd8rrFO7HibuGXYg18coRnPzAlPeqE /2j7qVJFVr2YO5ogrOObkLa8EyGjCYTJrJGPR7wDynWaVMDsEne9Y0E5gnAHhJv/ vNUTxkBXx3QU2HA/J5m2w2nVsBK4jZjQXl6ty2NcbohKQUb9M0OCftDac/n0nGtR yylJ3iOI5RIsri7Dfl0C2w9JdbRz1cvGxUZ9BUXEQh8f4MGn3eLRGiT65HzR153B 6SvCTbgYoCvfDw1k6KCL =C7VJ -----END PGP SIGNATURE----- --Apple-Mail=_035793B9-0530-45D2-A2C1-7221D4D643CD--