From owner-freebsd-fs@freebsd.org Wed Oct 4 16:43:40 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 04AE2E3D940 for ; Wed, 4 Oct 2017 16:43:40 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from mail.in-addr.com (mail.in-addr.com [IPv6:2a01:4f8:191:61e8::2525:2525]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BD2466965B for ; Wed, 4 Oct 2017 16:43:39 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from gjp by mail.in-addr.com with local (Exim 4.89 (FreeBSD)) (envelope-from ) id 1dzmlm-000NhJ-5P; Wed, 04 Oct 2017 17:43:38 +0100 Date: Wed, 4 Oct 2017 17:43:37 +0100 From: Gary Palmer To: javocado Cc: FreeBSD Filesystems Subject: Re: lockup during zfs destroy Message-ID: <20171004164337.GB65538@in-addr.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on mail.in-addr.com); SAEximRunCond expanded to false 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: Wed, 04 Oct 2017 16:43:40 -0000 On Wed, Oct 04, 2017 at 09:15:27AM -0700, javocado wrote: > My questions: > > - is this what it appears to be, a memory exhaustion? > - if so, why isn't swap utilized? Kernel memory generally isn't pushed to swap as it could lead to deadlock situations way too easily. > - how would I configure my way past this hurdle? > - a filesystem has a DELETE_QUEUE ... does the zpool itself have a destroy > queue of some kind? I am trying to see if I can see the zpool working > and how far along it is, but I do not know what to query with zdb Yes, it does, I believe behind the feature@async_destroy flag on the pool. "zpool get feature@async_destroy" to see the enabled status. Not sure if you can query the queue to see how it is progressing. I haven't destroyed any pools, but with snapshots you can check the free space on the pool using "zpool list" and it gradully increases in the background. Regards, Gary