View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 3 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Dec 23, 2004 12:24 pm 
Offline
Joined: Fri Apr 02, 2004 10:08 am
Posts: 1637
Location: Virginia, USA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 23, 2004 12:45 pm 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
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.

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 23, 2004 2:15 pm 
Offline
Joined: Fri Apr 02, 2004 10:08 am
Posts: 1637
Location: Virginia, USA
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.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu