Increase Your Raspberry RAM With Your Disk Storage
I've got this raspberry pi 3 running from a very long time, and some time ago I installed Gekko, a crypto trader bot, on it.
The problem is that with my 500Gb of RAM, the bot crashes after a few days (it is accumulating data in a wide range). Seems like there is nothing to do ? Quite the opposite!
I worked with Linux for a long time and I didn't even know about memory swap! As they say, we learn new things every day...
So my dear friend Drilon explained me I can use the disk storage (my SD card space) to store flash memory (thus increase the maximum RAM of the raspberry pi).
And you just need to run a few commands.
If you're on Raspbian:
Edit the /etc/dphys-swapfile
file
sudo nano /etc/dphys-swapfile
It's a very small file and you're looking for the CONF_SWAPSIZE variable.
Set it to 1024 if you want to allow 1Gb of RAM from your SD Card (or more, or less).
Save the file and restart the service with
sudo /etc/init.d/dphys-swapfile restart
That's it !
I consider myself as an IT Business Artisan. Or Consultant CTO. I'm a self-taught Web Developper, coach and teacher. My main work is helping and guiding digital startups.
more about meBTC
18SY81ejLGFuJ9KMWQu5zPrDGuR5rDiauM
ETH
0x519e0eaa9bc83018bb306880548b79fc0794cd08
XMR
895bSneY4eoZjsr2hN2CAALkUrMExHEV5Pbg8TJb6ejnMLN7js1gLAXQySqbSbfzjWHQpQhQpvFtojbkdZQZmM9qCFz7BXU
2024 © My Dynamic Production SRL All rights Reserved.