Linux-Noob Forums
speed up your hard discs - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html)
+--- Forum: Tips and Tricks (https://www.linux-noob.com/forums/forum-59.html)
+---- Forum: Filesystem Management (https://www.linux-noob.com/forums/forum-26.html)
+---- Thread: speed up your hard discs (/thread-2500.html)



speed up your hard discs - anyweb - 2005-08-10


if you are finding things a little slow maybe dma is not enabled on your hard disc

 

to find out if it is or not, try this command as root (assuming /dev/hda is your hard disc, if not try fdisk -l to find out what is your current hd)

 

Quote:[root@localhost ~]# hdparm -d /dev/hda 

/dev/hda:

using_dma    =  0 (off)
 

as we can see here, the hard disc (/dev/hda) is not using DMA, so lets do a quick test before enabling dma.

 

to test the hdd speed try this

 

Quote:[root@localhost ~]# hdparm -t /dev/hda 

/dev/hda:

Timing buffered disk reads: 24 MB in  3.26 seconds = 7.36 MB/sec

[root@localhost ~]#
 

ok, now lets enable the DMA transfer mode.

 



Code:
[root@localhost ~]# hdparm -d 1 /dev/hda

/dev/hda:
setting using_dma to 1 (on)
using_dma    =  1 (on)




 

now check the results of the speed test again

 

Quote:[root@localhost ~]# hdparm -t /dev/hda 

/dev/hda:

Timing buffered disk reads: 52 MB in  3.11 seconds =  16.72 MB/sec

[root@localhost ~]#
 

speaks for itself !

 

cheers

 

anyweb




speed up your hard discs - xDamox - 2005-08-10


Hi,

 

Nice little tip there :)but I would like to note that the /etc/sysconfig/harddisk shows this:

 

# Set this to 1 to enable DMA. This might cause some

# data corruption on certain chipset / hard drive

# combinations. This is used with the "-d" option