linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Is there a way to force suspended process's memory to swap space?
@ 2009-04-14  8:03 Mingliang
  2009-04-15  3:28 ` Glynn Clements
  0 siblings, 1 reply; 2+ messages in thread
From: Mingliang @ 2009-04-14  8:03 UTC (permalink / raw)
  To: linux-c-programming

Hi,

For example, my process continuously consumes 30MB memory.
$ ps aux|grep job
joe      17941  0.0  0.3 33104 31096 pts/16  S    15:50   0:00 ./job 30
                                           ^^^^^^^

Now I stop it
$kill -STOP  17941
[1]+  Stopped                 ./job 30

$ ps aux|grep job
joe      17941  0.0  0.3 33104 31096 pts/16  T    15:50   0:00 ./job 30

So it doesn't consume CPU time any more, BUT is there also a way to
swap out the 30MB memory?
Can it be accomplished manually (some signal, maybe?) or is it only
the kernel who can make decision?

Any of your suggestion is much appreciated.

Regards,
Joe

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-15  3:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-14  8:03 Is there a way to force suspended process's memory to swap space? Mingliang
2009-04-15  3:28 ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).