Background: in my linux (ubuntu) workstation, I want to run some experiments that allocate more memory than the physical RAM while I do other 'normal' stuff in the GUI. Problem: I have plenty of swap space. When the experiments start swapping, the GUI becomes annoyingly slow. I suspect the problem is that the 'normal' stuff is continuously moved to and from swap space. I would like the OS to only swap experiment memory, and not 'normal'-stuff memory.Question: Can I mark all memory allocated at a certain point (e.g., before starting the experiments) as 'non swappable'? I don't mind if this is done at page or at process level.Thanks for your help!
Can I mark _current_ memory contents as non swappable?
memory;swap