From nobody Sun Feb 6 18:18:01 2022 X-Original-To: freebsd-current@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 4A6FD19B505C for ; Sun, 6 Feb 2022 18:18:05 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (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 4JsHZM3ZYCz3py7 for ; Sun, 6 Feb 2022 18:18:03 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from [192.168.1.14] (c-98-249-71-218.hsd1.nm.comcast.net [98.249.71.218]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id 6F7EE1AF4F8; Sun, 6 Feb 2022 18:18:02 +0000 (UTC) Message-ID: Date: Sun, 6 Feb 2022 11:18:01 -0700 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: USB Disk Stalls on -current Content-Language: en-US To: Mehmet Erol Sanliturk Cc: freebsd-current References: <7e8459e4-d708-7750-402c-cda2adf6199f@freebsd.org> From: Sean Bruno In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4JsHZM3ZYCz3py7 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=softfail (mx1.freebsd.org: 199.102.79.106 is neither permitted nor denied by domain of sbruno@freebsd.org) smtp.mailfrom=sbruno@freebsd.org X-Spamd-Result: default: False [-1.20 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[sbruno]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[freebsd.org]; R_SPF_SOFTFAIL(0.00)[~all]; NEURAL_SPAM_MEDIUM(0.90)[0.902]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-0.998]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-current]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:36236, ipnet:199.102.76.0/22, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[98.249.71.218:received] X-ThisMailContainsUnwantedMimeParts: N On 2/6/22 10:52, Mehmet Erol Sanliturk wrote: > > > On Sun, Feb 6, 2022 at 8:15 PM Sean Bruno > wrote: > > I'm doing something "gross" with ZFS & Plex on a little Intel NUC > that I > have here at the house to provide me with a nice little NAS at home. > I'm using 2x USB2 external disks as the mirror. > > I noted that the two USB2 disks I'm using in a mirror seem to "stall" > from time to time and its not clear to me why. > > I'd like to poke further into the USB system but I'm not sure where I > should start to see if there is something amiss with the hardware (e.g. > the disks suck) or if FreeBSD is losing track of something during I/O > leading to a stall/timeout. > > I'm not seeing data loss or anything, I just note from time to time > during large file transfers that the clanking/grinding sound of the > spinning rust on my desk completely stops, the encoding of the video > files stops (so its waiting for a read to complete) and its gets much > quieter in my office.  :-) > > sean > > > > I encountered such a case in Fedora Linux with an external 2.0 USB disk . > When the external disk was connected to a 1.? USB port , the loading of > operating system > was terrifically slow or sometimes some parts normal . > > You may check your USB ports versions to ensure that they are conforming > to each other . > Board USB port may be 2.0 , but connected chassis USB port may be 1.? > like in my chassis . > When USB external disk is connected to the chassis  USB 2.0 port , > everything has become normal . > > > Mehmet Erol Sanliturk > > > I see them all up as 480mbps / USB 2.0 if usbconfig and the driver attach is anything to go by. Disk read/write perf when running seems to approach 40MB/s, so I think its running pretty close to the correct speed. ... ugen0.7: at usbus0 umass1 on uhub0 umass1: on usbus0 da0 at umass-sim1 bus 1 scbus4 target 0 lun 0 da0: Fixed Direct Access SCSI device da0: 40.000MB/s transfers da0: 1907729MB (3907029168 512 byte sectors) da0: quirks=0x2 Root mount waiting for: usbus0 .... ugen0.8: at usbus0 umass2 on uhub0 umass2: on usbus0 da1 at umass-sim2 bus 2 scbus5 target 0 lun 0 da1: Fixed Direct Access SPC-2 SCSI device da1: Serial Number ABCDEF0123456847 da1: 40.000MB/s transfers da1: 1907729MB (3907029168 512 byte sectors) da1: quirks=0x2 ... ugen0.7: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA) ugen0.8: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) ... sean