LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Disk write speed (https://www.linuxquestions.org/questions/linux-newbie-8/disk-write-speed-319092/)

occuda 05-01-2005 01:35 PM

Disk write speed
 
I've been using linux for a while now, and I've noticed that the disk write speed seems significantly slower then in Windows.

I'm using FC3 with an ext3 file system. Is there some optimization I can make to speed things up?

tormented_one 05-01-2005 01:44 PM

Is dma active on the drive?

occuda 05-01-2005 02:25 PM

yes it is

twantrd 05-01-2005 02:43 PM

Run hdparm and let us know the results.

-twantrd

occuda 05-01-2005 03:17 PM

I ran "/sbin/hdparm -t /dev/hdb" and got the following results.

/dev/hdb:
Timing buffered disk reads: 74 MB in 3.05 seconds = 24.29 MB/sec

twantrd 05-01-2005 07:03 PM

Hmmm, these are my results:

/dev/hdb:
Timing buffered disk reads: 154 MB in 3.02 seconds = 50.99 MB/sec

Can you display the settings on the disk?

-twantrd

occuda 05-01-2005 09:00 PM

The disk I'm talking about only has a 2MB buffer. The 8MB disk I have has the following results:

/dev/hda:
Timing buffered disk reads: 124 MB in 3.04 seconds = 40.77 MB/sec

occuda 05-01-2005 09:36 PM

As a test, I timed writing a 346MB file. It took exactly 60 seconds. Does this seem slow to anybody else? This is on the 2MB drive.

Electro 05-02-2005 12:44 AM

The utility hdparm only shows raw speed. It does not count for speed of the filesystem. Also cache has nothing to do with the throughput of the hard drive. Cache is only there when multiple files are needed to be access at once. The throughput depends on bus, PCI controller, cable, hard drive, and filesystem. With hdparm I get over 54 megabytes per second with an IBM/Hitachi 180GXP 120 GB hard drive connected to a Highpoint HPT372 controller. The filesystem that I'm using on that drive is XFS. It can create a few gigabyte files in about 30 to 40 secs even though it had about 10 GB of space left. I tried bonnie and bonnie++ but the results that it gave was not accurate. I used dd and used /dev/random to make 1 megabyte file. I then copy multiple of these files to combine them in a 100 megabyte file. The ext3 filesystem is slow compared to many filesystems. You can try using ReiserFS or XFS if you want to increase the speed of the hard drive. I do not suggest using Reiser4 because it can be unreliable at times.

twantrd 05-02-2005 08:36 PM

Quote:

Also cache has nothing to do with the throughput of the hard drive
We weren't doing cache timings. We were doing device read timings. Unless I'm mistaken. I looked at the man pages and it shows:

-t perform device read timings
-T perform cache read timings


-twantrd

Electro 05-03-2005 12:36 AM

Quote:

Originally posted by twantrd
We weren't doing cache timings. We were doing device read timings. Unless I'm mistaken. I looked at the man pages and it shows:

-t perform device read timings
-T perform cache read timings


-twantrd

occuda kept on saying about the 2 MB cache versus the 8 MB cache during the hdparm tests. Did you read my post or did you skimed it. To me you skimed my post.

-T is buffer-cache
-t is buffered

Both are solidstate memory. Which values you should look is up to you. hdparm should only be used to just give estimates.

twantrd 05-03-2005 12:00 PM

Quote:

Did you read my post or did you skimed it. To me you skimed my post
Woah, my fault. I read your post and somehow thought something else of it. My bad.

-twantrd

props666999 06-21-2005 11:36 PM

I get the following results , can i fix it or somehow improve it . MY hard disk is a western digital 8mb cache .
Im on slackware 10.1 2.6.10 kernel

Code:

Timing buffered disk reads:    8 MB in  3.35 seconds =  2.38 MB/sec
root@a:/home/props#


Thank you


All times are GMT -5. The time now is 11:57 AM.