Measure memory on a small instance with 2GB RAM
We've made many changes that in total should reduce memory consumption for small instances.
Proposal
- Activate memory saving configuration and assess impact at rest and under load
- Summarize findings and measurements
- Answer what the minimum amount of RAM is that is required
Summary
The suggested node size (2CPU/2GB RAM/1GB swap) is appropriate for small teams or personal use. We observed occasional problems with long latencies or gitaly throwing errors, but those disappeared after a restart. More tuning of cgroup limits might be required.
Resource use at rest does not look dramatically different from while or after running the full test suite:
Idle
total used free shared buff/cache available
Mem: 1.9G 1.6G 108M 50M 274M 230M
Swap: 1.0G 76M 947M
Under load
total used free shared buff/cache available
Mem: 1.9G 1.6G 108M 50M 274M 230M
Swap: 1.0G 76M 947M
Finished
total used free shared buff/cache available
Mem: 1.9G 1.6G 130M 82M 228M 156M
Swap: 1.0G 246M 777M
(utilization under load of course changes depending on which endpoints are being exercised)
Edited by Matthias Käppler