mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Oeser <ioe-lkml@rameria.de>
To: linux-kernel@vger.kernel.org
Subject: Re: "Swap in" an entire process?
Date: Fri, 27 Feb 2004 08:05:20 +0100	[thread overview]
Message-ID: <200402270805.32965.ioe-lkml@rameria.de> (raw)
In-Reply-To: <20040225161911.22361.qmail@web21203.mail.yahoo.com>

-----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-----

      reply	other threads:[~2004-02-27  7:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-25 16:19 Konstantin Kudin
2004-02-27  7:05 ` Ingo Oeser [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200402270805.32965.ioe-lkml@rameria.de \
    --to=ioe-lkml@rameria.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®