From: Eric Wong Date: Fri, 09 Feb 2024 01:29:40 GMT Subject: Re: cloning the linxu kernel repo at a VPS with small RAM Message-ID: <20240209012940.M610977@dcvr> In-Reply-To: <2f773980-70ec-4ad0-a49c-3ac12c294a39@gmx.de> Toralf Förster wrote: > I do wonder if Git could automatically try to deal with only 1.5 GiB > available RAM? I have to use pack.threads=1 myself on SMP machines, too. _SC_AVPHYS_PAGES should probably be accounted for in addition to _SC_NPROCESSORS_CONF when calculating the default pack.threads value. Calculating good defaults is hard, though... I've also been meaning to try the newer tombstone-free khashl to replace khash in our tree for memory savings: https://attractivechaos.wordpress.com/2019/12/28/deletion-from-hash-tables-without-tombstones/ Perhaps you (or someone else) can take the lead, there.