Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My Stystem:
AMD Athlon 64 3200
1Ghz RAM
Slackware 64bits (Slamd64)
Kernel: 2.6.17-rc5 (I had the same problem with kernel 2.6.16)
I have 2 HDD:
1. 80GB IDE Maxtor 7200rpm (as primary master)
2. 250GB IDE Maxtor 7200rpm (as secundary master)
(same IDE cable)
My partitions are:
hda1 NTFS 10487.24
hda2 Linux ext3 10487.24
hda3 Linux ext3 40493.06
hdb1 Linux ext3 62512.13
hdb2 NTFS 62512.13
hdb3 Linux ext3 62512.13
hdb4 Linux ext3 62520.36
running:
$ hdparm -Tt /dev/hda
/dev/hda:
Timing cached reads: 1212 MB in 2.00 seconds = 605.93 MB/sec
Timing buffered disk reads: 6 MB in 3.21 seconds = 1.87 MB/sec
$ hdparm -Tt /dev/hdb
/dev/hdb:
Timing cached reads: 1512 MB in 2.02 seconds = 748.62 MB/sec
Timing buffered disk reads: 6 MB in 3.43 seconds = 1.75 MB/sec
The partition hda2 was formated by the system when I installed Linux at first time. The other Linux partitions, I formated like this:
mkfs.ext3 -m 0 /dev/hda3
mkfs.ext3 -m 0 -T largefiles4 /dev/hdb1
mkfs.ext3 -m 0 -T largefiles4 /dev/hdb3
mkfs.ext3 -m 0 -T largefiles4 /dev/hdb4
(because I use that space mainly for videos and movies).
I also tried without the "-m 0" but I had the same performance but 5% less space.
WHEN COPYING... (with cp command)
small files, I have no problem.
60MB file FROM:
hda3 to hda3: 1 min 10 sec (877 KB/s)
hda3 to hda2: 30 sec (2MB /s)
hda2 to hdb1: 35 sec (1.7MB /s)
hdb1 to hdb4: 40 sec (1.5MB /s)
hdb4 to hdb3: 35 sec (2MB /s)
hdb4 to hdb4: 40 sec (1.5MB /s)
hdb4 to hda2: 35 sec (2MB /s)
hda2 to hda2: 30 sec (2MB /s)
Sometimes, when moving large files I get up to 600 KB/s. (using kde file manager)
I don't know if these speeds are correct, but in windows copying largefiles, from one linux partition to other linux partition (using ext3 library on windows) it spend less time.
I don't care too much about the speed or time, but the main problem, I think, is that all my system slows down. For example, CPU usage during copy process is about from 30% to 90%, but I can not use normally my computer, like if I was executing a huge process (even if I use the "nice" command).
Yes, my using_dma was off... (but something strange is happening)
I enable that kernel option (because it was disabled)
Then, I enabled:
hdparm -d1 -u1 -X udma5 /dev/hda (same for /dev/hdb)
/dev/hda:
setting unmaskirq to 1 (on)
setting using_dma to 1 (on)
setting xfermode to 69 (UltraDMA mode5)
unmaskirq = 1 (on)
using_dma = 1 (on)
Now I get:
hdparm -tT /dev/hda
/dev/hda:
Timing cached reads: 1884 MB in 2.00 seconds = 940.45 MB/sec
Timing buffered disk reads: 86 MB in 3.07 seconds = 28.05 MB/sec
hdparm -tT /dev/hdb
/dev/hdb:
Timing cached reads: 1932 MB in 2.00 seconds = 964.96 MB/sec
Timing buffered disk reads: 78 MB in 3.02 seconds = 25.83 MB/sec
When copying the same 60MB file, It spend 40 secs (about the same as before)
but the strange thing is that after copying from hda3 to hda3, I get this:
hdparm -tT /dev/hda
/dev/hda:
Timing cached reads: 1964 MB in 2.00 seconds = 980.41 MB/sec
Timing buffered disk reads: 6 MB in 3.92 seconds = 1.53 MB/sec
And when running "hdparm -d /dev/hda"
/dev/hda:
using_dma = 0 (off)
So, why dma is turning off by itself? (dmesg is not displaying anything)
FIXED: I used -X udma2 instead of udma5 (even though my hdd support it).
by the way, in slackware, where I configure hdparm to be initialized automatically?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.