Memory Consumption ================== What follows are readings taken from the staging server about memory consumption for RhodeCode, RabbitMQ and Apache, and overall system memory. The readings have been performed using the following tools and commands: pmap -d $process_pid sync && echo 3 > /proc/sys/vm/drop_caches In case of swap space, the previous command could be run also as: swapoff -a && sync && echo 3 > /proc/sys/vm/drop_caches && swapon -a Keep in mind that there needs to be sufficient memory to allow swap space to be moved there. Tools like top, htop or ps are not precise enough to get a clear picture of real Linux memory consumptions. The readings have been performed in 3 different moments, with normal website operation, and with CI jobs cloning repositories from the server. RhodeCode --------- mapped: 1742036K writeable/private: 1090156K shared: 124980K mapped: 2758760K writeable/private: 1090216K shared: 1141648K mapped: 3307952K writeable/private: 1121856K shared: 1611184K Memory at the beginning: mapped: 654168K writeable/private: 97948K shared: 16K Readings done with 7 CI jobs running, and while browsing the website on multiple tabs. mapped: 6740572K writeable/private: 5208744K shared: 551248K mapped: 6757908K writeable/private: 5226660K shared: 551248K mapped: 6912412K writeable/private: 5392572K shared: 551248K mapped: 7081752K writeable/private: 5561912K shared: 551248K mapped: 7290300K writeable/private: 5770460K shared: 551248K RabbitMQ -------- mapped: 2135512K writeable/private: 84448K shared: 0K mapped: 2135512K writeable/private: 84448K shared: 0K mapped: 2135512K writeable/private: 84448K shared: 0K Apache ------ mapped: 81692K writeable/private: 3036K shared: 788K mapped: 81692K writeable/private: 3036K shared: 788K mapped: 81692K writeable/private: 3036K shared: 788K System Memory ------------- total used free shared buffers cached Mem: 15339668 1340244 13999424 0 848 27136 -/+ buffers/cache: 1312260 14027408 Mem: 15339668 1340356 13999312 0 704 27204 -/+ buffers/cache: 1312448 14027220 Mem: 15339668 1372744 13966924 0 164 27932 -/+ buffers/cache: 1344648 13995020 Mem: 15339668 13342380 1997288 0 872 3097056 -/+ buffers/cache: 10244452 5095216 Memory before starting any CI jobs, after kernel chaces have been synced and dropped: Mem: 15339668 5613396 9726272 0 852 203456 -/+ buffers/cache: 5409088 9930580 Memory with 7 CI jobs running, and while browsing the website: Mem: 15339668 11064988 4274680 0 184 2332424 -/+ buffers/cache: 8732380 6607288 After jobs ran, and with no load on the server: Mem: 15339668 7907532 7432136 0 6680 2501044 -/+ buffers/cache: 5399808 9939860