A swap file can be very handy in the GameShell, especially when compiling new games… I’m still fairly new to Linux. I was considering adding a swap partition, but remembering the hassle when expanding the partition in CW 1.0, I decided that a swap file would be the simpler and safer route to go. A little research resulted in the following procedure:
Thank you so much for this!! This is a much needed tutorial that anyone compiling things should be aware of, especially when say, rebuilding Retroarch. No longer will we need to reduce the -j4 jobs down to two!
I’d be happy to have this almost as standard. Or even have a scripted toggle in settings to enable/disable the swap file.
Also haha I had no idea you were new to Linux. I just assumed you were a coder. Thanks again! I am bookmarking this!
Hehe… I was a coder for Mac OS. I have a fair amount of experience with Darwin, Apple’s variant of Unix; Very similar, but not quite Linux. It does make it easier for me to understand what I’m dealing with, but crippling when I expect something to work the same…
Since I wasn’t sure about having the swap on all the time, I created four tiny scripts based on your instructions. I’ll share here in case anyone wants similar reusable tools. (Your step 5 would only work if in that same swap directory from before.)