Sounds good! Just for the record
- you could add more swap, even as the task is running, if vmstat or free (or top) show that swap is getting exhausted.
- if you’re careful, you could probably do a reversible temporary upgrade to a larger-RAM instance, which will cost a little money, but need only be in place for a few hours. It’s important not to move to a larger-disk instance as that is not reversible. (More RAM should allow things to run at full speed, whereas modest RAM and lots of swap might have a performance penalty, and the task will take longer to finish.)