Debian on a 1-vCPU / 512MB VPS

2026-11-20

Tiny boxes run Debian fine if you catch three things before they catch you:

  1. Swap before anything else. Default minimal images often ship without swap; the first apt-get upgrade spike OOM-kills your session mid-way. A 256MB swapfile takes one minute to create and saves evenings.
  2. Cap journald. SystemMaxUse=50M in /etc/systemd/journald.conf — otherwise the journal quietly eats a tenth of a 10GB disk and you find out during the next upgrade.
  3. Apt in small pieces. On 512MB, --no-install-recommends plus sequential (not parallel) invocations keeps dpkg from tripping over memory mid-unpack.

With those set, a 1-core box comfortably runs a static site, a small proxy workload and monitoring. Kernel TCP buffers and BBR slots aside, CPU is rarely the first wall — memory is.

Back to notes