linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Saeed Bishara" <saeed@marvell.com>
To: linux-mm@kvack.org
Cc: Saeed Bishara <saeed@marvell.com>
Subject: using DMA acceleration in copy_from/to_user
Date: Tue, 28 Feb 2006 18:18:06 +0200	[thread overview]
Message-ID: <B9FFC3F97441D04093A504CEA31B7C41881113@msilexch01.marvell.com> (raw)

Hi,
	I trying to improve performance by using DMA engine in
copy_to/from_user functions. My first implementation was based on the
xscale linux project from
http://sourceforge.net/project/showfiles.php?group_id=115074.

Using the DMA really improved the performance, but I think that this
code is buggy since it doesn't ensure that user pages will be pinned
before activating the DMA.

So I tried to use the get_user_pages function for that purpose. But
unfortunately, the performance decreased even less that the original
code (no DMA). I noticed that this function calls flush_dcache_page()
which adds a lot of delay, I created new version of get_user_pages (
called get_user_pages_no_flush) that doesn't call flush_dcache_page; My
copy_from/to_user makes sure to flush the from pointer and to invalidate
the to pointer. The performance improved significantly with the last
change.

However I still have some open questions:
1. Is there any implementation for DMA acceleration other than the
mentioned above project?
2. In some cases the copy_from_user get user address that belongs to
kernel space. Does that make sense?



Saeed Bishara

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

                 reply	other threads:[~2006-02-28 16:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=B9FFC3F97441D04093A504CEA31B7C41881113@msilexch01.marvell.com \
    --to=saeed@marvell.com \
    --cc=linux-mm@kvack.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