From: Jeff Dike <jdike@addtoit.com>
To: "Sven Köhler" <skoehler@upb.de>
Cc: user-mode-linux-user@lists.sourceforge.net,
user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] Re: [uml-user] Network lags
Date: Sat, 10 Apr 2004 13:07:07 -0400 [thread overview]
Message-ID: <20040410170707.GA6492@ccure.user-mode-linux.org> (raw)
In-Reply-To: <4077FDF9.7070707@upb.de>
On Sat, Apr 10, 2004 at 04:00:25PM +0200, Sven Köhler wrote:
> what's so bad about it?
It can put the host at risk. There's a VM system for a reason, and it needs
swap in order to be able to back out of memory shortages. mlocking large
amounts of memory subverts that and increases the possibility of deadlocking.
There are only a few good reasons for mlocking, and performance isn't one of
them:
when something would break horribly if a page got swapped, i.e. pending
DMA or directIO into it
security - gpg wants to mlock a page so it can be sure that secrets
on it won't be written to disk
Those only involve a page at a time, and don't possibly endanger the system.
The amounts of mlocked memory you're talking about are so large that they
could endanger the system.
> well, what do you mean with managing the host memory? will be some kind
> tool or built-in option of the UML-kernel?
Both. There is pluggable memory in UML, and a tool on the host to manage
memory by moving memory between UMLs and between UMLs and the host.
So, this daemon would be watching memory use on the host and the UMLs, and
if it saw the host running short, it would find an idle UML and take some
memory away from it:
uml_mconsole <idle_umid> config mem=-32M
This would free the memory to the host, and pull it away from swap.
If the host was fine, but another UML was short of memory, it would then
give that memory to the busy UML:
uml_mconsole <busy_umid> config mem+=32M
Jeff
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&opÌk
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2004-04-10 17:07 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.59.9.0404091209570.10714@hathi.bw-networx.net>
[not found] ` <185d01c41e23$5996cc00$2000000a@schlepptopp>
2004-04-09 12:47 ` [uml-devel] Re: [uml-user] Network lags roland
2004-04-09 16:26 ` Jeff Dike
2004-04-09 18:33 ` [uml-devel] uml responsivenes or "AS vs DEADLINE Scheduler on uml-host" - was: " roland
2004-04-10 12:28 ` BlaisorBlade
2004-04-13 21:26 ` roland
2004-04-14 1:02 ` Henrik Nordstrom
[not found] ` <c58kbu$el1$1@sea.gmane.org>
2004-04-10 14:08 ` [uml-devel] " Jeff Dike
2004-04-10 14:00 ` Sven Köhler
2004-04-10 17:07 ` Jeff Dike [this message]
2004-04-10 21:22 ` Sven Köhler
2004-04-10 23:29 ` Henrik Nordstrom
2004-04-11 3:45 ` attriel
2004-04-15 0:31 ` roland
2004-04-15 12:01 ` David Cannings
[not found] ` <407EADE0.8010308@cox.net>
2004-04-15 21:11 ` roland
2004-04-16 15:12 ` Matthew Bloch
2004-04-18 10:54 ` roland
2004-04-10 14:50 ` [uml-devel] Re: V=R Michael Koehne
2004-04-11 16:54 ` BlaisorBlade
2004-04-11 17:17 ` Nicholas E. Walker
2004-04-10 15:12 ` [uml-devel] Re: [uml-user] Network lags Nicholas E. Walker
2004-04-10 16:46 ` Steven Pritchard
2004-04-10 23:41 ` Henrik Nordstrom
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=20040410170707.GA6492@ccure.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=skoehler@upb.de \
--cc=user-mode-linux-devel@lists.sourceforge.net \
--cc=user-mode-linux-user@lists.sourceforge.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.