I have 8Gb of ram, and I believe that it is enough to write temporary data without writing on HDD. How do I instruct Kali to:

1. not use the swap partition?

2. use swap only when the rams are full?

Sorry in advance if it is already the way Kali's mechanics operate (only use rams, and then use the swap partition as the last resort), but I have no way to know that it is the case.