Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Multiple sector mode (aka IDE Block Mode) w/ SATA/libata HDs

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
Flow__
n00b
n00b
Posts: 26
Joined: Tue Jul 10, 2007 9:40 am

Multiple sector mode (aka IDE Block Mode) w/ SATA/libata HDs

  • Quote

Post by Flow__ » Thu Oct 07, 2010 2:16 pm

Hi,

while tryring to set the Multiple sector mode with

Code: Select all

hdparm -m 16 /dev/sda
on a libata Drive*, the following message appears:

Code: Select all

 * Running hdparm on /dev/sdb ...
Use of -m is VERY DANGEROUS.
Only the old IDE drivers work correctly with -m with kernels up to at least 2.6.29.
libata drives may fail and get hung if you set this flag.
Please supply the --yes-i-know-what-i-am-doing flag if you really want this.
Program aborted.
I can imagine that with multiple unused CPU cores the performance gain of "-m 16" isn´t that much. But I am curious: Did anyone successfully set this feature on a SATA/libata drives? If so, which drive, which kernel version and which controller? What are the pitfalls? Will the new drivers be fixed sometime?

Regards
Flow


*: SATA controller: Intel Corporation 82801JI (ICH10 Family) SATA AHCI Controller with WDC WD10EACS-00D6B0
Top
roarinelk
Guru
Guru
User avatar
Posts: 524
Joined: Thu Mar 04, 2004 12:24 pm

Re: Multiple sector mode (aka IDE Block Mode) w/ SATA/libata

  • Quote

Post by roarinelk » Thu Oct 07, 2010 7:29 pm

Out of curiosity: why do you want to do that anyway? Do you have a specific
reason?
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Thu Oct 07, 2010 8:04 pm

Specially because if it's not yet enable, then it will be dangerous to enable it.

So what is your question: am i doing stupid things ? Any other than me that enable it where it shouldn't be ?

No i did not enable it, but if you check your drives, you'll see it's enable for most of them.

Code: Select all

hdparm -m /dev/sda /dev/sdb /dev/sdc /dev/sdd

/dev/sda:
 multcount     = 16 (on)

/dev/sdb:
 multcount     = 16 (on)

/dev/sdc:
 multcount     = 16 (on)

/dev/sdd:
 multcount     =  0 (off)
And i were you, i wouldn't enable it on sdd (well, as i'm not you, as you see, i didn't)
Top
roarinelk
Guru
Guru
User avatar
Posts: 524
Joined: Thu Mar 04, 2004 12:24 pm

  • Quote

Post by roarinelk » Fri Oct 08, 2010 6:57 am

krinn wrote: So what is your question: am i doing stupid things ? Any other than me that enable it where it shouldn't be ?
Kind of, yes :D

I would assume that the driver and ata-layer in the kernel test whether the drive can
safely enable multisector IO, and there should be no need to use hdparm to force it.
Especially since the new ata layer is way smarter than the ancient ide code it replaced.
Top
salahx
Guru
Guru
Posts: 572
Joined: Sat Mar 12, 2005 6:39 am

  • Quote

Post by salahx » Sat Oct 09, 2010 3:40 am

Actually it is stupid: multi-sector mode (and 32-bit I/O mode support) only have any meaning in PIO mode, not with DMA.

See http://www.redhat.com/archives/fedora-d ... 01169.html
Top
jathlon
Tux's lil' helper
Tux's lil' helper
Posts: 89
Joined: Tue Sep 26, 2006 8:15 am
Location: Canada

  • Quote

Post by jathlon » Sat Oct 09, 2010 7:18 am

krinn wrote:

Code: Select all

hdparm -m /dev/sda /dev/sdb /dev/sdc /dev/sdd

/dev/sda:
 multcount     = 16 (on)

/dev/sdb:
 multcount     = 16 (on)

/dev/sdc:
 multcount     = 16 (on)

/dev/sdd:
 multcount     =  0 (off)
What kind of drives do you have installed? I get;

Code: Select all

hdparm -m /dev/sda /dev/sdb /dev/sdc /dev/sdd

/dev/sda:
 multcount     =  1 (on)

/dev/sdb:
 multcount     =  0 (off)

/dev/sdc:
 multcount     =  0 (off)

/dev/sdd:
 multcount     =  0 (off)
sda is a SSD while the rest are regular SATA drives. If I try to set -m 16 I get the same warning. Which is strange because the drive shows this when checked.

Code: Select all

~ # hdparm -i /dev/sda

/dev/sda:

 Model=INTEL SSDSA2M040G2GC, FwRev=2CV102HD, SerialNo=CVGB019200MC040NGN
 Config={ Fixed }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=unknown, BuffSize=unknown, MaxMultSect=16, MultSect=1
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=78165360
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio3 pio4 
 DMA modes:  mdma0 mdma1 mdma2 
 UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6 
 AdvancedPM=no WriteCache=enabled
 Drive conforms to: ATA/ATAPI-7 T13 1532D revision 1:  ATA/ATAPI-2,3,4,5,6,7

 * signifies the current active mode
So hdparm claims that it's on, but it won't let you change it. :?

joe
Top
Flow__
n00b
n00b
Posts: 26
Joined: Tue Jul 10, 2007 9:40 am

  • Quote

Post by Flow__ » Sat Oct 09, 2010 7:47 am

jathlon wrote: What kind of drives do you have installed?
Thats the information I would like to gather. Which SATA drives and chipsets together allow the Multi Sector Mode.
jathlon wrote: sda is a SSD while the rest are regular SATA drives. If I try to set -m 16 I get the same warning. Which is strange because the drive shows this when checked.

Code: Select all

~ # hdparm -i /dev/sda

/dev/sda:

 Model=INTEL SSDSA2M040G2GC, FwRev=2CV102HD, SerialNo=CVGB019200MC040NGN
 Config={ Fixed }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=unknown, BuffSize=unknown, MaxMultSect=16, MultSect=1
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=78165360
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio3 pio4 
 DMA modes:  mdma0 mdma1 mdma2 
 UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6 
 AdvancedPM=no WriteCache=enabled
 Drive conforms to: ATA/ATAPI-7 T13 1532D revision 1:  ATA/ATAPI-2,3,4,5,6,7

 * signifies the current active mode
So hdparm claims that it's on, but it won't let you change it. :?
If you look closely, it says MaxMultSect=16 and MultSect=1. So the maximum would be 16, but the current setting is 1. I suppose that there is somewhere a problem with the interaction of drive, libata and chipset in the new kernel/driver versions.

Flow
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Sat Oct 09, 2010 10:36 am

Code: Select all

dmesg | grep Direct-Access
[    0.640750] scsi 1:0:0:0: Direct-Access     ATA      WDC WD2000JB-00G 08.0 PQ: 0 ANSI: 5
[    0.641309] scsi 2:0:0:0: Direct-Access     ATA      WDC WD2500AAKS-0 01.0 PQ: 0 ANSI: 5
[    0.804652] scsi 3:0:0:0: Direct-Access     ATA      WDC WD5000AADS-0 05.0 PQ: 0 ANSI: 5
[    3.654172] scsi 5:0:0:0: Direct-Access     ATA      ST3750640AS      3.AA PQ: 0 ANSI: 5
i don't really remember, i think the seagate one and WD200 are sata
Top
Post Reply

8 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic