FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 09-23-2008, 02:52 AM
James
 
Default hdparm && Compact Flash

Hello,

I have a 4M sandisk card and need advice on what to put
in the /etc/conf.d/hdparm file.

Here's the hardware
CompactFlash ATA device
Model Number: SanDisk SDCFB-4096
Serial Number: 003416B2397F2159
Firmware Revision: HDX 4.03
Standards:
Supported: 4
Likely used: 4
Configuration:
Logical max current
cylinders 7964 7964
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 8027712
LBA user addressable sectors: 8027712
device size with M = 1024*1024: 3919 MBytes
device size with M = 1000*1000: 4110 MBytes (4 GB)
Capabilities:
LBA, IORDY(may be)(cannot be disabled)
Standby timer values: spec'd by Vendor
R/W multiple sector transfer: Max = 4 Current = 4
DMA: mdma0 mdma1 mdma2 (?)
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* CFA feature set




Any suggestion as to what to put in the /etc/conf.d/hdparm file are
most welcome.

It's running gentoo just fine with the default entries....
 
Old 09-24-2008, 05:51 PM
Mick
 
Default hdparm && Compact Flash

On Tuesday 23 September 2008, James wrote:
> Hello,
>
> I have a 4M sandisk card and need advice on what to put
> in the /etc/conf.d/hdparm file.
>
> Here's the hardware
> CompactFlash ATA device
> Model Number: SanDisk SDCFB-4096
> Serial Number: 003416B2397F2159
> Firmware Revision: HDX 4.03
> Standards:
> Supported: 4
> Likely used: 4
> Configuration:
> Logical max current
> cylinders 7964 7964
> heads 16 16
> sectors/track 63 63
> --
> CHS current addressable sectors: 8027712
> LBA user addressable sectors: 8027712
> device size with M = 1024*1024: 3919 MBytes
> device size with M = 1000*1000: 4110 MBytes (4 GB)
> Capabilities:
> LBA, IORDY(may be)(cannot be disabled)
> Standby timer values: spec'd by Vendor
> R/W multiple sector transfer: Max = 4 Current = 4
> DMA: mdma0 mdma1 mdma2 (?)
> Cycle time: min=120ns recommended=120ns
> PIO: pio0 pio1 pio2 pio3 pio4
> Cycle time: no flow control=120ns IORDY flow control=120ns
> Commands/features:
> Enabled Supported:
> * CFA feature set
>
>
>
>
> Any suggestion as to what to put in the /etc/conf.d/hdparm file are
> most welcome.
>
> It's running gentoo just fine with the default entries....

I can't answer your question directly - but from my USB flash card I see that
hdparm is not reading it as a hard drive. I can only assume that the CF
controller chip is not compatible with the hdparm IO for IDE chip drives:

# hdparm /dev/sda

/dev/sda:
readonly = 0 (off)
readahead = 256 (on)
geometry = 1023/32/61, sectors = 1997312, start = 0

# hdparm -i /dev/sda

/dev/sda:
HDIO_GET_IDENTITY failed: Invalid argument

# hdparm -I /dev/sda

/dev/sda:
HDIO_DRIVE_CMD(identify) failed: Input/output error

--
Regards,
Mick
 
Old 09-24-2008, 09:28 PM
Simon
 
Default hdparm && Compact Flash

Hi guys,
I am another newbie trying to answer a question, here on my eeepc
701, hdparm gives even more limited information. This is a 2g
kingston compact flash. (Note that even though last line reports i/o
error, nothing was written in /var/log/messages about it). I suspect
device drivers to yield a block device asap but let optimizations and
other extras aside.


satelite ~ # hdparm --verbose /dev/sda ; hdparm -i --verbose /dev/sda
; hdparm -I --verbose /dev/sda

/dev/sda:
HDIO_GET_32BIT failed: Invalid argument
HDIO_GET_UNMASKINTR failed: Invalid argument
HDIO_GET_DMA failed: Invalid argument
HDIO_GET_KEEPSETTINGS failed: Invalid argument
readonly = 0 (off)
readahead = 256 (on)
geometry = 7856/16/32, sectors = 4022272, start = 0

/dev/sda:
HDIO_GET_IDENTITY failed: Invalid argument

/dev/sda:
outgoing cdb: 85 08 2e 00 00 00 00 00 00 00 00 00 00 40 ec 00
SG_IO: ATA_16 status=0x2, host_status=0x0, driver_status=0x8
SG_IO: sb[] = {70 00 05 00 00 00 00 10}
SG_IO: bad/missing ATA_16 sense data:: 70 00 05 00 00 00 00 10 00 00
00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
outgoing cdb: 85 08 2e 00 00 00 00 00 00 00 00 00 00 40 a1 00
SG_IO: ATA_16 status=0x2, host_status=0x0, driver_status=0x8
SG_IO: sb[] = {70 00 05 00 00 00 00 10}
SG_IO: bad/missing ATA_16 sense data:: 70 00 05 00 00 00 00 10 00 00
00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
HDIO_DRIVE_CMD(identify) failed: Input/output error




On Wed, Sep 24, 2008 at 1:51 PM, Mick <michaelkintzios@gmail.com> wrote:
> On Tuesday 23 September 2008, James wrote:
>> Hello,
>>
>> I have a 4M sandisk card and need advice on what to put
>> in the /etc/conf.d/hdparm file.
>>
>> Here's the hardware
>> CompactFlash ATA device
>> Model Number: SanDisk SDCFB-4096
>> Serial Number: 003416B2397F2159
>> Firmware Revision: HDX 4.03
>> Standards:
>> Supported: 4
>> Likely used: 4
>> Configuration:
>> Logical max current
>> cylinders 7964 7964
>> heads 16 16
>> sectors/track 63 63
>> --
>> CHS current addressable sectors: 8027712
>> LBA user addressable sectors: 8027712
>> device size with M = 1024*1024: 3919 MBytes
>> device size with M = 1000*1000: 4110 MBytes (4 GB)
>> Capabilities:
>> LBA, IORDY(may be)(cannot be disabled)
>> Standby timer values: spec'd by Vendor
>> R/W multiple sector transfer: Max = 4 Current = 4
>> DMA: mdma0 mdma1 mdma2 (?)
>> Cycle time: min=120ns recommended=120ns
>> PIO: pio0 pio1 pio2 pio3 pio4
>> Cycle time: no flow control=120ns IORDY flow control=120ns
>> Commands/features:
>> Enabled Supported:
>> * CFA feature set
>>
>>
>>
>>
>> Any suggestion as to what to put in the /etc/conf.d/hdparm file are
>> most welcome.
>>
>> It's running gentoo just fine with the default entries....
>
> I can't answer your question directly - but from my USB flash card I see that
> hdparm is not reading it as a hard drive. I can only assume that the CF
> controller chip is not compatible with the hdparm IO for IDE chip drives:
>
> # hdparm /dev/sda
>
> /dev/sda:
> readonly = 0 (off)
> readahead = 256 (on)
> geometry = 1023/32/61, sectors = 1997312, start = 0
>
> # hdparm -i /dev/sda
>
> /dev/sda:
> HDIO_GET_IDENTITY failed: Invalid argument
>
> # hdparm -I /dev/sda
>
> /dev/sda:
> HDIO_DRIVE_CMD(identify) failed: Input/output error
>
> --
> Regards,
> Mick
>



--
When Earth was the only inhabited planet in the Galaxy, it was a
primitive place, militarily speaking. The only weapon they had ever
invented worth mentioning was a crude and inefficient nuclear-reaction
bomb for which they had not even developed the logical defense. -
Asimov
 
Old 09-25-2008, 03:26 PM
James
 
Default hdparm && Compact Flash

Simon <turner25 <at> gmail.com> writes:

> I am another newbie trying to answer a question, here on my eeepc
> 701, hdparm gives even more limited information. This is a 2g
> kingston compact flash. (Note that even though last line reports i/o
> error, nothing was written in /var/log/messages about it). I suspect
> device drivers to yield a block device asap but let optimizations and
> other extras aside.


Well I was looking for one of the wise (you7ng)old masters to answer.
Since that did not happen, I just 'brute forced' a solution, that is
optimal (hopefully) for my hardware. Here's what I did, so it may or
may not help you.


You can make adjustments to hdparm dynamically at the command line like so

hdparm -c1 /dev/hda < your /dev/drive may differ so adjust accordingly>

hdparm -tT /dev/hda < this perform a simple throughput test>

hdparm -a 256 -m16 -c1 /dev/hda < make some adjustments and retest >

hdparm -m4 -c1 /dev/hda < gave me the best results for my hardware>


Thus my /etc/conf.d/hdparm file looks like this:

# These setting for the 4 gig CF Sandisc card seem to be optimal
hda_args="-m4 -c1 "



If you really wanted to go all out testing, use bonnie or bonnie++,
both are in portage.


hth,
James
 

Thread Tools




All times are GMT. The time now is 05:44 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org