git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Dragan Simic <dsimic@manjaro.org>
To: git@vger.kernel.org
Subject: [RFC] Avaiable disk space when automatic garbage collection kicks in
Date: Mon, 08 Apr 2024 18:29:25 +0200	[thread overview]
Message-ID: <950d4ad3bcee79df1424faee09eb6b00@manjaro.org> (raw)

Hello all,

A few days ago I've noticed a rather unusual issue, but still
a realistic one.  When automatic garbage collection kicks in,
as a result of gc.auto >= 0, which is also the default, the
local repository can be left in a rather strange state if there
isn't enough free space available on the respective filesystem
for writing the objects, etc.

It might be a good idea to estimate the required amount of free
filesystem space before starting the garbage collection, be it
automatic or manual, and refuse the operation if there isn't
enough free space available.

As a note, the need_to_gc() function already does something a bit
similar with the available system RAM.

Any thoughts?


                 reply	other threads:[~2024-04-08 16:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=950d4ad3bcee79df1424faee09eb6b00@manjaro.org \
    --to=dsimic@manjaro.org \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).