From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42593) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6AsF-0006CL-5K for guix-patches@gnu.org; Mon, 24 Feb 2020 05:22:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6AsE-0002vq-AU for guix-patches@gnu.org; Mon, 24 Feb 2020 05:22:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46953) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j6AsE-0002vK-6v for guix-patches@gnu.org; Mon, 24 Feb 2020 05:22:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j6AsE-0005Pi-2x for guix-patches@gnu.org; Mon, 24 Feb 2020 05:22:02 -0500 Subject: [bug#39734] [PATCH] scripts: Emit GC hint if free space is lower than absolute and relative threshold. Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20200222104653.1324-1-mail@ambrevar.xyz> <874kvizxi6.fsf@gnu.org> <87tv3ig8bc.fsf@ambrevar.xyz> <87h7zhttk1.fsf@gnu.org> <874kvhfrqk.fsf@ambrevar.xyz> <875zfxtlrk.fsf@gnu.org> <87pne5e581.fsf@ambrevar.xyz> <87tv3hs2u0.fsf@gnu.org> <87ftf1dnfj.fsf@ambrevar.xyz> <87d0a5dn5b.fsf@ambrevar.xyz> Date: Mon, 24 Feb 2020 11:21:02 +0100 In-Reply-To: <87d0a5dn5b.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Sun, 23 Feb 2020 22:11:44 +0100") Message-ID: <87blponv5d.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Pierre Neidhardt Cc: 39734@debbugs.gnu.org Pierre Neidhardt skribis: > Pierre Neidhardt writes: > >> Ludovic Court=C3=A8s writes: [...] >>> 1GiB;10% >>> 15 ;15% relative, and default absolute >>> 15% ;same >>> 1G ;1G absolute, and default relative > > Something else: in your example it's not logically possible to make out > if a raw number is relative or absolute. > So I suggest to break backward compatibility and do this: > > 1GiB;10% > 15 ;15 absolute (15 bytes), and default relative > 15% ;15% relative, and default absolute > 1G ;1G absolute, and default relative > > Thoughts? What about having the rule that a number below 100 is a percentage, as discussed before? (It doesn=E2=80=99t make much sense to have an absolute threshold of 42 bytes.) Ludo=E2=80=99.