From: Toralf Förster Date: Thu, 08 Feb 2024 17:32:24 GMT Subject: cloning the linxu kernel repo at a VPS with small RAM 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