public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] Avaiable disk space when automatic garbage collection kicks in
@ 2024-04-08 16:29 Dragan Simic
  2024-06-12 16:25 ` Dragan Simic
  0 siblings, 1 reply; 4+ messages in thread
From: Dragan Simic @ 2024-04-08 16:29 UTC (permalink / raw)
  To: git

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?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-06-12 17:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-08 16:29 [RFC] Avaiable disk space when automatic garbage collection kicks in Dragan Simic
2024-06-12 16:25 ` Dragan Simic
2024-06-12 17:04   ` rsbecker
2024-06-12 17:25     ` Dragan Simic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox