Task: we suspend the process, we place it in the swap (that is, we completely remove it from the operational memory. Be sure to completely!). Then, on request, we resume the process (that is, it is completely loaded from the paging file). How to implement it. Support for the question Substitution of data loaded from the paging file in Linux
1 answer
seemingly impossible. In linux, you can only set up swappiness and that's it. go to the SIGSTOP process and wait for it to unload into the swap.
- you will probably have to dig into the kernel, write your module and build the kernel later. but I understand the task is not easy at all - Bambaleila
- How to find out how many pages a process has in a swap, in memory (which pages are there)? Although infa which will give little, but still there is some kind of utility that has memory reading functionality (not virtual, physical)? - Bambaleila
- look at / proc / $ pid / maps - it says what address is located at. Why do you need physical addresses in general? - xmikex
- they are not needed. at first there was the idea that knowing the physical address could be recognized - a page in a swap or still in memory, but a wrong train of thought. - Bambaleila
|