linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Huge pages for device drivers
@ 2009-06-12  4:41 Alexey Korolev
  2009-06-12 14:30 ` Mel Gorman
  0 siblings, 1 reply; 4+ messages in thread
From: Alexey Korolev @ 2009-06-12  4:41 UTC (permalink / raw)
  To: linux-mm, Mel Gorman, KAMEZAWA Hiroyuki

Hi,

I'm investigating the possibility to involve huge pages mappings in
order to increase data analysing performance in case of device
drivers.
The model we have is more or less common: We have driver which
allocates memory and configures DMA. This memory is then shared to
user mode applications to allow user-mode daemons to analyse and
process the data.

In this case Huge TLB could be quite useful because DMA buffers are
large ~64MB - 1024MB and desired performance of data analysing in user
mode is huge ~10Gb/s.

If I properly understood the code the only available approach is :
Allocate huge page memory in user mode application. Then supply it to
driver. Then do magic to obtain physical address and try to configure
DMAs. But this approach leads to big bunch of problems because: 1.
Virtual address can be remapped to another physical address. 2. It is
necessary to manage GFP flags manually (GFP_DMA32 must be set).

So the question I have:
1. Is it definitely the only way to provide huge page mappings in this
case.  May be I miss something.
2. Is there any plans to provide interfaces for device drivers to map
huge pages? What are possible issues to have it?


Thanks,
Alexey

--
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] 4+ messages in thread

end of thread, other threads:[~2009-06-15  9:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-12  4:41 Huge pages for device drivers Alexey Korolev
2009-06-12 14:30 ` Mel Gorman
2009-06-15  6:58   ` Alexey Korolev
2009-06-15  9:23     ` Mel Gorman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).