LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Copy files from partition to partition too slow, SATA hard disk.What should I do£¿ (https://www.linuxquestions.org/questions/suse-opensuse-60/copy-files-from-partition-to-partition-too-slow-sata-hard-disk-what-should-i-do%A3%BF-377370/)

Ryanlee 10-27-2005 08:01 AM

Copy files from partition to partition too slow, SATA hard disk.What should I do£¿
 
I have 3 partitions in linux, all reiser format.
Copy small file is ok. Copy big files from partition to partiton, like 1.4G dvdrip movie :
It's about 11 MB/s at beginning , soon the speed slow down , the slowest speed is about 3.4 MB/s, most of time the copy speed is 5 Mb/s .
This speed is very slow. What should I do ?
My hard disk is 80G 7200rpm sata.

Keruskerfuerst 10-27-2005 08:08 AM

Hello!

The slow speed results from copying from partition to partition on a single disk.

Greetings

Ryanlee 10-27-2005 08:12 AM

but much slower than do copy in windows.

Ryanlee 10-27-2005 08:15 AM

copy 1.4G in linux Suse10.0, about 3 mins.
in windows, less than 1:20.

broch 10-27-2005 08:40 AM

on SATA SuSE 9.3 (XFS) copying 3.4 GB on the same disk between two partitions took 2:50
It would depend on FS, controler (SIl is worse than nVidia), other disk intensive processes

Ryanlee 10-27-2005 11:13 AM

su
RLee:/home/lee # hdparm -Tt /dev/sda

/dev/sda:
Timing cached reads: 2060 MB in 2.00 seconds = 1029.94 MB/sec
Timing buffered disk reads: 42 MB in 3.04 seconds = 13.81 MB/sec

how about yours?

broch 10-27-2005 12:29 PM

hdparm -tT /dev/sda

/dev/sda:
Timing cached reads: 3508 MB in 2.00 seconds = 1753.39 MB/sec
Timing buffered disk reads: 170 MB in 3.00 seconds = 56.66 MB/sec

This is not really informative test

Ryanlee 10-27-2005 08:56 PM

.......................

oops...........

did you do some settings after you install suse?

Ryanlee 10-28-2005 08:53 AM

RLee:/home/lee # hdparm -d1 /dev/sda

/dev/sda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Inappropriate ioctl for device
HDIO_GET_DMA failed: Inappropriate ioctl for device


hmmmm.......somebody help me pls.........

broch 10-28-2005 08:59 AM

I have not changed anything specific.
I have Seagate 120MB (Hitachi worked as well until disk died) SATA connected to nvidia SATA controler (there are some problems with SIl because of design), XFS file system and option noatime set in fstab. Disk is divided into /, /boot, /home, and swap (obviously). There is a problem with your hardware I am afraid. Though it is possible that something happened with your SuSE installation. I have seen worse (and better results) than mine, but yours is "unhealthy". I would try some disk diagnostics.

broch 10-28-2005 09:01 AM

Quote:

hdparm -d1 /dev/sda

/dev/sda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Inappropriate ioctl for device
HDIO_GET_DMA failed: Inappropriate ioctl for device
This is normal, benign error: SATA is not fully recognized as DMA capable. Forget about this error.

Ryanlee 10-28-2005 11:30 AM

my disk is healthy. I am quite sure.

Yalla-One 10-28-2005 11:56 AM

Hi,

Have you tried playing with the other hdparm parameters to check if you have 32-bit access to the disk etc?

Make sure to check out your harddrives physical capabilities before changing the settings, as tweaking too much can lead to dataloss or worse!

As an example, I increased harddrive performance on my system by adding this to the startup-scripts : /usr/sbin/hdparm -c3 -m16 /dev/hda

-Y1

broch 10-28-2005 11:57 AM

DMA settings do not apply to SATA.

SlackerLX 10-28-2005 01:10 PM

Quote:

Originally posted by Ryanlee
my disk is healthy. I am quite sure.
Your disk is just fine. It depends on disk itself. I have ATA and S-ATA:

Code:

slackware:/home/slackerlx# hdparm -tT /dev/hda

/dev/hda:
 Timing cached reads:  1796 MB in  2.00 seconds = 896.34 MB/sec
 Timing buffered disk reads:  158 MB in  3.02 seconds =  52.24 MB/sec
slackware:/home/slackerlx# hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:  1896 MB in  2.00 seconds = 948.14 MB/sec
 Timing buffered disk reads:  166 MB in  3.01 seconds =  55.18 MB/sec
slackware:/home/slackerlx#


SlackerLX 10-28-2005 01:16 PM

Tested also on parallel Debian-Etch:
Code:

slackerlx@debian:~$ su
Password:
debian:/home/slackerlx# hdparm -tT /dev/hda

/dev/hda:
 Timing cached reads:  1792 MB in  2.00 seconds = 894.79 MB/sec
 Timing buffered disk reads:  158 MB in  3.04 seconds =  51.98 MB/sec
debian:/home/slackerlx# hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:  1872 MB in  2.00 seconds = 935.67 MB/sec
 Timing buffered disk reads:  166 MB in  3.03 seconds =  54.83 MB/sec
debian:/home/slackerlx#


broch 10-28-2005 01:38 PM

that is prety slow for SATA. The fact that you have similar problem does not mean that this is "normal"

curent SATA status under linux:
http://linux.yyz.us/sata/sata-status.html
So there are hardware problems (compatibility: controlers, disk design) and software (kernel, libata and so on)
http://linux.yyz.us/sata/software-status.html

I suggested either hardware problems or software. Here are software related problems with sata:

http://www.thinkwiki.org/wiki/Proble...SATA_and_Linux
http://www.linuxquestions.org/questions/history/290393
http://users.dslextreme.com/~craig.l...tes/disks.html
http://linux.derkeiler.com/Mailing-L...3-07/2807.html

SlackerLX 10-28-2005 01:44 PM

[QUOTE]Originally posted by broch
[B]that is prety slow for SATA. The fact that you have similar problem does not mean that this is "normal"

I believe that you're incorrect. Again it totally depends on drive and SATA Controller. My controller Silicon Image is on-board and is not even supported. I can't test this in Windows though, I've never had one installed since windows 95

SlackerLX 10-28-2005 01:59 PM

New test on IBM Laptop with IBM Travelstar 5K100 80GB 2.5" SATA Notebook/Laptop Hard Drive-HTS541080G9SA00, 5400 RPM, 8MB Cache with SuSE 9.3 Pro installed:

Code:

suse:/home/slackerlx # hdparm -tT /dev/sda

/dev/sda:
  Timing cached reads:    1960 MB in    2.00 seconds = 978.68 MB/sec
  Timing buffered disk reads:    78 MB in    3.04 seconds = 25.64 MB/sec
suse: /home/slackerlx #

If you would like to suggest that my IBM is also screwed I'd probably laugh very long and loud :p

broch 10-28-2005 02:26 PM

did you read this one or that is beyon your comprehension?
http://www.thinkwiki.org/wiki/Proble...SATA_and_Linux

comparing 5400 rpm SATA with 7200 rpm SATA (first post) really makes sense. Anyway your 5400 is still faster than his 7200 rpm.


Quote:

I believe that you're incorrect. Again it totally depends on drive and SATA Controller. My controller Silicon Image is on-board and is not even supported.
So this is compatibility problem. Or you don't understand what you have just written?

These results are really slow for SATA, and this is a problem with your hardware/software config.

Ryanlee 10-31-2005 08:30 AM

give up...........

can't solve this problem......

sigh.


All times are GMT -5. The time now is 01:13 AM.