Swap file returns to original size after reboot

Viewed 2554

I am trying to increase swapfile size on my raspberry pi 3. I'm following this guide here on DigitalOcean.

After successfully increasing the file and setting it up using mkswap and swpon commands everything works fine. I even tried filling my ram with random data to see if it is going to use the new swap space and it works perfectly.

However after I reboot my raspberry, swap file returns to the previous (default) size of 100MB. Is there any way to make this change permanent?

I'm running Raspberry pi 3 on Raspbian Jessie.

2 Answers
Related