K
K
Konstantin2015-05-26 13:35:28
linux
Konstantin, 2015-05-26 13:35:28

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

1 answer(s)
A
Alexey Cheremisin, 2015-05-26
@leahch

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 question

Ask a Question

731 491 924 answers to any question