On 8/17/05, Pupeno <[EMAIL PROTECTED]> wrote:
> On Wednesday 17 August 2005 22:15, Mark Knecht wrote:
> > On 8/17/05, Pupeno <[EMAIL PROTECTED]> wrote:
> > > On Wednesday 17 August 2005 18:44, Mark Knecht wrote:
> > > > A quick test would be
> > > >
> > > > hdparm -tT /dev/hda
> > >
> > > I got this:
> > > /dev/hda:
> > >  Timing cached reads:   1344 MB in  2.00 seconds = 672.10 MB/sec
> > >  Timing buffered disk reads:    8 MB in  3.51 seconds =   2.28 MB/sec
> > >
> > > > (or whatever drive you are concerned about.) Greater than 15MB/S is
> > > > almost certainly DMA but good DMA from newer drives should be
> > > > 25-50MB/S
> > >
> > > The second speed is evidently wrong.
> >
> > Not wrong, just not DMA.
> Should I leave DMA off ? Isn't almost always faster to use DMA ?
> 
> > > > You can look at the drives parameters using hdparm and reading through
> > > > the man page to understand what all the values mean.
> > >
> > > I tried to enable dma, but this happened:
> > > # hdparm -d1 /dev/hda
> > >
> > > /dev/hda:
> > >  setting using_dma to 1 (on)
> > >  HDIO_SET_DMA failed: Operation not permitted
> > >  using_dma    =  0 (off)
> > >
> > > What am I doing wrong ? some kernel option ?
> >
> > Possibly. Many of the ATAPI DMA drivers are supplied when you enable
> > the proper chipset support in make menuconfig under Device Drivers ->
> > ATA support.
> I have all of them enabled as modules.
> 
> > What chipset is your machine using? (lspci)
> 0000:00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller
> (rev 01)
> 
> > From my laptop:
> >
> > flash linux #  hdparm /dev/hda
> >
> > /dev/hda:
> >  multcount    = 16 (on)
> >  IO_support   =  0 (default 16-bit)
> >  unmaskirq    =  0 (off)
> >  using_dma    =  1 (on)
> Here, your dma is on! :)
> 
> >  keepsettings =  0 (off)
> >  readonly     =  0 (off)
> >  readahead    = 256 (on)
> >  geometry     = 65535/16/63, sectors = 80026361856, start = 0
> > flash linux #
> >
> > flash linux #  hdparm -tT /dev/hda
> >
> > /dev/hda:
> >  Timing cached reads:   1788 MB in  2.00 seconds = 891.91 MB/sec
> >  Timing buffered disk reads:   82 MB in  3.04 seconds =  26.93 MB/sec
> > flash linux #
> 
> Thanks.
> --
> Pupeno <[EMAIL PROTECTED]> (http://pupeno.com)
> Reading ? Science Fiction ? http://sfreaders.com.ar
> 
> 
> 

I'm sorry if this copy/paste gets messy. I'm attempting to show you
all the stuff I have enabled on a Via desktop machine:

<*> ATA/ATAPI/MFM/RLL support                                                │ │
  │ │  <*>   Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support      
             │ │
  │ │  ---     Please see Documentation/ide.txt for help/info on IDE
drives         │ │
  │ │  [ ]     Support for SATA (deprecated; conflicts with libata
SATA driver)     │ │
  │ │  [ ]     Use old disk-only driver on primary interface          
             │ │
  │ │  <*>     Include IDE/ATA-2 DISK support                         
             │ │
  │ │  [*]     Use multi-mode by default                              
             │ │
  │ │  <*>     Include IDE/ATAPI CDROM support                        
             │ │
  │ │  < >     Include IDE/ATAPI TAPE support (EXPERIMENTAL)          
             │ │
  │ │  < >     Include IDE/ATAPI FLOPPY support                       
             │ │
  │ │  < >     SCSI emulation support                                 
             │ │
  │ │  [ ]     IDE Taskfile Access                                    
             │ │
  │ │  ---     IDE chipset support/bugfixes                           
             │ │
  │ │  <*>     generic/default IDE chipset support                    
             │ │
  │ │  [*]     CMD640 chipset bugfix/support                          
             │ │
  │ │  [ ]       CMD640 enhanced support                              
             │ │
  │ │  [ ]     PNP EIDE support                                       
             │ │
  │ │  [*]     PCI IDE chipset support                                
             │ │
  │ │  [*]       Sharing PCI IDE interrupts support                   
             │ │
  │ │  [ ]       Boot off-board chipsets first support                
             │ │
  │ │  <*>       Generic PCI IDE Chipset Support                      
             │ │
  │ │  < >       OPTi 82C621 chipset enhanced support (EXPERIMENTAL)  
             │ │
  │ │  <*>       RZ1000 chipset bugfix/support                        
             │ │
  │ │  [*]       Generic PCI bus-master DMA support                   
             │ │
  │ │  [ ]         Force enable legacy 2.0.X HOSTS to use DMA         
             │ │
  │ │  [*]         Use PCI DMA by default when available   
  [ ]           Enable DMA only for disks                             
        │ │
  │ │  < >         AEC62XX chipset support                            
             │ │
  │ │  < >         ALI M15x3 chipset support                          
             │ │
  │ │  < >         AMD and nVidia IDE support                         
             │ │
  │ │  < >         ATI IXP chipset IDE support                        
             │ │
  │ │  < >         CMD64{3|6|8|9} chipset support                     
             │ │
  │ │  < >         Compaq Triflex IDE support                         
             │ │
  │ │  < >         CY82C693 chipset support                           
             │ │
  │ │  < >         Cyrix CS5510/20 MediaGX chipset support (VERY
EXPERIMENTAL)      │ │
  │ │  < >         Cyrix/National Semiconductor CS5530 MediaGX chipset
support      │ │
  │ │  < >         HPT34X chipset support                             
             │ │
  │ │  < >         HPT36X/37X chipset support                         
             │ │
  │ │  < >         National SCx200 chipset support                    
             │ │
  │ │  < >         Intel PIIXn chipsets support                       
             │ │
  │ │  < >         IT821X IDE support                                 
             │ │
  │ │  < >         NS87415 chipset support                            
             │ │
  │ │  < >         PROMISE PDC202{46|62|65|67} support                
             │ │
  │ │  < >         PROMISE PDC202{68|69|70|71|75|76|77} support       
             │ │
  │ │  < >         ServerWorks OSB4/CSB5/CSB6 chipsets support        
             │ │
  │ │  < >         Silicon Image chipset support                      
             │ │
  │ │  < >         SiS5513 chipset support                            
             │ │
  │ │  < >         SLC90E66 chipset support                           
             │ │
  │ │  < >         Tekram TRM290 chipset support                      
             │ │
  │ │  <*>         VIA82CXXX chipset support                          
             │ │
  │ │  [ ]     Other IDE chipset support                              
             │ │
  │ │  [ ]     IGNORE word93 Validation BITS          

I think the important ones are probably:

<*> ATA/ATAPI/MFM/RLL support                                                │ │
  │ │  <*>   Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support      
             │ │

  │ │  [*]     Use multi-mode by default                              
             │ │

  │ │  <*>     generic/default IDE chipset support                    
             │ │

  │ │  [*]     PCI IDE chipset support                                
             │ │

  │ │  [*]       Sharing PCI IDE interrupts support                   
             │ │

  │ │  <*>       Generic PCI IDE Chipset Support                      
             │ │

  │ │  [*]         Use PCI DMA by default when available   


and for you probably:

  │ │  < >         Intel PIIXn chipsets support                       
             │ │

Hope this helps,
Mark

-- 
gentoo-user@gentoo.org mailing list

Reply via email to