6 ms·
> Surprisingly, 256 MB in RAM have been enough to maintain the app running for months until now. What is total RSS of all your proxy processes?
by Snawoot 6y ago
> Surprisingly, 256 MB in RAM have been enough to maintain the app running for months until now.
What is total RSS of all your proxy processes?
- AlexITC 6y agoWhat's RSS?
- Snawoot 6y agoResident Set Size, a value reported by programs like top/htop with amount of physical RAM used by process.
- AlexITC 6y ago$ free -h total used free shared buff/cache available Mem: 432Mi 194Mi 26Mi 20Mi 211Mi 164Mi Swap: 99Mi 2.0Mi 97Mi $ top Tasks: 69 total, 1 running, 68 sleeping, 0 stopped, 0 zombie %Cpu(s): 7.3 us, 4.3 sy, 0.0 ni, 88.4 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st MiB Mem : 432.4 total, 26.2 free, 194.7 used, 211.5 buff/cache MiB Swap: 100.0 total, 98.0 free, 2.0 used. 164.7 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2915 pi 20 0 299.9m 173.8m 13.6m S 1.6 40.2 447:45.82 java 32009 pi 20 0 7.5m 2.6m 2.2m R 1.0 0.6 0:00.31 top 31991 pi 20 0 11.9m 3.8m 3.0m S 0.3 0.9 0:00.10 sshd
- Snawoot 6y agoThank you!
- boring_twenties 6y agoDon't forget to set gpu_mem in config.txt. It looks like you are running with the default, which is 64MB for the GPU. I'm guessing you are not using the GPU in this application and should reduce this value to the bare minimum (which I don't recall, sorry)
- AlexITC 6y agoThanks for the hint, I would be surprised if this old Pi actually has any GPU.
- rasz 6y agopee was always a VideoCore GPU with ARM cores glued to its ass as an afterthought https://en.wikipedia.org/wiki/VideoCore https://en.wikipedia.org/wiki/VideoCore
- boring_twenties 6y agoThey all do, in fact the GPU is required to boot the CPU. In your free output it is clear that 64MB is assigned to the GPU, as per default, because it says you only have 432M total (available to the CPU). You can gain most (not all) of that 64MB back for free, simply by running `echo gpu_mem=1 | sudo tee -a /boot/config.txt && sudo reboot` (Pretty sure that the minimum is actually more than 1, but also that it will accept that and set it to the minimum... check the docs if you need to be sure)
- AlexITC 6y agoThanks for the details.