From: Jeff Dike <jdike@addtoit.com>
To: Henrik Nordstrom <hno@marasystems.com>
Cc: User-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] iptables-restore randomly crashes under UML
Date: Tue, 2 Dec 2003 13:58:39 -0500 [thread overview]
Message-ID: <20031202185839.GG24954@ccure.user-mode-linux.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0312021737230.28431-100000@filer.marasystems.com>
On Tue, Dec 02, 2003 at 05:49:54PM +0100, Henrik Nordstrom wrote:
> Not from what I can tell.. from what I can see when staring at the code
> the code path for flushing the tlb is the same, and the frequency this
> will happen is also the same.. in both it completely remaps the kernel vm
> area on a tlb flush.
Once you're in the tlb flush code, you're right. I was talking about the
problem you're seeing, which is very tt mode-specific.
> How I propose this would be optimized differs slightly in tt or scas mode.
> What I propose is a page table mirror of the kernel vm area related to
> each host vm used by the UML. This page table mirror is simply an array of
> pte_t to the size of the kernel vm area. And only if there is any bitwise
> difference between the pte in init_mm and the page table mirror is the
> kernel vm page remapped and the page table mirror updated with the current
> pte for that page.
I used to do that. The problem with it is that doing lookups and updates
of the shadow page tables involves allocating memory, which can sleep. So,
when you sleep inside schedule, you schedule again, and sleep in get_free_page
again, and that gets ugly rather quickly.
> Doing a lot of munmap/mmap calls is quite expensive for the host.
Yup. This can be optimized somewhat by eliminating some of the munmap parts
of the munmap/mmap pairs.
Jeff
-------------------------------------------------------
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8
_______________________________________________
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:[~2003-12-02 18:46 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-22 13:09 [uml-devel] iptables-restore randomly crashes under UML Henrik Nordstrom
2003-11-23 23:37 ` Henrik Nordstrom
2003-11-26 0:48 ` Adam Heath
2003-11-26 1:42 ` Henrik Nordstrom
2003-11-26 4:11 ` Henrik Nordstrom
2003-12-01 10:43 ` Henrik Nordstrom
2003-12-01 23:47 ` Henrik Nordstrom
2003-12-02 0:55 ` Henrik Nordstrom
2003-12-02 16:42 ` Jeff Dike
2003-12-02 16:49 ` Henrik Nordstrom
2003-12-02 18:58 ` Jeff Dike [this message]
2003-12-02 21:37 ` Henrik Nordstrom
2003-12-02 18:39 ` 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=20031202185839.GG24954@ccure.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=User-mode-linux-devel@lists.sourceforge.net \
--cc=hno@marasystems.com \
/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.