Enabling DMA on your disk
来源:互联网 发布:c语言小程序100例 编辑:程序博客网 时间:2024/06/12 21:28
Prerequisites
First, you need to be sure that DMA is disabled. You can check this with the following command:
# hdparm /dev/hda
If your harddisk is not hda, for example if you are using a SATA drive, or this is not your first harddisk, then substitute the appropriate device. You should get output similar to:
# hdparm /dev/hda
/dev/hda:
multcount = 0 (off)
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 65535/16/63, sectors = 240121728, start = 0
If using_dma is on (as above) then you are all set. DMA is enabled, and the drive should be operating pretty much as fast as it can go. If this is not the case, then you can read on...
What to do to enable DMA
First, you can hope that your chipset is supported, and try doing:
# hdparm -d 1 /dev/hda
/dev/hda:
setting using_dma to 1 (on)
using_dma = 1 (on)
With luck, this will enable DMA on your disk for you. If so, you are now set, it is possible that your distribution will have some way of setting this on bootup.
If this did not work... don't panic yet. Basically it means that your dom0 kernel is not able to set DMA on your chipset. Try loading the appropriate kernel module, you may have to reboot and disable the "generic" module to ensure that the "generic" module does not claim your chipset.- Enabling DMA on your disk
- Speed Up your Hard Disk on Linux
- Your boot partition is on a disk using the GPT
- Enabling SSL on JBoss
- Enabling Tracing in Your Application
- Enabling Active X on Windows
- Enabling Daemon Coredumps on Linux
- A Recipe for OpenID-Enabling Your Site
- A Recipe for OpenID-Enabling Your Site
- Enabling Process Accounting on Linux HOWTO
- Siebel Admin: Enabling Find on 8.0.0.2
- Enabling NTLMv2 on Windows XP Professional Computers
- Enabling ClearType on Windows CE 6.0
- Cocoa Tip: Enabling “Launch on Startup”
- Enabling L2TP over IPSec on Ubuntu 16.04
- Enabling L2TP over IPSec on Ubuntu 16.04
- Why Partition your Disk Device?
- Building Your VMWare Shared Disk
- 认真生活!
- c语言中的类型转换与复合类型
- java连接常见数据库的连接字符串
- 关于指针
- 创建完全可编辑的 DataGrid
- Enabling DMA on your disk
- 双核技术资料
- 如何实现Asp与Asp.Net共享Session
- 利用处理程序错误攻击(下)
- DataTable,DataView和DataGrid中一些容易混淆的概念
- 关于一些路由协议的漏洞
- How to get xen whole-machine dump image and analyse it prepair
- 10种对于分布式拒绝服务攻击的应急解决方法
- OICQ 99c版本加密方法研究报告