From nobody Fri Feb 16 03:41:25 2024 X-Original-To: freebsd-arm@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 4Tbd5c6K1Yz545Dk for ; Fri, 16 Feb 2024 03:41:40 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic313-21.consmr.mail.gq1.yahoo.com (sonic313-21.consmr.mail.gq1.yahoo.com [98.137.65.84]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tbd5c3fH7z4FTl for ; Fri, 16 Feb 2024 03:41:40 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1708054897; bh=58onuahrg+2+7yp3AYifQPqFUieViKvWvJyRlbZo+X0=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=RaoapLSuX61w0ppUUPUOrkqECWG7UcpJBiVLzpwYOz3094Nh7usRZZ6iY8uTvZwjQAeTufXcn/1hqs/cfijiqbwMYs3APp5ynoveTCH2XQfGpVY0U/oSfR8JjCF44MYyjY4Jm6VlEDBa/JhuW7KS6m69cUxpzrli28NE3YukZGZRYTnaxyPVVBgpc1x1Xv7nk6jmFmn1BK5aY/vQjzfbmQETEn7mgcup9vGF4xUxgf/B3XL8sdOVFWm7JK3ritd7jVleFK6iHIPAZ+BIGiE9slUDmAhIbXN8jKL2G66k/ZmYN5kk+ErUZlWWuaHIhXvuwTBoeXlHq9SfNGs8BTGr4g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1708054897; bh=nl9vQuy11qSc5dYwiYjsSb8KUREbU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grJ4BNLAseoN5nw7WXymaO5LIp6L9zAb_VyqAMMOy3EEiAu8Dg5nb6Wg_z5ngq rMYkJ_McgnfMBi98nyJhmcDfIn44TBJ2keyLZqEKL6iXg4lewvSgMG8gdwJC.G0jRnkaIu4Gf4ic 73wP2JfFCjPdQyILL3UoY6Iojwon1wtnxxEDwcbGstqcq4kofMSDygj9cXcVNO6szh1JXFNW5s8_ clRatvs7Qyuhx.bI0SutAEEG.cO0ZK37auHoodE8NCGAy6xRFjBx2afyrDSB5eI4KnVQ3ech3eKC .1uHsR7M_KbHrk1TCenGURMW13YR_xNKSHAmIdsdH1Q2FkXv5VYDA3lzfCukKpb6mhGF_cMP97Tn 5IX_SXWbLqLjVKCMDvhPm4ZExZK9pTIvBt5_zd8LqNkA8LakphL_vkWDwHQv634ZnkJfIRNJ5Fjz AktIYfZBqPAq9BW9L2QfCyeSFeC.a_Hhz9owHQh.IbtZyK6.IgTbW5..3sI_2EV7ujs_bG.EoyoE XkA_I0wl0pES8cZTnPcE.OkBZTNs8R5ohOZZyoF8FKsxxzFvMqKRsj5UMJYZt8lGKaCpkCPO82YW KNAE- X-Sonic-MF: X-Sonic-ID: 35fb7996-d460-4181-918c-91f7c29c80eb Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Fri, 16 Feb 2024 03:41:37 +0000 Received: by hermes--production-gq1-5c57879fdf-vxz7c (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID d36458d22f445acb5badd4ba15b91fcc; Fri, 16 Feb 2024 03:41:36 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.400.31\)) Subject: Re: newfs TRIM flag device support From: Mark Millard In-Reply-To: Date: Thu, 15 Feb 2024 19:41:25 -0800 Cc: "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <6AD380D4-9B42-4511-9E02-94EB0005D278@yahoo.com> References: To: Ordinary Bit X-Mailer: Apple Mail (2.3774.400.31) X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4Tbd5c3fH7z4FTl X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] [Only replying to lists I subscribe to.] On Feb 15, 2024, at 19:19, Ordinary Bit wrote: > I'm reading the newfs manual = https://man.freebsd.org/cgi/man.cgi?newfs(8) to be able to know about = the TRIM flag. In the manual under -t parameter, it mentioned about = "underlying device support", what exactly is this device? 2 contrasting examples: Example 0: Optane NVMe media (PCIe card or U.2, for example) Optane has no need of TRIM and, so, never supports TRIM. Example 1: microsd card media usage A microsd card in the normal type of microsd card slot on Small Board Computers (normally) supports TRIM. Take the same card and put it in a USB reader/writer and use it via USB on the same system: no TRIM is supported by FreeBSD over USB. FYI: When the file system has TRIM enabled, FreeBSD put out a notice if TRIM will not actually be used in the actual context in use. > Is it the host (for example, Raspberry Pi SD/eMMC host reader) or the = SD/eMMC card (controller) or both? > -t Turn on the TRIM enable flag. If enabled, and if the = underly- > ing device supports the BIO_DELETE command, the file system > will send a delete request to the underlying device for each > freed block. The trim enable flag is typically set for flash- > memory devices to reduce write amplification which reduces wear > on write-limited flash-memory and often improves long-term per- > formance. Thinly provisioned storage also benefits by return- > ing unused blocks to the global pool. =3D=3D=3D Mark Millard marklmi at yahoo.com