From owner-freebsd-fs@freebsd.org Thu Jun 8 23:08:54 2017 Return-Path: Delivered-To: freebsd-fs@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 37E4DD86152 for ; Thu, 8 Jun 2017 23:08:54 +0000 (UTC) (envelope-from tjg@ucsc.edu) Received: from mail-lf0-x22f.google.com (mail-lf0-x22f.google.com [IPv6:2a00:1450:4010:c07::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B5E9F757D7 for ; Thu, 8 Jun 2017 23:08:53 +0000 (UTC) (envelope-from tjg@ucsc.edu) Received: by mail-lf0-x22f.google.com with SMTP id a136so23584619lfa.0 for ; Thu, 08 Jun 2017 16:08:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsc.edu; s=ucsc-google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=m5pjVfB1NuYNiHCRihGKdckjQxDL5FF1NgLSmJHunCQ=; b=VbglMniraAzcw1wrNo6XO+/3f3IziuOu6wmn7m7Z78p2xt70f/glWR8Y236iYvCwSU 3jicMYclfvfFA85qSoxmo61lcTX3T66+cl5zHlUVaXIO1f1GgeEsnGmcszMQ44Qm2OlU lyTzkqCu4O9Bmpbi0WlJs96Q1qfmWkYV8dIFM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=m5pjVfB1NuYNiHCRihGKdckjQxDL5FF1NgLSmJHunCQ=; b=brpxbwb6+7XoJJ/vOSplYZycDauC0fTU9l4BlpSWXck08vhA36V+tFfcTAJYRH/aOC 1pAVU4XzoIwqNVvBEai1Il8kd2L++6HH8rSQKmq/XkDkDpSiKBQhq66veGHoIIAeg2ex m0Y7dgQi4yqqwoZofDXxR8UjtJ6UGYTFsj6/h7DhqvLunQF5HkdmuNzUf4qR4lXDCbUU yPDBYDmCTV6wQZROwtOb5u4/GHhZeEGTh3LsMeIJKjPsN25imYIquUKPB2koMHkqB6ih rhDZ6czFNrR4PuWQ/iqEWP+8vh8d1xJG/R7rZA+YfqaowAzQCTX2PsYLxzxA5M4DKehm rcOw== X-Gm-Message-State: AODbwcDHVLoHj85ntV2/LQ4bvBJD7AZPGMHP/lnoD3MHAQC1SVgmZVtj /nKp1PP0wpMRidZa5MbdRVas92Ctb6E8 X-Received: by 10.25.145.88 with SMTP id y24mr413326lfj.2.1496963331741; Thu, 08 Jun 2017 16:08:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.67.4 with HTTP; Thu, 8 Jun 2017 16:08:51 -0700 (PDT) In-Reply-To: References: From: Tim Gustafson Date: Thu, 8 Jun 2017 16:08:51 -0700 Message-ID: Subject: Re: ZFS Commands In "D" State To: Xin LI Cc: freebsd-fs Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2017 23:08:54 -0000 > procstat -kk 1425 ? (or whatever PID's that is stuck in "D" state) I went over to my terminal to get that information for you, and found that the "zpool scrub" command I had started when I first posted this question had *finally* completed, and the scrub is now running, but not making much progress: scan: scrub in progress since Thu Jun 8 15:15:59 2017 1 scanned out of 103T at 1/s, (scan is slow, no estimated time) 0 repaired, 0.00% done So, in 50 minutes it's scanned 1 byte out of 103T. Since the scrub command completed, I decided to try another ZFS send. That did enter the D state as soon as it started transmitting data again, and the output of the command you suggested is: PID TID COMM TDNAME KSTACK 1646 101975 zfs - mi_switch+0xd2 sleepq_wait+0x3a _cv_wait+0x194 zio_wait+0x5b arc_read+0x8f0 dmu_objset_open_impl+0xed dmu_objset_from_ds+0x65 zfs_ioc_snapshot_list_next+0x178 zfsdev_ioctl+0x5f5 devfs_ioctl_f+0x13f kern_ioctl+0x2d4 sys_ioctl+0x171 amd64_syscall+0x4ce Xfast_syscall+0xfb -- Tim Gustafson BSOE Computing Director tjg@ucsc.edu 831-459-5354 Baskin Engineering, Room 313A To request BSOE IT support, please visit https://support.soe.ucsc.edu/ or send e-mail to help@soe.ucsc.edu.