LinHES Forums
http://forum.linhes.org/

Getting bad performance from new HD
http://forum.linhes.org/viewtopic.php?f=2&t=3115
Page 1 of 1

Author:  ceenvee703 [ Thu Dec 23, 2004 12:24 pm ]
Post subject:  Getting bad performance from new HD

OK, got a 200GB Seagate drive to add to my master backend. Decided to go the LVM route with it so I could add it to my /dev/hda4 partition's 130GB or so of space. I haven't even gotten to that point yet because my read performance is obviously not good... playback of recordings is stuttering, not badly but definitely noticeable.

I followed the LVM HOWTO on the wiki:

http://knoppmythwiki.homelinux.org/inde ... e=LvmHowTo

I also figured I would need to turn on DMA on the new drive so I edited /etc/init.d/bootmisc.sh to turn DMA and other stuff on with /dev/hdb according to the optimizing HD article on the wiki and a LinuxDevCenter article:

http://knoppmythwiki.homelinux.org/inde ... erformance
http://www.linuxdevcenter.com/pub/a/lin ... dparm.html

I've played with a bunch of settings combination for hdparm in bootmisc.sh but none of them are staying after a reboot. Doing hdparm /dev/hdb after a reboot I get:

Code:
root@mythtv:/home/mythtv# hdparm /dev/hdb

/dev/hdb:
 multcount    =  0 (off)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 24321/255/63, sectors = 390721968, start = 0



I get good buffer-cache reads but lousy buffered disk reads from hdb:

Code:
root@mythtv:/home/mythtv# hdparm -tT /dev/hdb

/dev/hdb:
 Timing buffer-cache reads:   128 MB in  0.36 seconds =355.56 MB/sec
 Timing buffered disk reads:  64 MB in 26.36 seconds =  2.43 MB/sec


The relevant part of my /etc/init.d/bootmisc.sh currently reads:

Code:
# enable DMA
 /sbin/hdparm -d1 /dev/hda
 /sbin/hdparm -d1 -c1 -u1 /dev/hdc
 /sbin/hdparm -X66 -d1 -u1 -m16 -c3 /dev/hdb
#


Still playing but any assistance would be appreciated, especially on how to get DMA to stay on for my drives. Thanks.

Author:  Xsecrets [ Thu Dec 23, 2004 12:45 pm ]
Post subject: 

well couple of things

1) have you tried running hdparm from a command line after booting to see if you get any messages?

2) I would drop the -x66 switch as you are probably using a dma100 or better drive, and it will do nothing but slow you down, and the -c switch is a toggle switch for 32bit I/O so it can only be 0 or 1 3 is not a valid argument.

Author:  ceenvee703 [ Thu Dec 23, 2004 2:15 pm ]
Post subject: 

Thanks for the hints on the different settings.

If I run hdparm from the command line I can turn DMA on just fine. It's turning it on at startup that isn't working with the edits to bootmisc.sh.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/