Re: "Swap in" an entire process?
From: Ingo Oeser
Date: Fri Feb 27 2004 - 02:11:18 EST
-----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-----
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/