From nobody Sat Dec 16 12:24:46 2023 X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ssldv5YY4z53rgC for ; Sat, 16 Dec 2023 12:24:51 +0000 (UTC) (envelope-from void@f-m.fm) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ssldt6dD2z4Rcj for ; Sat, 16 Dec 2023 12:24:50 +0000 (UTC) (envelope-from void@f-m.fm) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=f-m.fm header.s=fm2 header.b=fcDYkcsp; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=y4AYrU0U; spf=pass (mx1.freebsd.org: domain of void@f-m.fm designates 64.147.123.25 as permitted sender) smtp.mailfrom=void@f-m.fm; dmarc=pass (policy=none) header.from=f-m.fm Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 454803200A52 for ; Sat, 16 Dec 2023 07:24:49 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 16 Dec 2023 07:24:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=f-m.fm; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1702729488; x=1702815888; bh=fTfPL0JGZ/ AbgjLLG79crXQX46orgXo87oZoI+tES34=; b=fcDYkcspLtnn+UlEUT5ZJ+1iyM xLNHwzrcQTAm6qz8Y6Kr9jzyB54/NyjhTH0E4jBuD7kGXJhV0zcfCR7br651f82a IcFpXDi2dC50buCyGoHSM3MvI/z9Skh9P/XkY+xqjQd5/LlsS2eyxbl/uTkeSc0J ej5eQ0K94M2dvS2ZfbxEvIHVfp3WztUYRRz+ePKysaXML1svppgWazS5i7D4ozwd bGthHo/emI84oEO+2FwnHTONdaZwxAL85PV6bJbVltCQ8a1W+vX50H4bGlm+gV/x SKbq51nf8S05P9KCF02n98sJjvRCpNhdZIFs56Bx7V5memEkii5ltThrfo+w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1702729488; x=1702815888; bh=fTfPL0JGZ/AbgjLLG79crXQX46or gXo87oZoI+tES34=; b=y4AYrU0UGPgVliVu8WP7Kf/6zdM+MM4oQgwnmrlnP9oe cF7/v2BdlcKAU4HE45wbLQ82a/6eW/KcHY0BUFudEuKpBMwz0+xEQ1tRAa23bblV YENxS74Y2Z+8shu7GwENEQeWcfsBn7M42FXkP3sk8h10xsTLHCOcXXHqbKtUrUvm dyd7Hbk8wlm8Rn1UA7SCxo9xWNDOKIpBbhYwVB+GNsqMMXhc7gk2JIh01F3vpeIm Kl9OKw2P/jZB5TmRdsL/6kqUk+LrdCSftAE6KmoVkCTIB5xgJ+TRJ+1LeqIMkze3 vahhOjwzwOAL7wUN6Bf4WX2QqYOWUOjviNbc6XazEA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvddtgedggeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesthdtre dttddtvdenucfhrhhomhepvhhoihguuceovhhoihgusehfqdhmrdhfmheqnecuggftrfgr thhtvghrnhepkeeluddvlefhieelfefggffhffektdehleelgfdugfdvgeekjeejuddthe ehgfeunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep vhhoihgusehfqdhmrdhfmh X-ME-Proxy: Feedback-ID: i2541463c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 16 Dec 2023 07:24:48 -0500 (EST) Date: Sat, 16 Dec 2023 12:24:46 +0000 From: void To: freebsd-fs@freebsd.org Subject: Re: measuring swap partition speed Message-ID: Mail-Followup-To: freebsd-fs@freebsd.org References: List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Spamd-Result: default: False [-4.77 / 15.00]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.97)[-0.972]; DMARC_POLICY_ALLOW(-0.50)[f-m.fm,none]; MID_RHS_NOT_FQDN(0.50)[]; RWL_MAILSPIKE_VERYGOOD(-0.20)[64.147.123.25:from]; R_DKIM_ALLOW(-0.20)[f-m.fm:s=fm2,messagingengine.com:s=fm2]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.25]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.123.25:from]; ASN(0.00)[asn:29838, ipnet:64.147.123.0/24, country:US]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; RCPT_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org]; FREEMAIL_FROM(0.00)[f-m.fm]; FREEMAIL_ENVFROM(0.00)[f-m.fm]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[f-m.fm:+,messagingengine.com:+]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4Ssldt6dD2z4Rcj X-Spamd-Bar: ---- On Fri, Dec 15, 2023 at 08:41:10AM -0700, Warner Losh wrote: > What's the underlying hardware? my apologies, I should have supplied this detail initially. It's a spinning rust TOSHIBA MQ01ABD100 > So the good news, kinda, is that if this is spinning rust, your swap > partitions are > on the fastest part of the disk. I'd expect 1 that's 12G would work better > than 6 that > are 2G since you'd have less head thrash. Parllelism with multiple swap > partitions > works best when they are on separate spindles. ok that's easily fixable. It was originally one big 12G swapspace. The reason it's split into 6 is for testing purposes. I've noticed when swap gets used there's the marked slowdown even if the process using it has paused. So I've found that using swapoff then swapon puts these processes back into active memory and the system sluggishness goes, for a short while until swap gets used again. With the swapspace split, I can swapoff/on each partition individually. If there's 2GB free mem and 3GB on swap, I can swapoff a couple of partitions, swapon them again then swapoff/on the relatively full partition to get total swap use back to 0. >The bad news is that your disk may be fine. I'd expect that as the ZFS >partition fills up, >the seek size will increase as greater distances have to be traversed to >get back >to the swap space. There's a sweet spot of a few tens of GB that drives >usually can seek >far faster than longer throws... (not an SSD) TYVM for the fio tip. Am building it now. I'm wondering really if I should reprovision this rpi4 for UFS rather than zfs. Have had great positive experience with zfs as data (ie, booting ufs, zfs is a non-bootable single disk or array), less than ideal with zfs-on-root. There's periodic backups and not much call for this device to utilise zfs functionality that can't be provided on hardware with more horsepower. it must be said though that FreeBSD is *very stable* on this hardware. --