mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* "Swap in" an entire process?
@ 2004-02-25 16:19 Konstantin Kudin
  2004-02-27  7:05 ` Ingo Oeser
  0 siblings, 1 reply; 2+ messages in thread
From: Konstantin Kudin @ 2004-02-25 16:19 UTC (permalink / raw)
  To: linux-kernel

 I have a question. Is there some way under linux to
"swap in" an entire process that got partially swapped
out?

 Basically, I want all the pages for a given PID
returned to RAM if they were paged out.

 And vice versa, is there a way to "swap out" a
process by some command?

 Thanks!

 Konstantin

__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

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

* Re: "Swap in" an entire process?
  2004-02-25 16:19 "Swap in" an entire process? Konstantin Kudin
@ 2004-02-27  7:05 ` Ingo Oeser
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Oeser @ 2004-02-27  7:05 UTC (permalink / raw)
  To: linux-kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Konstantin,

On Wednesday 25 February 2004 17:19, Konstantin Kudin wrote:
>  I have a question. Is there some way under linux to
> "swap in" an entire process that got partially swapped
> out?
> 
>  Basically, I want all the pages for a given PID
> returned to RAM if they were paged out.
 
The process to swap in can do that with mlockall().

>  And vice versa, is there a way to "swap out" a
> process by some command?

No, but munlockall will allow it to be swapped
again. It will swap out while sleeping gradually, since it dirties no
pages at all.

But there is no external trigger mechanism for this in Linux right now.


Regards

Ingo Oeser

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAPuw8U56oYWuOrkARAicaAJ9UlEjG79mSmEhYfYgrQHeKRayHcQCg33oZ
fxMdDl4zJ2eqkenp7oIFk0U=
=uZpu
-----END PGP SIGNATURE-----

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

end of thread, other threads:[~2004-02-27  7:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-25 16:19 "Swap in" an entire process? Konstantin Kudin
2004-02-27  7:05 ` Ingo Oeser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®