From owner-freebsd-hackers@freebsd.org Fri Jul 19 10:55:48 2019 Return-Path: Delivered-To: freebsd-hackers@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 3A705BED94 for ; Fri, 19 Jul 2019 10:55:48 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id F3FFA8FD79 for ; Fri, 19 Jul 2019 10:55:47 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id F159FBED93; Fri, 19 Jul 2019 10:55:47 +0000 (UTC) Delivered-To: hackers@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 EFE9DBED92 for ; Fri, 19 Jul 2019 10:55:47 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) 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 070CA8FD78; Fri, 19 Jul 2019 10:55:46 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: by mail-ed1-x542.google.com with SMTP id d4so34127118edr.13; Fri, 19 Jul 2019 03:55:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+v/q/Kq9kVlLANsq4HNTgwMx99dRc0kPeTP6hxdzkwI=; b=UG93SWJjSEU2kj18MHsqOUH+MnFmE21IaXKAic1NvzTV1QTBOsGVDCIW5jPBfXRCa8 sWoJrpttFWrmZTawLHDhYHk2NjlCSj0Ek7mfIEs9D0uh8xCt7CYXdZMSAKDC+hZjzB2m A0qDko609fxxeE08yYbqmNCUfJhHIvtJlEEL3ZHYi7/eijpMNcCF2f4Mw4UnGbWKRi+9 njQrtToEmD+BjUjbrazkpvFQyUvvt82nzNSaEC2aAfF0Rt1droyPDoQGuGzDMDd1h1Hw H6L1eEUyRh27Hw12LJaf3CqKXsU1SuexIwSZmNiFtuuWzmAvafr90V6+JpTNR7PZS6Cs ltBw== 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:mime-version:content-transfer-encoding; bh=+v/q/Kq9kVlLANsq4HNTgwMx99dRc0kPeTP6hxdzkwI=; b=bMK4BWEPLwIFVjnhFHL5/PqVuoVDthwCy2YmisogVFm5ou0IHurgYMHTjkhof5A4lV pi3vH37UFL5GyYHcbVmTsrdISx+usMrexk1sGqcqPuSlcbLU7NgaTkeNt7Dd/f/CV8ju AtgAW6fbGSwLSIcBsVkGlIojx1lr/Ay56nqdSrD4+5ox3RJjeQDy8diZDRnBgrmok4/G 6T/fRlltiJZT4f9Sf5FXss1o7ZufVaJWWMcSosH+NXidQroqdo2Zw/W+RKExwkJiYsDv avauWzWO1lRtWnaJBgeeaiYElUKoSTFLoJiB+1LseK2qEXhxzJHLs2d6mul38CSCHpZW N/nw== X-Gm-Message-State: APjAAAXmLrVP/TYBr/MdfxwfYd0P2ZWijFI/CwkhN/9mHISqxdxBEhvG S0rpynhRTcB4TLDvlHRQIGuPGSLB X-Google-Smtp-Source: APXvYqxdknOZziW3/PQaFRek2y6BlSWce2mzqoIW93agbvDzbcLALnr+4bZcaeKCN8XDVUpRMDavfg== X-Received: by 2002:a17:906:4d88:: with SMTP id s8mr39121509eju.225.1563533745844; Fri, 19 Jul 2019 03:55:45 -0700 (PDT) Received: from localhost ([213.149.55.147]) by smtp.gmail.com with ESMTPSA id c49sm8815960eda.74.2019.07.19.03.55.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Jul 2019 03:55:45 -0700 (PDT) Date: Fri, 19 Jul 2019 12:54:55 +0200 From: Domagoj =?UTF-8?Q?Smol=C4=8Di=C4=87?= To: Ravi Pokala Cc: larry.maloney@hackerdojo.com, hackers@freebsd.org Subject: Re: For a first time completed S.M.A.R.T captive test Message-ID: <20190719125455.0000473d@gmail.com> In-Reply-To: <481465DB-D5EE-4019-A2DB-DBA4D46FE312@freebsd.org> References: <481465DB-D5EE-4019-A2DB-DBA4D46FE312@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 070CA8FD78 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=UG93SWJj; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rank1seeker@gmail.com designates 2a00:1450:4864:20::542 as permitted sender) smtp.mailfrom=rank1seeker@gmail.com X-Spamd-Result: default: False [-5.09 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.96)[-0.962,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-1.12)[ip: (-0.17), ipnet: 2a00:1450::/32(-2.92), asn: 15169(-2.43), country: US(-0.05)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2.4.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jul 2019 10:55:48 -0000 On Wed, 17 Jul 2019 19:37:25 -0700 Ravi Pokala wrote: > Hi Domagoj >=20 > The "captive" test is blocking -- meaning the drive won't indicate > command completion for multiple hours in the case of modern large > HDDs -- so the FreeBSD driver will almost certainly timeout before > completion. That in turn will trigger recovery mechanisms, which will > include a soft-reset, which is where the "Interrupted (host reset)" > comes from. >=20 > You almost always want to do the "off-line" test; that tells the > drive firmware to start the test and run it in the background. It > will indicate command completion in a second or two, but the test > will still take the same amount of time. But in the case of the > "off-line" test, the drive is responsive to the host even while the > test runs. When the drive receives a command from the host, it will > pause the test, service the host request, and then resume the test. Thanks. I knew that part. It was a captive test that was a riddle. > I work at a storage company, I've been running ATA self-test for 15+ > years, and I've never understood why the "captive" test even exists. > *Maybe* there were dedicated drive test systems that had huge > timeouts, back in the PATA days? Or even horrible DOS stuff that > didn't even have a timeout, and just waited for the interrupt > forever? I can understand devs of smartmontools, like, if code for captive test already exists, why to remove it? But then again, it just sends a test request to drive's firmware, so ... Why are all corporations, which manufacture storage devices, still write drive's firmware with captive test ability? > In any case, I would simply not bother with the "captive" test modes. Now that all is clear and I succeeded in completing a captive test, purely out of curiosity, I won't bother anymore. =20 > -Ravi (rpokala@) Domagoj Smol=C4=8Di=C4=87