0

I've a very low priority level program who consume large of memory. I need to free RAM for other programs. My objective is to kill -STOP <pid> this process and ```kill -CONT when i need it. But RAM consumtion still problematic.

So:

Is it possible to run program only in swap ? If yes how ?

closed as off-topic by mdpc, kasperd, Andrew Schulman, MadHatter, HBruijn Nov 17 '14 at 23:21

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – kasperd, Andrew Schulman, MadHatter, HBruijn
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Add more RAM to your server...? – Dan Nov 16 '14 at 17:38
  • 2
    Effectively you are asking if you can make a low priority process consume all your I/O. Even if it was possible, it sounds like a silly thing to do. – kasperd Nov 17 '14 at 0:56
  • My objective is to kill -STOP <pid> this process and kill -CONT <pid> when i need it. But RAM consumtion still problematic. – bux Nov 17 '14 at 8:12
8

No. Things that are swapped out are, by definition, not in memory and not eligible to be executed.

  • I read of IBM system I/AS 400 allow to run swapped objects (I agree it isn't really swapped, since it doesn't make distinction between swap and RAM address space). – user2284570 Nov 16 '14 at 20:57

Not the answer you're looking for? Browse other questions tagged or ask your own question.