LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-01-2005, 01:35 PM   #1
occuda
LQ Newbie
 
Registered: Apr 2005
Location: Canada
Distribution: Fedora 8
Posts: 16

Rep: Reputation: 0
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?
 
Old 05-01-2005, 01:44 PM   #2
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
Is dma active on the drive?
 
Old 05-01-2005, 02:25 PM   #3
occuda
LQ Newbie
 
Registered: Apr 2005
Location: Canada
Distribution: Fedora 8
Posts: 16

Original Poster
Rep: Reputation: 0
yes it is
 
Old 05-01-2005, 02:43 PM   #4
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Run hdparm and let us know the results.

-twantrd
 
Old 05-01-2005, 03:17 PM   #5
occuda
LQ Newbie
 
Registered: Apr 2005
Location: Canada
Distribution: Fedora 8
Posts: 16

Original Poster
Rep: Reputation: 0
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
 
Old 05-01-2005, 07:03 PM   #6
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
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
 
Old 05-01-2005, 09:00 PM   #7
occuda
LQ Newbie
 
Registered: Apr 2005
Location: Canada
Distribution: Fedora 8
Posts: 16

Original Poster
Rep: Reputation: 0
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
 
Old 05-01-2005, 09:36 PM   #8
occuda
LQ Newbie
 
Registered: Apr 2005
Location: Canada
Distribution: Fedora 8
Posts: 16

Original Poster
Rep: Reputation: 0
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.
 
Old 05-02-2005, 12:44 AM   #9
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
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.
 
Old 05-02-2005, 08:36 PM   #10
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
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
 
Old 05-03-2005, 12:36 AM   #11
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
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.
 
Old 05-03-2005, 12:00 PM   #12
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
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
 
Old 06-21-2005, 11:36 PM   #13
props666999
Member
 
Registered: Oct 2003
Location: Greece
Posts: 260

Rep: Reputation: 30
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
K3B Change Write Speed usaf_sp Linux - Hardware 2 11-09-2005 02:48 PM
CD write speed mushmaster Linux - Hardware 10 03-13-2005 06:05 AM
change k3b write speed? ebasi Linux - Software 2 08-03-2004 03:09 AM
gnome toaster write speed. doralsoral Linux - Software 0 08-30-2003 12:11 PM
24x write speed illtbagu Linux - Software 2 01-25-2003 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration