LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   hdd-related download problem(upload 4-5MB/s, download ~1MB/s) (http://www.linuxquestions.org/questions/linux-hardware-18/hdd-related-download-problem-upload-4-5mb-s-download-%7E1mb-s-230223/)

tine 09-13-2004 05:03 PM

hdd-related download problem(upload 4-5MB/s, download ~1MB/s)
 
I have redhat 9.0 as gateway to my w2k. I also have 100Mbit internet connection, so ofcourse i have in redhat two 100Mbit cards and in w2k one.
And network should be working in 100Mbit, because:

[root@separi root]# mii-tool
eth0: negotiated 100baseTx-FD, link ok
eth1: negotiated 100baseTx-FD, link ok


I had one slow hdd (Seagate ST52520A Medalist Pro) in my pentium 200Mhz when i installed redhat 9.0. I was able to dl/ul with that hdd ~1MB/s.
Then i added new little better hdd (IBM Deskstar 16GP 16.8GB (DTTA-351680). I'm quite new to linux so i didn't know, that it's good to edit /etc/fstab after adding new hdd, so at first time i mounted partitions manually and like a miracle i was able to download and upload 4-5MB/s via redhat. THEN i edited /etc/fstab to include these two lines:

LABEL=/home /home ext3 defaults 1 2
LABEL=/work /work ext3 defaults 1 2

those are the new 2 partitions i created. And the hdd works fine. Both hdd's are using mdma2, because the mobo doesn't support udma.

And after i rebooted redhat to check if i had done that editing properly, things got fu***d up.

So now i can upload via redhat from my w2k machine to others in our 100Mbit LAN that 4-5MB/s, but download speed is only ~1MB/s.
So it worked for a while, but not anymore!
And when i plug my w2k straight to internet and not using redhat as gateway i can dl/ul ~8-10MB/s, so the fault is not in windows.

So it seems like when i upload, redhat uses my new&faster hdd and when i download it uses the old&slow hdd or something... So what have i done wrong?
Or how do i fix it?

If ya need more info, please tell

Electro 09-13-2004 05:28 PM

As root or su, type "hdparm -v /dev/hd[a-z]" and post the output. If you do not have hdparm you will have to find it and install. In your fstab try not using labels because it will get confusing if you are going to use Knoppix. You can get a new IDE controller if you want input and output speeds be around 20 - 30 megabytes per second.

tine 09-14-2004 03:48 AM

Okey, here's the outputs hda is the slow hdd and hdc is the faster one.

[root@separi root]# hdparm -v /dev/hda

/dev/hda:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 621/128/63, sectors = 5009760, start = 0


[root@separi root]# hdparm -v /dev/hdc

/dev/hdc:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 2055/255/63, sectors = 33022080, start = 0

tine 09-14-2004 04:07 AM

And i think, i'm not able to get new IDE controller for my mobo, because the motherboard in p200 is so extraordinary
I can't post urls yet, but first link in google with searchterm: 5I-VX1B

Electro 09-15-2004 03:06 PM

You can try to enable 32-bit I/O and unmaskirq with hdparm, but do it one setting and one hard drive at a time. You do not want your computer to freeze like Windows 2000.

32-bit I/O:
hdparm -c 1 /dev/hda
hdparm -c 1 /dev/hdc

Then to see the estimate speeds do:
hdparm -Tt /dev/hda
hdparm -Tt /dev/hdc

unmaskirq:
hdparm -u 1 /dev/hda
hdparm -u 1 /dev/hda

Then to see the estimate speeds do:
hdparm -Tt /dev/hda
hdparm -Tt /dev/hdc


You can get an additional IDE controller, but you need to make sure you have an opened PCI slot. You can try to find an ISA NIC card if your NIC is taking up a PCI slot. ISA has a throughput of about 10 megabytes per second. The NIC will be fine on a ISA slot.

I suggest searching the internet to optimize the kernel to work more efficiently for LAN.


All times are GMT -5. The time now is 10:28 AM.