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

cloning the linxu kernel repo at a VPS with small RAM

From
TFToralf Förster <toralf.foerster@gmx.de>
Date
Feb 8, 2024, 17:32 UTC
Message-ID
<2f773980-70ec-4ad0-a49c-3ac12c294a39@gmx.de>
Situation:
The command
     git clone
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
fails at a virtual server with about 2 GiB RAM under a recent Debian
bookworm with git 2.39.2. What works for me:
       git clone --depth=1
https://git.kernel.org/pub/scm/linux/kernel/git/stable
       cd ./linux
       git config gc.auto 0
       git config pack.threads 1
       git fetch --tags
as seen in [1].

Q: I do wonder if Git could automatically try to deal with only 1.5 GiB available RAM?

TIA

[1] https://github.com/toralf/tor-relays/blob/main/playbooks/roles/setup/tasks/kernel-git.yaml#L22 -- Toralf

Next: Dragan Simic
Message 1 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.