From nobody Sun Jan 22 14:11:47 2023 X-Original-To: freebsd-current@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 4P0FXq0pPRz2v3fS for ; Sun, 22 Jan 2023 14:11:55 +0000 (UTC) (envelope-from SRS0=grGQ=5T=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (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 4P0FXp5Vtvz44My for ; Sun, 22 Jan 2023 14:11:54 +0000 (UTC) (envelope-from SRS0=grGQ=5T=klop.ws=ronald-lists@realworks.nl) Authentication-Results: mx1.freebsd.org; none Date: Sun, 22 Jan 2023 15:11:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1674396707; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=oQ5QgC+eNiQ3e3yPAQx0bL5KCtPrZ5AQZPjjoZT9MkQ=; b=nVtUIQCHAIhl7uej5qkOByzVN9MxJVBzHPRKJjgktxV7iXf3jND8gafZ3HSmp81Bp1q7ZV YAWEeOwAeImmE+Ctazp40SZaIuhmLdp51l4BZQnSSDXcC8CfTbqfg2BPf4gJlsvUlt5o9m Iv2XXHkL81YQx66mwNkIYAD3CO4BZoVcNyHJpX5lF1dKYiVDynOWk4FzuUs3wGUxaa0dDj 3BceNu8KjsaU2rw0iiWc/z4jGvac06NBJktukBmc/S6dp+hAQUPO+3wf6rwfj8wp4pZNxA Cn0ZtI7AxlmGheLErpLvNbj9KegdZPOOEUicK+VMEb702WiOvNP0Z9LvQ4ikhw== From: Ronald Klop To: Mark Millard Cc: freebsd-current Message-ID: <159467120.7.1674396707299@mailrelay> In-Reply-To: References: Subject: Re: An idea for swap partition size vs. swap space size in use handling List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6_262847912.1674396706881" X-Mailer: Realworks (641.957) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Queue-Id: 4P0FXp5Vtvz44My X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N ------=_Part_6_262847912.1674396706881 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Van: Mark Millard Datum: zondag, 22 januari 2023 05:41 Aan: freebsd-current Onderwerp: An idea for swap partition size vs. swap space size in use handl= ing >=20 > I have boot media that are each set up to boot a variety > of systems that have widely different RAM sizes, from > 1 GiBytes to 64 GiBytes for the aarch64 examples of this. >=20 > This has lead to having multiple swap partitions of > various sizes so that I can have total swap spaces that > are somewhat under the recommended maximum sizes for the > amount of RAM in each of those systems that a given media > can boot. >=20 > It would be nice if I could have just one swap partition > on a given boot media, one that is more than sufficient > in size for all but the biggest RAM system --but to then > be able to tell the system to just use up to the > recommended swap space size and to ignore any extra swap > space in the swap partition. >=20 > If such could be done, I'd no longer use multiple swap > partitions at the same time in order to get to a desired > total for the system at hand at the time. >=20 > Of course, that still leaves what to do when multiple > swap partitions are enabled if such a "ignore what > would be extra" mode was also enabled. As I'd not use > such, I've no specific recommendations to make that > would make any difference to my use. >=20 > =3D=3D=3D > Mark Millard > marklmi at yahoo.com >=20 > =C3=82=20 >=20 >=20 >=20 Hi Mark, Do you mean you would like to be able to add a "size" parameter to the fsta= b swap line? /dev/da0p1 none swap sw,size=3D1g 0 0 Another option I can think of is using the "gnop" geom provider. It has a -= s parameter to set the size. Regards, Ronald. =C3=82=20 ------=_Part_6_262847912.1674396706881 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

Van: Mark Millard <marklmi@yahoo.com>
Datum: zondag, 22 januari 2023 05:41
Aan: freebsd-current <freebsd-current@freebsd.org> Onderwerp: An idea for swap partition size vs. swap space = size in use handling

I have boot media that are each s= et up to boot a variety
of systems that have widely different RAM sizes, from
1 GiBytes to 64 GiBytes for the aarch64 examples of this.

This has lead to having multiple swap partitions of
various sizes so that I can have total swap spaces that
are somewhat under the recommended maximum sizes for the
amount of RAM in each of those systems that a given media
can boot.

It would be nice if I could have just one swap partition
on a given boot media, one that is more than sufficient
in size for all but the biggest RAM system --but to then
be able to tell the system to just use up to the
recommended swap space size and to ignore any extra swap
space in the swap partition.

If such could be done, I'd no longer use multiple swap
partitions at the same time in order to get to a desired
total for the system at hand at the time.

Of course, that still leaves what to do when multiple
swap partitions are enabled if such a "ignore what
would be extra" mode was also enabled. As I'd not use
such, I've no specific recommendations to make that
would make any difference to my use.

=3D=3D=3D
Mark Millard
marklmi at yahoo.com

=C3=82 



Hi Mark,

Do you mean you would like to be able to add a "size" parameter to the fsta= b swap line?

/dev/da0p1      none     =        swap    sw,size=3D1g &n= bsp;            0&nb= sp;      0

Another option I can think of is using the "gnop" geom provider. It has a -= s parameter to set the size.

Regards,
Ronald.
=C3=82  ------=_Part_6_262847912.1674396706881--