From owner-freebsd-fs@freebsd.org Sat May 23 19:44:17 2020 Return-Path: Delivered-To: freebsd-fs@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 15B302DC40C for ; Sat, 23 May 2020 19:44:17 +0000 (UTC) (envelope-from SRS0=4R+8=7F=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (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 49Tv1q3xzhz4Y5d for ; Sat, 23 May 2020 19:44:15 +0000 (UTC) (envelope-from SRS0=4R+8=7F=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id EADC62842E for ; Sat, 23 May 2020 21:44:06 +0200 (CEST) Received: from illbsd.quip.test (ip-62-24-92-232.net.upcbroadband.cz [62.24.92.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 8751128428 for ; Sat, 23 May 2020 21:44:05 +0200 (CEST) To: "freebsd-fs@freebsd.org" From: Miroslav Lachman <000.fbsd@quip.cz> Subject: ZFS on FreeBSD 11.3 slower than 10.4 Message-ID: <1ff455a5-d111-86fa-ceb1-1021b6d9a5b6@quip.cz> Date: Sat, 23 May 2020 21:44:03 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49Tv1q3xzhz4Y5d X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of SRS0=4R@elsa.codelab.cz has no SPF policy when checking 94.124.105.4) smtp.mailfrom=SRS0=4R@elsa.codelab.cz X-Spamd-Result: default: False [2.48 / 15.00]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.11)[0.106]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; ARC_NA(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[quip.cz]; NEURAL_SPAM_MEDIUM(0.29)[0.294]; NEURAL_SPAM_LONG(0.88)[0.876]; TO_DN_EQ_ADDR_ALL(0.00)[]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[000.fbsd@quip.cz,SRS0=4R@elsa.codelab.cz]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ]; TAGGED_FROM(0.00)[8=7F=quip.cz=000.fbsd]; FROM_NEQ_ENVFROM(0.00)[000.fbsd@quip.cz,SRS0=4R@elsa.codelab.cz] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 May 2020 19:44:17 -0000 I upgraded my old desktop computer few month ago from old 10.4 based PC-BSD to stock FreeBSD 11.3. It uses single 2TB HDD 7200rpm. My problem is that upgraded version is really slow and some desktop applications are very lagging (playing multimedia is interrupted for a fraction of seconds) when there is heavy filesystem activity. I am using zfsnap2 for taking snapshots periodically and when there is enough snapshots zfs destroy is called. In this time the user experience is terrible. Starting new application like browser or even something much smaller takes minutes. The old version based on FreeBSD 10.4 behaves much better. I used the old version for years and never have problems with interrupted multimedia playback. Are there some sysctls to tune to get better desktop interactivity in heavy filesystem operations like zfs destroy, pkg check or other "find" periodic scripts? Kind regards Miroslav Lachman From owner-freebsd-fs@freebsd.org Sat May 23 20:11:46 2020 Return-Path: Delivered-To: freebsd-fs@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 51B3E2DCD18 for ; Sat, 23 May 2020 20:11:46 +0000 (UTC) (envelope-from wfc@mintsol.com) Received: from scully.mintsol.com (scully.mintsol.com [199.182.77.206]) by mx1.freebsd.org (Postfix) with ESMTP id 49TvdX5g6Nz4bBq for ; Sat, 23 May 2020 20:11:44 +0000 (UTC) (envelope-from wfc@mintsol.com) Received: from mintsol.com (officecc.mintsol.com [96.85.114.33]) by scully.mintsol.com with esmtp; Sat, 23 May 2020 16:11:37 -0400 id 00B0182B.000000005EC98379.00003A12 Received: from localhost (localhost [127.0.0.1]) (IDENT: uid 1002) by mintsol.com with esmtp; Sat, 23 May 2020 16:11:38 -0400 id 00000A09.5EC9837A.00017B19 Date: Sat, 23 May 2020 16:11:38 -0400 (EDT) From: Walter Cramer To: Miroslav Lachman <000.fbsd@quip.cz> cc: "freebsd-fs@freebsd.org" Subject: Re: ZFS on FreeBSD 11.3 slower than 10.4 In-Reply-To: <1ff455a5-d111-86fa-ceb1-1021b6d9a5b6@quip.cz> Message-ID: <20200523155301.U91902@mulder.mintsol.com> References: <1ff455a5-d111-86fa-ceb1-1021b6d9a5b6@quip.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49TvdX5g6Nz4bBq X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of wfc@mintsol.com designates 199.182.77.206 as permitted sender) smtp.mailfrom=wfc@mintsol.com X-Spamd-Result: default: False [-2.72 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.03)[-1.030]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+a:scully.mintsol.com]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[mintsol.com]; NEURAL_HAM_LONG(-1.00)[-0.996]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-0.999]; RCPT_COUNT_TWO(0.00)[2]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:22768, ipnet:199.182.77.0/24, country:US] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 May 2020 20:11:46 -0000 On Sat, 23 May 2020, Miroslav Lachman wrote: > I upgraded my old desktop computer few month ago from old 10.4 based PC-BSD > to stock FreeBSD 11.3. It uses single 2TB HDD 7200rpm. > My problem is that upgraded version is really slow and some desktop > applications are very lagging (playing multimedia is interrupted for a > fraction of seconds) when there is heavy filesystem activity. > > I am using zfsnap2 for taking snapshots periodically and when there is enough > snapshots zfs destroy is called. In this time the user experience is > terrible. Starting new application like browser or even something much > smaller takes minutes. The old version based on FreeBSD 10.4 behaves much > better. I used the old version for years and never have problems with > interrupted multimedia playback. > > Are there some sysctls to tune to get better desktop interactivity in heavy > filesystem operations like zfs destroy, pkg check or other "find" periodic > scripts? > > Kind regards > Miroslav Lachman > _______________________________________________ > freebsd-fs@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" Does `top` or `vmstat` show that Free Memory is quite low when you are experiencing the problem? We had ARC / Free Memory performance problems with 11.X, and found that setting the sysctl "vfs.zfs.arc_max" much lower was necessary. From owner-freebsd-fs@freebsd.org Sat May 23 21:41:15 2020 Return-Path: Delivered-To: freebsd-fs@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 23D3D2DED48 for ; Sat, 23 May 2020 21:41:15 +0000 (UTC) (envelope-from SRS0=4R+8=7F=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (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 49Txcp1778z3VGL for ; Sat, 23 May 2020 21:41:13 +0000 (UTC) (envelope-from SRS0=4R+8=7F=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 7FF8428422; Sat, 23 May 2020 23:41:11 +0200 (CEST) Received: from illbsd.quip.test (ip-62-24-92-232.net.upcbroadband.cz [62.24.92.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 286102842E; Sat, 23 May 2020 23:41:10 +0200 (CEST) Subject: Re: ZFS on FreeBSD 11.3 slower than 10.4 To: Walter Cramer Cc: "freebsd-fs@freebsd.org" References: <1ff455a5-d111-86fa-ceb1-1021b6d9a5b6@quip.cz> <20200523155301.U91902@mulder.mintsol.com> From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: Date: Sat, 23 May 2020 23:41:08 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200523155301.U91902@mulder.mintsol.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 49Txcp1778z3VGL X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of SRS0=4R@elsa.codelab.cz has no SPF policy when checking 94.124.105.4) smtp.mailfrom=SRS0=4R@elsa.codelab.cz X-Spamd-Result: default: False [-0.81 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_LONG(-0.84)[-0.842]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[quip.cz]; AUTH_NA(1.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.55)[-0.553]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-0.62)[-0.617]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[000.fbsd@quip.cz,SRS0=4R@elsa.codelab.cz]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ]; FROM_NEQ_ENVFROM(0.00)[000.fbsd@quip.cz,SRS0=4R@elsa.codelab.cz]; TAGGED_FROM(0.00)[8=7F=quip.cz=000.fbsd] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 May 2020 21:41:15 -0000 On 2020-05-23 22:11, Walter Cramer wrote: > On Sat, 23 May 2020, Miroslav Lachman wrote: > >> I upgraded my old desktop computer few month ago from old 10.4 based >> PC-BSD to stock FreeBSD 11.3. It uses single 2TB HDD 7200rpm. >> My problem is that upgraded version is really slow and some desktop >> applications are very lagging (playing multimedia is interrupted for a >> fraction of seconds) when there is heavy filesystem activity. >> >> I am using zfsnap2 for taking snapshots periodically and when there is >> enough snapshots zfs destroy is called. In this time the user >> experience is terrible. Starting new application like browser or even >> something much smaller takes minutes. The old version based on FreeBSD >> 10.4 behaves much better. I used the old version for years and never >> have problems with interrupted multimedia playback. >> >> Are there some sysctls to tune to get better desktop interactivity in >> heavy filesystem operations like zfs destroy, pkg check or other >> "find" periodic scripts? >> >> Kind regards >> Miroslav Lachman > > Does `top` or `vmstat` show that Free Memory is quite low when you are > experiencing the problem?  We had ARC / Free Memory performance problems > with 11.X, and found that setting the sysctl "vfs.zfs.arc_max" much > lower was necessary. Free memory is not a problem. The machine in question has vfs.zfs.arc_max="1024M" (the same as in 10.4) Kind regards Miroslav Lachman