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 ?

bux
  • 606
  • 2
  • 6
  • 20
  • 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 00:56
  • My objective is to ```kill -STOP ``` this process and ```kill -CONT ``` when i need it. But RAM consumtion still problematic. – bux Nov 17 '14 at 08:12

1 Answers1

8

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

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940
  • 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