LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-04-2009, 04:27 PM   #1
naresh.odu
LQ Newbie
 
Registered: May 2009
Posts: 4

Rep: Reputation: 0
Smile Enable DMA (direct memory access) for external esata


Hello : Its a beautiful day

I am using Fedora 10 and have been trying to enable the DMA for the data transfer through esata (3Gbps). How do it make it happen.

Linux Kernel: 2.6.27.21-170.2.56.fc10.x86_64 #1 SMP x86_64 x86_64 x86_64 GNU/Linux)

I have used hdparm /dev/sdf and here it is:

[root@Summa ~]# hdparm /dev/sdf

/dev/sdf:
IO_support = 0 (default)
16-bit)
HDIO_GET_UNMASKINTR failed: Inappropriate ioctl for device
HDIO_GET_DMA failed: Inappropriate ioctl for device
HDIO_GET_KEEPSETTINGS failed: Inappropriate ioctl for device
readonly = 0 (off)
readahead = 256 (on)
geometry = 60801/255/63, sectors = 976773168, start = 0
[root@Summa ~]#

If your answer is sdparm (there is no DMA on/off option available in sdparm) please let me the steps that I have to go through for enabling the DMA.


I am trying to figure out. Any idea would be greatly appreciated.

Thank you.
NR
 
Old 05-05-2009, 09:03 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The connection between esata and sata are the same. There isn't a dma setting to disable or enable. AFAIK, the dma is in the controllers and the output is streamed (serialized). If you have a Western Digital drive, you could check the setting of the 1.5/3.0 GB setting.
 
Old 05-05-2009, 09:10 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,656

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by naresh.odu View Post
Hello : Its a beautiful day

I am using Fedora 10 and have been trying to enable the DMA for the data transfer through esata (3Gbps). How do it make it happen.

Linux Kernel: 2.6.27.21-170.2.56.fc10.x86_64 #1 SMP x86_64 x86_64 x86_64 GNU/Linux)

I have used hdparm /dev/sdf and here it is:

[root@Summa ~]# hdparm /dev/sdf

/dev/sdf:
IO_support = 0 (default)
16-bit)
HDIO_GET_UNMASKINTR failed: Inappropriate ioctl for device
HDIO_GET_DMA failed: Inappropriate ioctl for device
HDIO_GET_KEEPSETTINGS failed: Inappropriate ioctl for device
readonly = 0 (off)
readahead = 256 (on)
geometry = 60801/255/63, sectors = 976773168, start = 0
[root@Summa ~]#

If your answer is sdparm (there is no DMA on/off option available in sdparm) please let me the steps that I have to go through for enabling the DMA.
hdparm does not work with SCSI or SATA disks...look for something similar to this in dmesg:

Code:
scsi 2:0:0:0: Direct-Access ATA
If you see it, you already have DMA enabled.
 
Old 05-06-2009, 11:21 AM   #4
naresh.odu
LQ Newbie
 
Registered: May 2009
Posts: 4

Original Poster
Rep: Reputation: 0
The
scsi 2:0:0:0: Direct-Access ATA

It is enabled. So, if the DMA is enabled, When I check my CPU utilization during the data transfer it is ranging frm 73% to 80% throughout the transfer (with no other application running other than the transfer). Why is this happening?. Where as in Windows Vista its taking much lesser time around 40 % less time

Can you suggest me if there is any means that I can Improve the performance of this file download speed (reduce time to download) on fedora 10.

Thank you.
NR
 
Old 05-06-2009, 01:57 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,656

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by naresh.odu View Post
The
scsi 2:0:0:0: Direct-Access ATA

It is enabled. So, if the DMA is enabled, When I check my CPU utilization during the data transfer it is ranging frm 73% to 80% throughout the transfer (with no other application running other than the transfer). Why is this happening?. Where as in Windows Vista its taking much lesser time around 40 % less time

Can you suggest me if there is any means that I can Improve the performance of this file download speed (reduce time to download) on fedora 10.

Thank you.
NR
Perhaps we can, if you actually told us something about the "data transfer". From where to where? Over what medium?
 
Old 05-06-2009, 07:06 PM   #6
naresh.odu
LQ Newbie
 
Registered: May 2009
Posts: 4

Original Poster
Rep: Reputation: 0
The file size of 20GB should be transfered from the System hard drive to the External Disk (Seagate or Western Digital either 7200 or 5400 rpm with esata) via the esata port connected with an esata cable. Is it possible to utilize the potential of the esata (3Gbps) and Fedora 10. I hope there is something that is being restricted (kind of enable/disable DMA, write speed, etc) by fedora.

Can you let me know: How to improve the performance (any possible way)? and what is that , that has the extra feature in Vista than Fedora 10 in transferring large files to an external hard disk? why not Fedora 10.

If the DMA is enabled why is the CPU usage factor higher? (I hope this should not be the case, the basic meaning of the DMA is gone). Correct me if I am wrong

Thank you
NR

Last edited by naresh.odu; 05-06-2009 at 09:20 PM.
 
Old 05-07-2009, 01:16 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,656

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by naresh.odu View Post
The file size of 20GB should be transfered from the System hard drive to the External Disk (Seagate or Western Digital either 7200 or 5400 rpm with esata) via the esata port connected with an esata cable. Is it possible to utilize the potential of the esata (3Gbps) and Fedora 10. I hope there is something that is being restricted (kind of enable/disable DMA, write speed, etc) by fedora.

Can you let me know: How to improve the performance (any possible way)? and what is that , that has the extra feature in Vista than Fedora 10 in transferring large files to an external hard disk? why not Fedora 10.

If the DMA is enabled why is the CPU usage factor higher? (I hope this should not be the case, the basic meaning of the DMA is gone). Correct me if I am wrong

Thank you
NR
Well, how are you copying the file? What utility? Are you doing compression during the move, just a straight copy, file move, what?? Is the system drive and the esata drive on the same controller??

Lots of things affect this....
 
Old 05-07-2009, 01:27 PM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
What chipset is your motherboard running? When Fedora switched to libata (no more hdX drives) there were some issues, that have still not been cleared up. The Nforce 4 chisets are one of the many sets that are affected by this.
 
Old 05-08-2009, 01:54 PM   #9
naresh.odu
LQ Newbie
 
Registered: May 2009
Posts: 4

Original Poster
Rep: Reputation: 0
I am copying the file from the system hard drive and pasting it onto externally connected Western Digital hard disk. I have no utility for that. I have looked around for an alternative in linux (Tera copy, kill copy, fast copy, rich copy--these are for windows - I hope they use them over the network, but I don't know whether they would fetch the kind of transfer I am looking for?)
can you let suggest me the best utility for Fedora 10.
Is there anything that sounds like Multi threaded copying onto the hard drive?

There is no Compression on the fly...It is just a straight copy.

Yes, The system drive and the esata drive are on the same controller.

@lazlow => Motherboard MSI X58 pro
 
Old 05-08-2009, 02:08 PM   #10
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
This bug MAY (or may not) be causing your issue. The core of the bug seems to be transferring from one type of drive to another. Since your motherboard uses a separate chip to drive the esata it may also effect you. The bug was still active on the initial release of F10. I have side stepped the issue by switching to Centos5(RHEL5 with logos removed). Bugs of this nature are why RHEL6 has been pushed back repeatedly (RHEL is based on Fedora, RHEL6 was initially scheduled to be based on F9, hopefully it will be based on F11 assuming bugs are fixed).
 
  


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
Problem with esata pci card and external drive dollface Linux - Newbie 2 01-02-2009 12:18 AM
External eSata ZFS raid possible? kebabbert Solaris / OpenSolaris 5 06-06-2007 02:32 AM
SUSE 9.3 and the PC's DMA (Direct Memory Access) langbein SUSE / openSUSE 26 11-22-2005 12:06 PM
Direct memory access through C/C++ NCC-1701&NCC-1701-D Programming 3 09-14-2005 03:20 PM
Direct Memory Access with C NCC-1701&NCC-1701-D Programming 12 06-20-2005 12:26 AM

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

All times are GMT -5. The time now is 07:35 AM.

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