Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

SATA drive speeds

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


allanwilson at gmail

Sep 27, 2006, 12:42 PM

Post #1 of 4 (541 views)
Permalink
SATA drive speeds

I have a PIV 3.0 GHz system for my backend that has a hard time plalying
back HD content especially when other things are going on. I know this is
the low end of what it takes to run HD using the processor but reading some
older posts I came back to the subject of dma and sata support for that
feature in the linux kernel. Can you set dma on a sata device? What kind of
speeds should I be getting out of my sata drives? I have the Intel ICH5
chipset. Running the following commands I get:

sudo hdparm -d1 /dev/sda
/dev/sda:
settign using_dma to 1 (on)
HDIO_SET_DMA failed: Inappropriate ioctl for device

and for a speed test I got:

sudo hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 2604 MB in 2.00 seconds = 1300.90 MB/sec
Timing buffered disk reads: 176 MB in 3.02 seconds = 58.29 MB/sec
/dev/sdb:
Timing cached reads: 2576 MB in 2.00 seconds = 1287.55 MB/sec
Timing buffered disk reads: 180 MB in 3.01 seconds = 59.85 MB/sec
/dev/sdc:
Timing cached reads: 2588 MB in 2.00 seconds = 1293.55 MB/sec
Timing buffered disk reads: 190 MB in 3.02 seconds = 62.99 MB/sec

This speed is pretty constant and I wasn't really doing anything on the hard
drive when I ran the tests.

I have the following three sata drives:

allan [at] mytht:/proc/scsi$ more scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: HDS722516VLSA80 Rev: V34O
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: Maxtor 6B300S0 Rev: BANC
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi3 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: WDC WD3200JD-22K Rev: 08.0
Type: Direct-Access ANSI SCSI revision: 05

I don't know enough about this but my question is: Are my hard drives
slowing my system down? Thanks for the help.

Allan


myth at robinhill

Sep 27, 2006, 1:05 PM

Post #2 of 4 (531 views)
Permalink
Re: SATA drive speeds [In reply to]

On Wed Sep 27, 2006 at 02:42:33PM -0500, Allan Wilson wrote:

> I have a PIV 3.0 GHz system for my backend that has a hard time plalying
> back HD content especially when other things are going on. I know this is
> the low end of what it takes to run HD using the processor but reading some
> older posts I came back to the subject of dma and sata support for that
> feature in the linux kernel. Can you set dma on a sata device? What kind of
> speeds should I be getting out of my sata drives? I have the Intel ICH5
> chipset. Running the following commands I get:
>
> sudo hdparm -d1 /dev/sda
> /dev/sda:
> settign using_dma to 1 (on)
> HDIO_SET_DMA failed: Inappropriate ioctl for device
>
You don't need to enable DMA for SATA drives. Since all SATA drives
have DMA, and all SATA controllers support it, it's enabled by default.
I also don't think hdparm works at all with SATA drives - IIRC you
should be using sdparm (as they're seen using a SCSI style driver).

> and for a speed test I got:
>
> sudo hdparm -tT /dev/sda
> /dev/sda:
> Timing cached reads: 2604 MB in 2.00 seconds = 1300.90 MB/sec
> Timing buffered disk reads: 176 MB in 3.02 seconds = 58.29 MB/sec
> /dev/sdb:
> Timing cached reads: 2576 MB in 2.00 seconds = 1287.55 MB/sec
> Timing buffered disk reads: 180 MB in 3.01 seconds = 59.85 MB/sec
> /dev/sdc:
> Timing cached reads: 2588 MB in 2.00 seconds = 1293.55 MB/sec
> Timing buffered disk reads: 190 MB in 3.02 seconds = 62.99 MB/sec
>
> This speed is pretty constant and I wasn't really doing anything on the hard
> drive when I ran the tests.
>

There certainly doesn't look to be anything wrong with these speeds. I
don't see these affecting system performance at all (of course, it
depends on how many processes are accessing the disks simultaneously).

HTH,
Robin

--
___
( ' } | Robin Hill <myth [at] robinhill> |
/ / ) | Little Jim says .... |
// !! | "He fallen in de water !!" |


allanwilson at gmail

Sep 27, 2006, 2:12 PM

Post #3 of 4 (517 views)
Permalink
Re: SATA drive speeds [In reply to]

Thanks, I was just unclear on if this was running correctly or not.

Allan


adeffs.mythtv at gmail

Sep 28, 2006, 6:55 AM

Post #4 of 4 (506 views)
Permalink
Re: SATA drive speeds [In reply to]

On 9/27/06, Robin Hill <myth [at] robinhill> wrote:
> On Wed Sep 27, 2006 at 02:42:33PM -0500, Allan Wilson wrote:
> > I have a PIV 3.0 GHz system for my backend that has a hard time plalying
> > back HD content especially when other things are going on. I know this is
> > the low end of what it takes to run HD using the processor but reading some
> > older posts I came back to the subject of dma and sata support for that
> > feature in the linux kernel. Can you set dma on a sata device? What kind of
> > speeds should I be getting out of my sata drives? I have the Intel ICH5
> > chipset. Running the following commands I get:
> >
> > sudo hdparm -d1 /dev/sda
> > /dev/sda:
> > settign using_dma to 1 (on)
> > HDIO_SET_DMA failed: Inappropriate ioctl for device
> >
> You don't need to enable DMA for SATA drives. Since all SATA drives
> have DMA, and all SATA controllers support it, it's enabled by default.
> I also don't think hdparm works at all with SATA drives - IIRC you
> should be using sdparm (as they're seen using a SCSI style driver).
>
> > and for a speed test I got:
> >
> > sudo hdparm -tT /dev/sda
> > /dev/sda:
> > Timing cached reads: 2604 MB in 2.00 seconds = 1300.90 MB/sec
> > Timing buffered disk reads: 176 MB in 3.02 seconds = 58.29 MB/sec
> > /dev/sdb:
> > Timing cached reads: 2576 MB in 2.00 seconds = 1287.55 MB/sec
> > Timing buffered disk reads: 180 MB in 3.01 seconds = 59.85 MB/sec
> > /dev/sdc:
> > Timing cached reads: 2588 MB in 2.00 seconds = 1293.55 MB/sec
> > Timing buffered disk reads: 190 MB in 3.02 seconds = 62.99 MB/sec
> >
> > This speed is pretty constant and I wasn't really doing anything on the hard
> > drive when I ran the tests.
> >
>
> There certainly doesn't look to be anything wrong with these speeds. I
> don't see these affecting system performance at all (of course, it
> depends on how many processes are accessing the disks simultaneously).

if you want to see if disk i/o may be affecting your playback, run top
via ssh and look at the %wa value, which from what i understand is
basically the wait time on disk i/o, so the higher the percentage the
more data is being waited for (or something like that...)

--
Steve
Before you ask, read the FAQ!
http://www.mythtv.org/wiki/index.php/Frequently_Asked_Questions
then search the Wiki, and this list,
http://www.gossamer-threads.com/lists/mythtv/
Mailinglist etiquette -
http://www.mythtv.org/wiki/index.php/Mailing_List_etiquette
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.