Answer the question
In order to leave comments, you need to log in
How to force a process to use swap?
The point is.
You need to reload the process in terms of RAM so that it starts using swap. Is there an artificial way to do this, besides reducing the ram?
Answer the question
In order to leave comments, you need to log in
Well, malloc is not enough! it is also desirable to refer to the allocated memory address, since Linux has lazy initialization. But calloc () in the cycle is the most it, checked!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question