LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-28-2003, 02:05 PM   #241
jdii1215
Member
 
Registered: Aug 2002
Location: SW Coast of Florida, USA-- in fact, ground zero for Charley is where my town is
Distribution: Mandrake 10 Community, SuSE 9+
Posts: 167

Rep: Reputation: 30

Ok, technically that is something that should be run about that often as a failsafe. AND, the fsck needs to run before you use a speedup commadn with hdparm.

The only way I know to implement what you want to do is to get the device defaults revised-- however, I am not a Debian user so can only say that the files concerned should be in either the init.d subtree or the /dev subtree. the only otehr thing I can say, is that my HDs respond to a set of the following parms as part of a hdparm call:

-k

-K

so, if drive is /dev/hda, give it your regular hdparm command and then after the prompt shows back up, tell it this:

hdparm -kK /dev/hda

This makes sure the settings are saved properly. If you were to have issued a hdparm -k -d1 /dev/hda it is just barely possible the HD woudl not save the new setting, but instead keep the OLD settings. hdparm also does this-- if a flag is run like -d 1 instead of -d1 sometimes things are not set right on some unices(seems not to be something you need tro worry about, just a note that YMMv to others). If -kK fails, either the HD mech is not taking some of the settings, or something is wrong with the hardware setup, or the drive does not like hdparm.

John.
 
Old 01-28-2003, 04:55 PM   #242
Visor
LQ Newbie
 
Registered: Jan 2003
Distribution: Slack 8.1
Posts: 4

Rep: Reputation: 0
hdparm -tT /dev/hda1

Timing buffer-cache reads: 128 MB in 0.86 seconds = 148.84 MB/sec
Timing buffered disk reads: 64 MB in 1.86 seconds = 34.41 MB/sec

It is 60 GB Seagate Barracuda IV 7200 RPM running on ATA100
 
Old 02-01-2003, 12:36 AM   #243
Muddy
Member
 
Registered: May 2002
Location: Ohio
Distribution: Mandrake 9.2 Custom Kernel & Mythtv!
Posts: 256

Rep: Reputation: 30
here's off my server which is an old dual PII300 with an added promise ata66 card feeding the last two drives both ata100 30 gigs 7200rpm's one ibm one wd... the others are older ata 33 or 66. The one hdb that failed is the oldest, a 3gig western digital.

/dev/hda:
Timing buffered disk reads: 64 MB in 3.79 seconds = 16.89 MB/sec

/dev/hdb:
Timing buffered disk reads: read() hit EOF - device too small
HDIO_DRIVE_CMD(null) failed: Input/output error

/dev/hdc:
Timing buffered disk reads: 64 MB in 6.54 seconds = 9.79 MB/sec

/dev/hdd:
Timing buffered disk reads: 64 MB in 3.08 seconds = 20.78 MB/sec

/dev/hde:
Timing buffered disk reads: 64 MB in 2.75 seconds = 23.27 MB/sec


*edit*

I ssh'd into my wife's box, IBM 20Gig ata66 7200rpm drive on redhat 7.3 default install and Abit KT7A mobo...

/dev/hda:
Timing buffer-cache reads: 128 MB in 0.94 seconds =136.17 MB/sec
Timing buffered disk reads: 64 MB in 2.86 seconds = 22.38 MB/sec


***Edit Again***

Ok, went ahead and downloaded the hdparm rpm for my mandrake 9 install... here is what I have with no tweaking

/dev/hda:
Timing buffer-cache reads: 128 MB in 0.81 seconds =158.02 MB/sec
Timing buffered disk reads: 64 MB in 1.84 seconds = 34.78 MB/sec

using 40Gig IBM ata 100 7200rpm 2mb cache on Abit KT7A in KDE with other apps running.

Last edited by Muddy; 02-01-2003 at 12:44 AM.
 
Old 02-15-2003, 04:23 PM   #244
philsta
Member
 
Registered: Feb 2003
Location: Bath England
Distribution: Fedora Core 5, Slackware 10.2
Posts: 38

Rep: Reputation: 15
Here are my results and a link to an article that shows you how to change the settings and speed your disks up:

[root@pc-62-30-87-10-bt phil]# hdparm -t /dev/sda

/dev/sda:
Timing buffered disk reads: 64 MB in 2.28 seconds = 28.07 MB/sec
[root@pc-62-30-87-10-bt phil]# hdparm -t /dev/sdb

/dev/sdb:
Timing buffered disk reads: 64 MB in 1.92 seconds = 33.33 MB/sec
[root@pc-62-30-87-10-bt phil]# hdparm -t /dev/hda

/dev/hda:
Timing buffered disk reads: 64 MB in 3.05 seconds = 20.98 MB/sec
[root@pc-62-30-87-10-bt phil]# hdparm -t /dev/hdb

/dev/hdb:
Timing buffered disk reads: 64 MB in 2.01 seconds = 31.84 MB/sec

http://linux.oreillynet.com/pub/a/li...29/hdparm.html

My hardware is:

/dev/hda Maxtor 91021U2 UDMA 66
/dev/hdb IBM DTLA-307030 UDMA 33
/dev/sda IBM DDYS-T09170N Ultra 160
/dev/sda IBM DDYS-T09170N Ultra 160

Both SCSI drives are on an Adaptec 3490 Card described in control center as 7899A

If you use the command: hdparm -Tt /dev/drive you get slightly more impessive looking results as shown below.

[root@pc-62-30-87-10-bt phil]# hdparm -Tt /dev/sda

/dev/sda:
Timing buffer-cache reads: 128 MB in 1.47 seconds = 87.07 MB/sec
Timing buffered disk reads: 64 MB in 2.30 seconds = 27.83 MB/sec
[root@pc-62-30-87-10-bt phil]# hdparm -Tt /dev/hda

/dev/hda:
Timing buffer-cache reads: 128 MB in 1.49 seconds = 85.91 MB/sec
Timing buffered disk reads: 64 MB in 3.13 seconds = 20.45 MB/sec
[root@pc-62-30-87-10-bt phil]# hdparm -Tt /dev/hdb

/dev/hdb:
Timing buffer-cache reads: 128 MB in 0.93 seconds =137.63 MB/sec
Timing buffered disk reads: 64 MB in 1.90 seconds = 33.68 MB/sec
[root@pc-62-30-87-10-bt phil]# hdparm -Tt /dev/sdb

/dev/sdb:
Timing buffer-cache reads: 128 MB in 0.94 seconds =136.17 MB/sec
Timing buffered disk reads: 64 MB in 1.88 seconds = 34.04 MB/sec


Check the article here though and have a play speeding up those drives:

http://linux.oreillynet.com/pub/a/li...29/hdparm.html

Make sure you back everything up first though!!!!!!
 
Old 03-03-2003, 08:44 AM   #245
Radicalm16
Member
 
Registered: Jan 2003
Location: Venezuela
Distribution: Debian, Ubuntu
Posts: 75

Rep: Reputation: 15
Seagate Barracuda II 30 Gb IDE UltraATA (I think 100)

/dev/hda:
Timing buffered disk reads: 64 MB in 2.48 seconds = 25.81 MB/sec

I don't tell you what driver it's using 'cos I don't know how to gat It.
 
Old 03-03-2003, 10:01 AM   #246
jdii1215
Member
 
Registered: Aug 2002
Location: SW Coast of Florida, USA-- in fact, ground zero for Charley is where my town is
Distribution: Mandrake 10 Community, SuSE 9+
Posts: 167

Rep: Reputation: 30
How to get drive info:try

hdparm -itT /dev/hda

If is a ATA\100, or ATA\66, this should help--

hdparm -d1 /dev/hda

(the -i is general drive info for the device, if you wanted you could use this following one, but expect a LOT of results if so:

hdparm -itT /dev/hd* | less

less is not something that takes away in this case, the program name means 'list' or 'read' in German(lessen means to read or to list depending on use with other words (context)), and it handles things that move many screens of data and shows one at a time. Arrow key, page Up, Page Down, and space bar all do things, and you can move both up and down the result. It is a result reader's aid program-- makes it easier to READ, but is not help for figuring out results.

If your system says it has no less program, then you can use

hdparm -itT /dev/hd* | more

instead, and more only lets you go down but will stop at end of each screen (page Up and up arrow will not work wiht more, others listed above will)

John Danielson.
 
Old 03-03-2003, 11:38 AM   #247
MitchM99
Member
 
Registered: Jan 2003
Distribution: Gentoo(Server) Ubuntu(desktop/laptop)
Posts: 63

Rep: Reputation: 15
hey guys, I got a problem, I changed my PIO mode to 4 and it drastically decaresed my "Timing buffered disk reads". I use to get 35/sec average but now I am only doing like 12-13. but my "Timing buffer-cache reads" is still high. this degrade in performance was created when I did "hdparm -p4 /dev/hda" Do you all know how I can reverse this?

Thanks
Mitch

bash-2.05a# hdparm /dev/hda

/dev/hda:
multcount = 16 (on)
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 1 (on)
readonly = 0 (off)
readahead = 8 (on)
geometry = 3749/255/63, sectors = 60233564, start = 0

bash-2.05a# hdparm -i /dev/hda

/dev/hda:

Model=QUANTUM FIREBALLP AS30.0, FwRev=A1Y.1300, SerialNo=193032630398
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
RawCHS=16383/16/63, TrkSize=32256, SectSize=21298, ECCbytes=4
BuffType=DualPortCache, BuffSize=1902kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=60233564
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5
AdvancedPM=no WriteCache=enabled
Drive conforms to: ATA/ATAPI-5 T13 1321D revision 1: 1 2 3 4 5

bash-2.05a# hdparm -Tt /dev/hda

/dev/hda:
Timing buffer-cache reads: 128 MB in 0.66 seconds =196.82 MB/sec
Timing buffered disk reads: 64 MB in 4.92 seconds = 13.01 MB/sec

EDIT EDIT: I got it, i switched my xfer mode to X69 (udam5) so that fixed it
 
Old 03-03-2003, 01:29 PM   #248
JMCraig
Member
 
Registered: Feb 2003
Location: Utah, USA
Distribution: Red Hat EL/CentOS, Ubuntu/Debian
Posts: 113

Rep: Reputation: 15
Question SCSI vs ATA suggestions anyone?

My results:

hdparm -tT /dev/sda

/dev/sda:
Timing buffer-cache reads: 128 MB in 0.69 seconds =186.19 MB/sec
Timing buffered disk reads: 64 MB in 1.87 seconds = 34.17 MB/sec

Controller: Adaptec AIC-7892B
Drive: IBM 18 GB DDYS-TI8350N (10K RPM U160)

Now, that looks about expectable based on others' posts with similar setups. But, it looks like, by this measure, that a decent IDE/ATA controller and drive would have as good, or better performance (some of the numbers for an ATA133 combo were substantially better).

So, here's the questions:

I'm trying to decide what disk setup to buy for a new DB server. Does anyone have any experience with a relatively heavily read-oriented DB app using SCSI vs ATA setup?

Has anyone heard when WD's new SATA 10K "Raptor" drive is supposed to be available to buy? (Supposed to be cheaper than SCSI and nearly as fast.)

JMCraig
 
Old 03-03-2003, 02:09 PM   #249
jdii1215
Member
 
Registered: Aug 2002
Location: SW Coast of Florida, USA-- in fact, ground zero for Charley is where my town is
Distribution: Mandrake 10 Community, SuSE 9+
Posts: 167

Rep: Reputation: 30
Well, you need to think about other things for a server than performance, and it is those other things that would make me say for now that SCSI is better for servers.
Raptors can be directly purchased from WD now.
On the surface, SATA is a shoo-in, but maybe not for a production server because the bus has a much smaller performance tracking base than SCSI, and lost data IS lost data. I suspect that as with SCSI at first, that there will be wrinkles to smooth out before one gets server grade performance reliability out of it at the throughput maxes it is capable of. If this were an experiment and a definite backup capability was run in parallel for a while, I would say b uild SATA. If replacement, SCSI 160U for now-- most boards that come with the SCSI embedded can do SATA also or are fast enough to do it well, so switching would be mostly the storage subsystem only.

Basicly a SATA bus sounds superb, but so did FireWire until USB 2.0 came on the horizon and proved as adept as firewire at handling data flow and cheaper to boot. If this is an app you can gamble with the data of, maybe SATA though the drives will be costly. If not, then I would wait 6-12 months before putting SATA on a production server farm or in a SAN or SNA thing on a large-scale, and gather comparative performance data for teh subarea you are thinking about doing this with. eWeek seems to be talking more and more about SATA, but Intel is sticking it first on desktop motherboards. I think we need a lot of base docs before putting to mission-critical uses. Becasue more is known about SCSI data throughput, you are more likely to have recovery tools for SCSI apps than for SATA deployed data apps as mission-critical as enterprise databases, or business data you need to always have available reliably.

John Danielson.
 
Old 03-03-2003, 09:25 PM   #250
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Rep: Reputation: 31
Me Too!! Me Too!!

/dev/hde:
Timing buffered disk reads: 64 MB in 2.73 seconds = 23.44 MB/sec


/dev/hdg:
Timing buffered disk reads: 64 MB in 3.47 seconds = 18.44 MB/sec
 
Old 03-08-2003, 08:51 AM   #251
mtb
Member
 
Registered: Nov 2002
Location: Italy
Distribution: Linux Mint 17 Xfce
Posts: 277

Rep: Reputation: 30
I have found a way to start hdparm with debian... ( after a while... )


# echo "#! /bin/sh" > /etc/init.d/hdparm.sh
# echo "hdparm -c3 -d1 -k1 -u1 -p4 -X69 /dev/hda" >> /etc/init.d/hdparm.sh
# chmod 755 /etc/init.d/hdparm.sh
# update-rc.d hdparm.sh start 99 2 3 4 5 .

where 99 is the position, 99 is safe, but you should see the others to start it before the fsck.

@jdii1215: thank you a lot for your help.
 
Old 03-08-2003, 09:13 AM   #252
jdii1215
Member
 
Registered: Aug 2002
Location: SW Coast of Florida, USA-- in fact, ground zero for Charley is where my town is
Distribution: Mandrake 10 Community, SuSE 9+
Posts: 167

Rep: Reputation: 30
@mtb re hdparm

Thank you for the info, happy we could trade a bit of knowledge.

John Danielson.
 
Old 03-08-2003, 01:15 PM   #253
watashiwaotaku7
Member
 
Registered: Oct 2002
Location: wisconsin -- The Badger state
Distribution: gentoo
Posts: 654

Rep: Reputation: 30
root@mork:~# hdparm -Tt /dev/hda

/dev/hda:
Timing buffer-cache reads: 128 MB in 0.26 seconds =494.21 MB/sec
Timing buffered disk reads: 64 MB in 2.30 seconds = 27.87 MB/sec
 
Old 03-09-2003, 09:37 AM   #254
php
Member
 
Registered: Jun 2001
Location: USA
Distribution: Slackware
Posts: 825

Rep: Reputation: 30
Re: My performance stinks

Quote:
Originally posted by Hubas
I don't know why but my drive isn't performing at all good

It's a seagate barracuda IV 80 GB 7200

buffered disk reads: 64 MB in 9.45 seconds = 6.77 MB/s
buffer-cache reads: 128 MB in 0.62 seconds = 206.45 MB/s

If I type hdparm -d1 /dev/hda in single user mode I get this output

setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)

If I type hdparm -I /dev/hda I get this somewhere

DMA modes: ....*udma5

Which is quite confusing. It says it's running UltraDMA5 but not dma?

I've checked on VIA's homepage, they have some kind of document about this, but it doesn't seem to be aimed at my specific problem.

Do I have to recompile a new kernel to make this work the way it is supposed to?

It might be a tough question for you to answer, but anyway if anyone knows something

______________________________________
These are my system specs, they should be able to perform quite well.

AMD AthlonXP +1700
Soltek sl75drv2 (kt266a based)
256MB DDR
Seagate Barracuda IV 80Gb 7200 rpm ATA100
my friend had the same problem and he used make oldconfig and upgraded his kernel to 2.4.20.. this allowed him to use dma.. he went from 6 mb/sec to 36 lol
 
Old 03-09-2003, 12:44 PM   #255
jdii1215
Member
 
Registered: Aug 2002
Location: SW Coast of Florida, USA-- in fact, ground zero for Charley is where my town is
Distribution: Mandrake 10 Community, SuSE 9+
Posts: 167

Rep: Reputation: 30
What else can relate to HDs.

RedHat (next version, probably 8.1) and Mandrake (which is running 2.4.21 pre's ) in its release candidates and expects to be out and available in April and to club members by end of march with 9.1 both have kernels that will support this coming up. i woudl say if you do nto know how to compile a kernel and can wait a month or so, probably that will be solved at least in part. I say in part because the new mobo chipsets in some cases need new BIOS flashing, new ACPI and APIC in kernel, and a few other things to really blaze. Some need ALL, some only some of this. If you want a quick check, get a Knoppix image from Jan 20 fot hsi year and burn-- you do not have to install Knoppix, and it is a deb derivative with an interesting kernel that can show you if your board needs more than just a 2.4.20 kernel.

John Danielson.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Test Hard Drive performance? voxel Linux - Hardware 7 09-07-2005 02:44 AM
Horrible Hard Drive Performance????? linux-rulz Linux - Hardware 13 06-26-2005 09:10 PM
hard drive performance true_atlantis Linux - General 3 10-26-2004 04:15 AM
Did not get the Hard drive performance Raid0! alpha97 Linux - Hardware 21 07-24-2004 04:52 AM
hard drive performance bynaar Slackware 2 12-18-2002 07:21 AM


All times are GMT -5. The time now is 05:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration