From owner-freebsd-current@freebsd.org Fri Nov 27 06:09:31 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A3A9F47E511 for ; Fri, 27 Nov 2020 06:09:31 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) (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 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Cj42z40J7z4dN8; Fri, 27 Nov 2020 06:09:31 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm1-x331.google.com with SMTP id d3so1027363wmb.4; Thu, 26 Nov 2020 22:09:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=jlt45sx1D0+H323/Ma3CbsmEALmH8VFfuMglRl5QhiI=; b=a5j4spxuNunWZZyMsipxI9FhTfy/4d5sXkI02+IppM3LuzYXU1YJCbSwb/13nUu+O8 kYoSzrHr0i9rNcEs70irypt008KMC8fjdlWtcuxsbzAHphRTS4GY7znxzjsJanzi1Uf1 Bwa8tfjEZE0wJeF6GdaeuSNGIFTQzAaSMN7XnP6tFQeXj+WVu7kuhaYtEY+ntOVuMH5G fG8QVGEZcq96Up5TQsTWv4Ie2dwYls8uKzpNoHkrKNhem2/kXeDhIBbHEflWcufTHE2l dqasW9Ey4a1P+SB+r9oR+r8QKPXw+plBqwHIhLdyO50/euJ2CIA+PRBZuH/bWKPHviLb CRLQ== X-Gm-Message-State: AOAM533nyb0eqBmF/GRfKMoWSksuxguYj+l37o5kdBsOjeQtg6eK5x0L NQLE47EmukiJ6GgGrGpK8gcGpEkPno0= X-Google-Smtp-Source: ABdhPJytHh8XytjdT9t34psuaQ64ZE0Ce0UgcID21ObIEAUzET/S54ZD0Qc7gQxB8K2mR6CrtmEFNw== X-Received: by 2002:a7b:c101:: with SMTP id w1mr7120237wmi.170.1606457368534; Thu, 26 Nov 2020 22:09:28 -0800 (PST) Received: from ernst.home (p5b02350e.dip0.t-ipconnect.de. [91.2.53.14]) by smtp.gmail.com with ESMTPSA id j13sm5880328wrp.70.2020.11.26.22.09.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 22:09:27 -0800 (PST) Date: Fri, 27 Nov 2020 07:09:25 +0100 From: Gary Jennejohn To: Dimitry Andric Cc: FreeBSD Current Subject: Re: possible usb3-connected hard drive spin down causing lag Message-ID: <20201127060925.402ab542@ernst.home> In-Reply-To: References: <20201126080724.1cb3a8af@ernst.home> <20201126091206.0dcd5b33@ernst.home> <20201126121623.31ea2cd3@bsd64.grem.de> <20201126182108.4314a0aa@ernst.home> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Cj42z40J7z4dN8 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Nov 2020 06:09:31 -0000 On Thu, 26 Nov 2020 19:37:47 +0100 Dimitry Andric wrote: > On 26 Nov 2020, at 19:21, Gary Jennejohn wrote: > > > > On Thu, 26 Nov 2020 10:44:19 -0700 > > Warner Losh wrote: > ... > >>> Example: > >>> > >>> /sbin/camcontrol standby /dev/da2 -v -t 1800 > >> > >> > >> Perfect! I've not had to deal with sata disks that did this since the > >> ataidle days. I looked in camcontrol before suggesting it, but somehow > >> missed this... Glad I posted a bogus answer (sorry about that), since I > >> learned something new. > >> > > > > camcontrol unfortuantely doesn't work with my USB3 enclosures. I > > suspect that the USB3-to-SATA bridge controller is doing its own thing > > and camcontrol has no effect on its behavior. Not tragic for me since > > I use these disks primarily for backups. But for someone using a USB > > attached disk as a primary file system this behavior will definitely be > > a PITA. > > In this case it's about ATA commands being passed though the USB bridge. > Does "camcontrol identify daX" fail in your case too? > > I have used quite a bunch of different USB disks, mostly from WD or > Seagate, and these come with varying qualities of USB-SATA bridges in > them. But all of them work with "camcontrol identify". > camcontrol identify does work. The enclosure I tested has an ASMedia asm1153e bridge in it. This one idles the disk after a few minutes. -- Gary Jennejohn