linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [RFC][PATCH 0/2] HugeTLB mapping for drivers
@ 2009-07-13 22:17 Alexey Korolev
  0 siblings, 0 replies; only message in thread
From: Alexey Korolev @ 2009-07-13 22:17 UTC (permalink / raw)
  To: Mel Gorman, linux-mm

Hi,

The patch listed below provides device drivers with possibility to map
memory regions to user mode via HTLB interfaces.

This post is continuation of the topic being discussed here
http://marc.info/?l=linux-mm&m=124478168514639&w=2 . 
Thanks to Mel who gave good advice and code prototype. Couple weeks were
spent to understand how hugetlb works and initial version of the patch
is done. 

Why we need it? It is a common practice for device drivers to map memory
regions to user-space to allow data handling in user mode. (There are
plenty of examples in driver folder). Involving hugetlb mapping may
bring performance gain if mapped region is relatively large. Our tests
showed that it is possible to gain up to 7% performance gain if htlb
mapping is enabled. In my case involving hugetlb starts to make sense if
buffer is more or equal to 4MB. Since devices throughput grow up there
are more and more reasons to involve huge pages to remap very large mem regions.

The following messages contain patch and a simple driver example.
Patch has early revision. There are many doubtful places. Your critics
and suggestions are welocme.

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] only message in thread

only message in thread, other threads:[~2009-07-13 21:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-13 22:17 [RFC][PATCH 0/2] HugeTLB mapping for drivers Alexey Korolev

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).