From: Blaisorblade <blaisorblade@yahoo.it>
To: Benjamin LaHaise <bcrl@kvack.org>
Cc: LKML <linux-kernel@vger.kernel.org>, Jeff Dike <jdike@addtoit.com>
Subject: Re: [patch 1/1] uml: fixes performance regression in activate_mm and thus exec()
Date: Tue, 23 Aug 2005 11:57:15 +0200 [thread overview]
Message-ID: <200508231157.16118.blaisorblade@yahoo.it> (raw)
In-Reply-To: <20050812201145.GA10796@kvack.org>
On Friday 12 August 2005 22:11, Benjamin LaHaise wrote:
> Is it possible to get an optimization for this case where uml can execute
> the kernel thread in the same process as it normally executes kernel mode
> for the given mm? AIO performance on uml is pretty bad when it has to
> access userspace.
I thought to another solution to that, i.e. use get_user_pages() and kmap()
the resulting pages, like other kernel threads do when accessing userspace
context.
However, by looking at the code (starting from aio_pread), maybe AIO reuses
too much normal I/O code to do this.
Actually, the changes wouldn't maybe be so intrusive, they're limited to
__generic_file_aio_read (conditionalize access_ok, and change the setup of
read_descriptor_t) and file_read_actor, plus the write side, plus anything
not using pagecache - generic_file_aio_read.
Having a different actor for AIO would work. The real problem is adding a
field to iovec to specify whether we're passing in a page array (given by
get_user_pages) rather than a void __user *, or passing an iovec "wrapper"
structure, which can carry either a normal iovec or the new kind of
descriptor.
However, this does not sound like too much added complexity. Instead, allowing
to move a kernel thread elsewhere on the host is a lot more difficult.
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
prev parent reply other threads:[~2005-08-26 15:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-12 17:59 blaisorblade
[not found] ` <20050812201145.GA10796@kvack.org>
2005-08-23 9:57 ` Blaisorblade [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=200508231157.16118.blaisorblade@yahoo.it \
--to=blaisorblade@yahoo.it \
--cc=bcrl@kvack.org \
--cc=jdike@addtoit.com \
--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®