LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 11-17-2010, 03:45 PM   #1
123steve123
LQ Newbie
 
Registered: Nov 2010
Posts: 3

Rep: Reputation: 0
application needs fast access to physical memory


My application needs a fast way to access a specific physical DDR memory region. The application runs on an MPC8548 PowerPC which has an MMU. I've tried two approaches that are typical for Linux, mmap() and using a kernel module that implements read()/write() into this region and I'm finding that performance is very slow for both. It's a couple orders of magnitude slower than, for example, copying a large buffer from one place in the application's virtual memory to another place in the application's virtual memory.

I'm exploring other alternatives that includes:
1. Port to uClinux which may allow an application more direct access into kernel/physical memory
2. Modify the MMU somehow to allow access by the application to physical memory at a specific range of addresses

Both approaches appear to be fairly non-trivial. Is there another approach that should be considered?
 
Old 11-17-2010, 05:30 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
It sounds like you're talking about doing DMA into physical RAM. The best advice I can offer is to look at how DMA is implemented for drivers, as in http://www.xml.com/ldd/chapter/book/ch13.html.
 
Old 11-17-2010, 05:48 PM   #3
123steve123
LQ Newbie
 
Registered: Nov 2010
Posts: 3

Original Poster
Rep: Reputation: 0
I'm looking for a memory transfer mechanism between a user application and physical memory. DMA as described by the Linux Device Drivers book details a mechanism to allow other hardware peripherals access to CPU memory. In other words, it's a hardware to hardware transfer instead of a software (application in this case) to hardware transfer.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
application needs fast access to physical memory 123steve123 Linux - Embedded & Single-board computer 1 11-17-2010 03:59 PM
Physical Memory leaked by user application process Is not reclaimed back after exit ravikumarv Linux - Software 2 05-02-2010 11:34 PM
Physical Memory leaked by user application process Is not reclaimed back after exit ravikumarv Linux - Newbie 1 05-02-2010 11:31 PM
How to access physical memory in C? cyu021 Programming 6 03-27-2005 04:16 AM


All times are GMT -5. The time now is 05:38 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration