git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: cloning the linxu kernel repo at a VPS with small RAM

From
EWEric 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.
Previous: Dragan SimicNext: Toralf Förster
Message 4 of 5 in “cloning the linxu kernel repo at a VPS with small RAM”
  1. Toralf FörsterFeb 8, 2024
  2. Dragan SimicFeb 8, 2024
  3. Dragan SimicFeb 8, 2024
  4. Eric WongFeb 9, 2024
  5. Toralf FörsterFeb 10, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.