* using DMA acceleration in copy_from/to_user
@ 2006-02-28 16:18 Saeed Bishara
0 siblings, 0 replies; only message in thread
From: Saeed Bishara @ 2006-02-28 16:18 UTC (permalink / raw)
To: linux-mm; +Cc: Saeed Bishara
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>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-02-28 16:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-28 16:18 using DMA acceleration in copy_from/to_user Saeed Bishara
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox