From owner-freebsd-fs@freebsd.org Sat May 30 23:03:03 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 975312FA1FA for ; Sat, 30 May 2020 23:03:03 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 49ZH5y4sZdz3dLG for ; Sat, 30 May 2020 23:03:02 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: by mail-wm1-x342.google.com with SMTP id h4so7228824wmb.4 for ; Sat, 30 May 2020 16:03:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=multiplay-co-uk.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=8oReX/0cgCpkgBUMtGyOj0WqBeRtvGIPX4+NGO6wirw=; b=YrNwj0NnMicIQyzTWNCCc7tF8kyyG0m68zSE2xTPA00ypq/w3GkNBWo79w2sR9fNwQ z+rlOJSQ83vR1mHboIbuHQri7pKIy+C4qlqH+9pvgWwVBlvE4VOiYPSUZY9OS0kEDz5n /yc1dmzYVPwLzSRVMFKXfQyJQv6bZYmfms6q1onIhVCMeft3JMvshN0XwGcC3cCw0pGb M/calaTt9/eNtL0UPthkYZdpRci1nD2Exa3cVjTCwYaoT/bFenYzkh4CxV9qLT/ObjC/ fRoZ1S6uJzQjviNDe070rRCNCcd0sYSlOExSr6oHlKVy+E9bcNcOHbfIQ4OfqdokoIaU N4Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=8oReX/0cgCpkgBUMtGyOj0WqBeRtvGIPX4+NGO6wirw=; b=a5krySJL0engHBKJe3AXD1uLribQBd2HE8Vah4bdL+pBklkpHx+NVz5tO9zTVSy1Fq LHM6mm0j0jtwVSSnEMECNSRtnpTZRFt++Sg4Eqdvfk8wwSn/EtYdgz2ffnnB3tjf1Scn n1yWt6fWIcsgAZKmMxeS0wwy30NNdgFKQELWXxNYtZMzwChcOOgZORII+D0bipbbhLCk 0fqYj0wwymjNPB5c7m8ixL6yhKQO+vJgBzTrKHI4fP9NPDSZ+92qHMbKpASkUs7OGWoe 1QfcwM08vFytwFjGk2qqvIMQ7YVDpnSaCdfCB4FfBt5+qYXpI9MceyGiC+QGbgPJJoNK T3sw== X-Gm-Message-State: AOAM531jNRf33CyDfxStEFqT+nHuANaV444+Q0hq3CjO9oB2jetn1gTY j+h24tKWsvlqRI/rYVvGSdH+dBs+p1Jllo4L X-Google-Smtp-Source: ABdhPJwnZrh/fYiBtgSnyNrHOFVU3xREDXjDe7Duue9NJuYr095thCC46bgmS+OBTJTUEwoffntlVg== X-Received: by 2002:a1c:5445:: with SMTP id p5mr6947231wmi.115.1590879780511; Sat, 30 May 2020 16:03:00 -0700 (PDT) Received: from [10.44.128.75] ([193.117.175.106]) by smtp.gmail.com with ESMTPSA id w10sm15450623wrp.16.2020.05.30.16.02.59 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 30 May 2020 16:02:59 -0700 (PDT) Subject: Re: ZFS on FreeBSD 11.3 slower than 10.4 To: freebsd-fs@freebsd.org References: <1ff455a5-d111-86fa-ceb1-1021b6d9a5b6@quip.cz> <8c64cc48-7d79-7591-8bb5-67f3127463b7@quip.cz> From: Steven Hartland Message-ID: Date: Sun, 31 May 2020 00:02:59 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <8c64cc48-7d79-7591-8bb5-67f3127463b7@quip.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB X-Rspamd-Queue-Id: 49ZH5y4sZdz3dLG X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=multiplay-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=YrNwj0Nn; 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::342 as permitted sender) smtp.mailfrom=killing@multiplay.co.uk X-Spamd-Result: default: False [-3.21 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[multiplay-co-uk.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-1.03)[-1.025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.99)[-0.991]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[multiplay-co-uk.20150623.gappssmtp.com:+]; DMARC_POLICY_ALLOW(-0.50)[multiplay.co.uk,none]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::342:from]; NEURAL_HAM_SHORT(-0.19)[-0.190]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] 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, 30 May 2020 23:03:03 -0000 Whats the state of your disks when the slowdown happens, do they look saturated at a?? On 30/05/2020 22:29, Miroslav Lachman wrote: > On 2020-05-30 22:10, Ronald Klop wrote: >> On Sat, 23 May 2020 21:44:03 +0200, Miroslav Lachman >> <000.fbsd@quip.cz> 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? > > >> How full is the disk? ZFS has poor performance if the disk becomes full. >> What is in /etc/sysctl.conf and /boot/loader.conf? >> And did you try to boot 12.1 and did it have the same behavious? > > It is currently 77% full. But it is the same pool with the same > capacity as with 10.4. > > I didn't try 12.1, I need to stay on 11.3 for now. > > ## loader.conf > > nvidia_load="YES" > drm_load="YES" > drm2_load="YES" > iicbus_load="YES" > vboxdrv_load="YES" > crypto_load="YES" > aesni_load="YES" > geom_eli_load="YES" > vfs.zfs.arc_max="1024M" > zfs_load="YES" > iicbus_load="YES" > > ## sysctl.conf > > kern.coredump=0 > kern.maxfiles=49312 > vfs.usermount=1 > security.jail.allow_raw_sockets=1 > security.jail.sysvipc_allowed=1 > security.jail.mount_allowed=1 > security.jail.chflags_allowed=1 > hw.syscons.bell=0 > kern.sched.preempt_thresh=224 > kern.ipc.shm_allow_removed=1 > kern.shutdown.poweroff_delay=500 > kern.bootfile=/boot/kernel/kernel > hw.usb.no_shutdown_wait=1 > hw.snd.default_unit=3 > kern.sched.interact=10 > vfs.aio.max_aio_per_proc=256 > vfs.aio.max_aio_queue=8192 > vfs.aio.max_aio_queue_per_proc=1024 > vfs.aio.max_buf_aio=64 > net.local.stream.recvspace=65536 > net.local.stream.sendspace=65536 > > > loader.conf and sysctl.conf are the same for 10.4 and 11.3 but 11.3 is > much much slower when it comes to heavy IO like "find" daily periodic > scripts, zfs destroy, starting new applications etc. > > > 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"