DMA features in Debian, improve hard disk read and write speed

xiaoxiao2021-03-06  76

1. Install HDPARM Debian: ~ # Apt-get install hdparm manual boots DMA: Debian: ~ # Hdparm -d1 / dev / hda This assumes that you want to open the DMA disk is HDA 2. Automatically open the disk DMA A when the system is started. In /etc/init.d/ directory, the new file DMA-START.SH content is as follows: #! / Bin / sh #this script start ATA100 DMA HDPARM -D1 / DEV / HDA B. Under /etc/rc2.d/ Built a file that connects to the previously built DEBIAN: ~ # ln -s /etc/init.d/dma-start.sh /etc/rc2.d/s95dma-start.sh 3. Comparison, my read disk is improved 20 times. Debian: ~ # hdparm -d0 / dev / hda / dev / hda: setting using_dma to 0 (off) Using_dma = 0 (OFF) Debian: ~ # hdparm -t / dev / hda / dev / hda: Timing Buffered Disk Reads: 10 MB in 3.36 Seconds = 2.98 MB / Seconds = # hdparm -d1 / dev / hda / dev / hda: setting using_dma to 1 (on) USING_DMA = 1 (on) debian: ~ # hdparm -t / dev / hda / dev / hda: Timing Buffered Disk Reads: 144 MB in 3.02 Seconds = 47.66 MB / Seconds = 47.66 MB / SEC

转载请注明原文地址:https://www.9cbs.com/read-120814.html

New Post(0)