Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
220
rated 0 times [  220] [ 0]  / answers: 1 / hits: 327009  / 1 Year ago, mon, january 16, 2023, 4:39:48

I have some sensitive data in RAM that I prefer not to be on disk. How do I disable swap?



I have more than enough RAM. If RAM consumption gets too high I have no problems with processes being terminated. How do I disable swap?



Note: I do not have a swap partition and this is running in a VM (VMware)


More From » swap

 Answers
1

Using



sudo swapoff -a  


is the usual way to turn off swap, with the swapon -a command used to turn it back on.
See man swapoff for more information about turning off swap for explicit devices.


[#34376] Monday, January 16, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
llianconclad

Total Points: 65
Total Questions: 109
Total Answers: 127

Location: Mali
Member since Fri, Dec 3, 2021
2 Years ago
llianconclad questions
Sun, May 1, 22, 08:47, 2 Years ago
Tue, Nov 8, 22, 02:33, 2 Years ago
Mon, Aug 23, 21, 15:58, 3 Years ago
Sun, Jul 25, 21, 18:19, 3 Years ago
;