You may create a special swap-partition.
In fdisk, you specify the partition-type 82 (Linux-swap) and call mkswap (man mkswap for correct parameters).
My old PC has on 48 Mb RAM.
I have done a HD install.
Before KDE starts, it tells me that there is not
enough memory and a swap file can be
created on a DOS partition.
I let it create a 300 Mb swap file in a 600 MB DOS partition.
This works fine. I use the PC for a few hours and then I shut down the PC.
Come back a few hours later and again - Before KDE starts,
it tells me that there is not enough memory and a swap
file can be created on a DOS partition. What happened
to the 300 Mb swap file we just created?
How can I make a swap file permament?
Do I need to use the DOS partition?
Can I create a swap file in the current ext3 partition?
You may create a special swap-partition.
In fdisk, you specify the partition-type 82 (Linux-swap) and call mkswap (man mkswap for correct parameters).
Thanks. That worked.

Netac DDR4 32GB 16GB DDR4 3200MHz UDIMM C16 Desktop Internal Memory RAM Kit
$105.99
Corsair CMK32GX4M2B3000C15 Vengeance LPX DDR4 3000mhz Memory Kit - 32GB (2x16GB)
$169.95
Samsung M393A8G40AB2-CWE 64GB 2RX4 PC4-25600 (DDR4-3200) Memory - Tested
$569.00
Samsung M393A8G40AB2-CWECO 64GB 2Rx4 DDR4-3200AA ECC REG Server Memory RAM
$599.99
Hynix 16GB 2Rx4 PC3L-10600R-9-12 -E2 Server RAM (Lot of 43) 688GB Total
$750.00
Samsung 96GB LPCAMM2 PC5 9600 FE1 E1 LPDDR5X CAMM2 M561K6LC3CL1-CCV DDR5 Memory
$2150.00
Lot of 8x 32GB PC4-2133P-LD0-10 RAM Memory
$900.00
RAMAXEL Lenovo 32GB LPDDR5X CAMM2 7500MHz Laptop RAM | UNTESTED
$445.00
Samsung 128GB PC4-25600 (DDR4-3200) RDIMM ECC Memory - M393A4K40EB3-CWECO
$1500.00
Micron 32GB DDR5 ECC RDIMM PC5-6400B 2Rx8 MTC20F2085S1RC64BH1 3SF
$1100.00