LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-04-2011, 01:54 AM   #1
leechaotang
LQ Newbie
 
Registered: Aug 2011
Posts: 10

Rep: Reputation: Disabled
How to allocate LARGE (more than 16M) DMA memory?


Hi,

In Fedora 15, how I allocate LARGE (more than 16M) DMA memory? My device is PCIe bus.

I try the dma_alloc_coherent and pci_alloc_consistent, it seems the two functions can not work more than 4M.

What kernel parameter(s) can let me allocate LARGE DMA memory?


Thanks!
 
Old 10-04-2011, 02:07 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Dma32 ?

Last edited by syg00; 10-04-2011 at 02:09 AM. Reason: typo
 
Old 10-04-2011, 02:13 AM   #3
leechaotang
LQ Newbie
 
Registered: Aug 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi,

I did more test, I can allocate 4M for 4 times successfully but can not allocate a 16M .....

Why? Anything I can configure the Linux ...
 
Old 10-05-2011, 06:04 AM   #4
robvoo
LQ Newbie
 
Registered: Jul 2009
Distribution: debian, ubuntu
Posts: 22

Rep: Reputation: 2
buddyinfo

Hi try this: cat /proc/buddyinfo

It will display how manyblocks are available at which NUMA node.
Look on the internet on how to interpretate the data.
The right most numbers are the 4MB DMA blocks.

After a fresh reboot the most 4MB blocks are available, don't
know if a function exists to gather smaller blocks into a large one
look at these links:

http://lwn.net/Articles/211505/
http://puschitz.com/pblog/?p=28
 
  


Reply



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
Unable to allocate more than4MB DMA memory rajeshverma38 Linux - Kernel 0 02-01-2011 04:41 AM
request_mem_region kernel function and 15-16M memory hole trifola Linux - Kernel 0 01-04-2008 02:16 AM
Where is the missing 4M memory in my 16M embedded linux system?? ycvlee Linux - Kernel 0 10-18-2007 06:48 AM
How to allocate DMA-eable memory from Userland nizamy Programming 2 10-14-2006 02:15 AM
ndiswrapper troubles: "Failed to allocate DMA coherent memory." Oodini Linux - Wireless Networking 1 01-12-2005 12:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:03 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration