I think it was this post:
To create a swap file: Chapter 15. Getting started with swap | Managing storage devices | Red Hat Enterprise Linux | 9 | Red Hat Documentation