lkml.org 
[lkml]   [2004]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: "Swap in" an entire process?
Date
-----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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.044 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site