Re: cloning the linxu kernel repo at a VPS with small RAM
- From
- Eric Wong <e@80x24.org>
- Date
- Feb 9, 2024, 01:29 UTC
- Message-ID
- <20240209012940.M610977@dcvr>
- In-Reply-To
- <2f773980-70ec-4ad0-a49c-3ac12c294a39@gmx.de>
Toralf Förster <toralf.foerster@gmx.de> 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.