Increase Your Raspberry RAM With Your Disk Storage

profile picture

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 !

linux
swap
rasbperry pi
memory

about me

profile picture

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 me

follow me

newsletter

A weekly email with the latests articles

support my work

Start trading on binance
  • BTC

    BTC

    18SY81ejLGFuJ9KMWQu5zPrDGuR5rDiauM

  • ETH

    ETH

    0x519e0eaa9bc83018bb306880548b79fc0794cd08

  • Monero

    XMR

    895bSneY4eoZjsr2hN2CAALkUrMExHEV5Pbg8TJb6ejnMLN7js1gLAXQySqbSbfzjWHQpQhQpvFtojbkdZQZmM9qCFz7BXU

recent posts

QBUS - MQTT Quick Tutorial

1
11 months ago

DDOS By Web Crawlers

1
1 year ago

Something Given

1
1 year ago

2024 © My Dynamic Production SRL All rights Reserved.