From owner-freebsd-stable@freebsd.org Thu Nov 28 13:34:06 2019 Return-Path: Delivered-To: freebsd-stable@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 6B5F41A9D75 for ; Thu, 28 Nov 2019 13:34:06 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (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 47NzBP46Hlz4Znd for ; Thu, 28 Nov 2019 13:34:05 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: by mail-wm1-x333.google.com with SMTP id f129so11692935wmf.2 for ; Thu, 28 Nov 2019 05:34:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=multiplay-co-uk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=cCPYNgqm+Sbuvi8ukDYUZ9PKVZU+bstZ3rmnMeWv/Lg=; b=ZG5M7b0fSre8rhf/svxDWP5We57VwI1TIPN64DCFOS4LkTEqtugvoqnbXXpHVJod35 Vehcdv4O7GtZocn2Vy+92tQC3UOsPb40MYrVjxKtgMG+LjQPJkAdu2uJ8fLlQyjOlaLL XjEBVxF+QIpNRCSZMYYfkpK9GQ+ChelEUgQvCo3Zd84SfRpI/0hP2sxewsnnNYTlaW0Y VAFCJhRhQ0/EL3xh9H/EZ1x2jcnuDRqrPkDd2K67P61+Hjb/iGff/phxuQSUcGKUqMJX Dj/3aHeXFGgQGWmbjCm2EwXEYkyUiWX34YbVqAiIXLn25OLERpB4mH2Piwo4ur/OIEj0 sa8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=cCPYNgqm+Sbuvi8ukDYUZ9PKVZU+bstZ3rmnMeWv/Lg=; b=HdnsUUIn9va+RO9LQjt08srZO8fozcJa8maVD8KyaevB8G9xVbEbVLH6fhXYoWdowK rmN68VSPYb7g0ZPmL7x9IKmQkQyceJI6XtpCQm35mafZgkI1J/ReqSctiSNYk8RET9WL nLfXmFAaijLaTj9wGFDfkpLD2SHGobYrwrDp8Cm+BTUiaQa0jMkvZdcoDudnW3tTRz91 sU9hZ/DH9jgwXiziszBoEFSUauQIBNI/N8Oe7lerPSAM7WFY6yT8xzs9riw5T9CfGPVe lT3fh6ggf5w/D2CHkStV/Cxlk6ab4XURskawwEy8IoMm7hgYt7ybx1vwoQW9Ztfla2i7 pv4g== X-Gm-Message-State: APjAAAUTEqLV0mtVAYwF+R0FtK/BQlhzqSgpql+6yRa/hKJHfdTADCpJ o7XMmtHWMAqF6mnZdb1+LxuwE3pFYTY= X-Google-Smtp-Source: APXvYqyfASaucWZmWeAnZDKpILDq+QCpFZe5JMlPy1eNGYeVdrXapyv0C3GRQ2iDcGxVCKDwv00KEA== X-Received: by 2002:a7b:c38c:: with SMTP id s12mr9841233wmj.84.1574948042870; Thu, 28 Nov 2019 05:34:02 -0800 (PST) Received: from [10.44.128.75] ([193.117.175.106]) by smtp.gmail.com with ESMTPSA id c15sm24018279wrx.78.2019.11.28.05.34.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Nov 2019 05:34:01 -0800 (PST) Subject: Re: Slow zfs destroy To: Eugene Grosbein Cc: FreeBSD stable References: <01ca3a41-6cd2-823f-a8c1-30a47a0bbc98@grosbein.net> <49c9c4da-c078-43b9-e7e2-51a1bacb2671@grosbein.net> From: Steven Hartland Message-ID: Date: Thu, 28 Nov 2019 13:34:01 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <49c9c4da-c078-43b9-e7e2-51a1bacb2671@grosbein.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB X-Rspamd-Queue-Id: 47NzBP46Hlz4Znd X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=multiplay-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=ZG5M7b0f; dmarc=pass (policy=none) header.from=multiplay.co.uk; spf=pass (mx1.freebsd.org: domain of killing@multiplay.co.uk designates 2a00:1450:4864:20::333 as permitted sender) smtp.mailfrom=killing@multiplay.co.uk X-Spamd-Result: default: False [-5.67 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[multiplay-co-uk.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[multiplay-co-uk.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[3.3.3.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]; DMARC_POLICY_ALLOW(-0.50)[multiplay.co.uk,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-2.67)[ip: (-8.66), ipnet: 2a00:1450::/32(-2.69), asn: 15169(-1.95), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Nov 2019 13:34:06 -0000 It may well depend on the extent of the deletes occurring. Have you tried disabling TRIM to see if it eliminates the delay?     Regards     Steve On 28/11/2019 09:59, Eugene Grosbein wrote: > 28.11.2019 14:26, Steven Hartland wrote: > >> As you mentioned it’s on SSD you could be suffering from poor TRIM performance from your devices >> if you run gstat -pd you’ll be able to get an indication if this is the case. > Yes, this box does have problems with poor TRIM performance. > But isn't "zfs destroy" supposed to perform actual removal in background? > "feature@async_destroy" is "enabled" for this pool.