Thread (19 messages) 19 messages, 6 authors, 2005-05-20

Re: Raid 1 install revealed poor HD performance (I think)

From: Mike Hardy <hidden>
Date: 2005-05-17 16:52:03

Gordon Henderson wrote:
However, I notice that Sarge isn't using multicount. You can turn that on
with hdparm -m 16 /dev/hda /dev/hdc

To work out your IDE controller, try: lspci and have a look at the output
of /var/log/dmesg (or just type dmesg | less - knoppix might not create a
/var/log/dmesg) The output of lspci will tell you what hardware you have
then you'll need to examinf the dmesg output to see if you have support
for it, or need to compile it in.

Gordon
I was sure it would be DMA too :-). Wonder if multicount makes that much
of a difference?

Either way, one of the first things I typically do on a server is add an
hdparm line with whatever the disks need for that particular machine.
Usually it goes in rc.sysinit or rc.local or similar.

In particular, drives like to enable write-caching out of the box now,
which opens a window for data corruption that has bitten more than a few
high-profile sites as it causes the disk to break the fsync contract
which in turn bubbles up and breaks the 'D' part of the ACID contract
for databases (or journalling filesystems).

So, even if you can't get your distribution to tune your IDE chipset and
IDE hard drives perfectly, with something like multicount or write
caching, its effective (IMHO) to just force your settings on boot.

-Mike
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help