All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: 4k sector drives
@ 2010-07-23 15:02 Khelben Blackstaff
  2010-07-23 15:28 ` Emmanuel Florac
  0 siblings, 1 reply; 27+ messages in thread
From: Khelben Blackstaff @ 2010-07-23 15:02 UTC (permalink / raw)
  To: xfs

> What MAY hurt, also for large writes, are the meta-data operations while 
> writing the file. (e.g. the file-size changes, journaling ...)

> But i haven't tested that and can't say for sure how much that hurts.

It hurts a lot. On my 1TB EARS when i was benchmarking unaligned
partitions, untarring a linux kernel for example took ages. (tar output
finished quickly but then you had to wait a long time till the shell
prompt returns)

With aligned partition, performance is normal.



_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
  2010-07-23 15:02 4k sector drives Khelben Blackstaff
@ 2010-07-23 15:28 ` Emmanuel Florac
  0 siblings, 0 replies; 27+ messages in thread
From: Emmanuel Florac @ 2010-07-23 15:28 UTC (permalink / raw)
  To: Khelben Blackstaff; +Cc: xfs

Le Fri, 23 Jul 2010 18:02:11 +0300
Khelben Blackstaff <eye.of.the.8eholder@gmail.com> écrivait:

> It hurts a lot. On my 1TB EARS when i was benchmarking unaligned
> partitions, untarring a linux kernel for example took ages. (tar
> output finished quickly but then you had to wait a long time till the
> shell prompt returns)

Extracting a linux tarball creates lots of very small files, so it is
expected to perform very badly on unaligned partitions. But I suppose
that copying the tarball itself to the disk could be only slightly
slower than normal.

-- 
------------------------------------------------------------------------
Emmanuel Florac     |   Direction technique
                    |   Intellique
                    |	<eflorac@intellique.com>
                    |   +33 1 78 94 84 02
------------------------------------------------------------------------

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
  2010-07-24 22:35           ` Michael Monnerie
@ 2010-07-25 15:33             ` Christoph Hellwig
  0 siblings, 0 replies; 27+ messages in thread
From: Christoph Hellwig @ 2010-07-25 15:33 UTC (permalink / raw)
  To: Michael Monnerie; +Cc: Christoph Hellwig, Eric Sandeen, xfs

On Sun, Jul 25, 2010 at 12:35:21AM +0200, Michael Monnerie wrote:
> Thank you Christoph for clarification, also thanks to Eric - I've been 
> aligning all partitions to a multiple of 512 sectors since a long time, 
> which fits all stripe set sizes up to 256k. Too bad that even Linux 
> fdisk and parted

Current fdisk, and with some limitations parted do the right thing
and align partitions on at least a 1MB boundary.  parted unfortunately
lowers alignment again when any kind of optimal I/O size hint is set,
but I'm still hoping for that bug to get fix in a new release.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
  2010-07-24 21:07         ` Eric Sandeen
@ 2010-07-24 22:35           ` Michael Monnerie
  2010-07-25 15:33             ` Christoph Hellwig
  0 siblings, 1 reply; 27+ messages in thread
From: Michael Monnerie @ 2010-07-24 22:35 UTC (permalink / raw)
  To: xfs; +Cc: Christoph Hellwig, Eric Sandeen


[-- Attachment #1.1: Type: Text/Plain, Size: 1400 bytes --]

On Samstag, 24. Juli 2010 Eric Sandeen wrote:
> > If it really is one using -s size=4096 is the right thing to do.
> 
> Haven't read the whole thread so maybe this is redundant, but make
> sure all partitions (if any) are 4k aligned as well (unless it has
> the secret-handshake sector 63 offset...)
 
Thank you Christoph for clarification, also thanks to Eric - I've been 
aligning all partitions to a multiple of 512 sectors since a long time, 
which fits all stripe set sizes up to 256k. Too bad that even Linux 
fdisk and parted still don't do something like that, today I setup a 
Novell SLES 11 with XEN VM, and everywhere parted would align the first 
partition (when using GPT) to sector 34.. what a number.. Good that 4K 
sector drives arrive now, so the tools will hopefully change for a 
better default.

BTW: AFAIK SSD drives have a (sometimes very large) internal alignment 
of bytes which should be used as a "stripe size" to meet the optimal I/O 
size. Is there a way to find out how big that is yet?

-- 
mit freundlichen Grüssen,
Michael Monnerie, Ing. BSc

it-management Internet Services
http://proteger.at [gesprochen: Prot-e-schee]
Tel: 0660 / 415 65 31

****** Aktuelles Radiointerview! ******
http://www.it-podcast.at/aktuelle-sendung.html

// Wir haben im Moment zwei Häuser zu verkaufen:
// http://zmi.at/langegg/
// http://zmi.at/haus2009/

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
  2010-07-24  8:47       ` Christoph Hellwig
@ 2010-07-24 21:07         ` Eric Sandeen
  2010-07-24 22:35           ` Michael Monnerie
  0 siblings, 1 reply; 27+ messages in thread
From: Eric Sandeen @ 2010-07-24 21:07 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: Michael Monnerie, xfs

Christoph Hellwig wrote:
> On Fri, Jul 23, 2010 at 12:59:07PM +0200, Michael Monnerie wrote:
>> On Freitag, 23. Juli 2010 Christoph Hellwig wrote:
>>> -b size=4096 is the default anyway, for 4k sector drivers you also
>>>  want -s size=4096, which you do not want for 512 byte sector disks.
>> Thanks for clarification. Should I use "-s size=4096" despite the drive 
>> saying 512b sectors? It's a "hidden" 4K sector drive, so maybe declaring 
>> it extra for XFS helps performance? Or does it not matter at all?
> 
> If it really is one using -s size=4096 is the right thing to do.

Haven't read the whole thread so maybe this is redundant, but make
sure all partitions (if any) are 4k aligned as well (unless it has
the secret-handshake sector 63 offset...)

-Eric

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
  2010-07-23 10:59     ` Michael Monnerie
  2010-07-23 12:56       ` Emmanuel Florac
  2010-07-23 13:10       ` Stan Hoeppner
@ 2010-07-24  8:47       ` Christoph Hellwig
  2010-07-24 21:07         ` Eric Sandeen
  2 siblings, 1 reply; 27+ messages in thread
From: Christoph Hellwig @ 2010-07-24  8:47 UTC (permalink / raw)
  To: Michael Monnerie; +Cc: Christoph Hellwig, xfs

On Fri, Jul 23, 2010 at 12:59:07PM +0200, Michael Monnerie wrote:
> On Freitag, 23. Juli 2010 Christoph Hellwig wrote:
> > -b size=4096 is the default anyway, for 4k sector drivers you also
> >  want -s size=4096, which you do not want for 512 byte sector disks.
> 
> Thanks for clarification. Should I use "-s size=4096" despite the drive 
> saying 512b sectors? It's a "hidden" 4K sector drive, so maybe declaring 
> it extra for XFS helps performance? Or does it not matter at all?

If it really is one using -s size=4096 is the right thing to do.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
  2010-07-23 13:50           ` Emmanuel Florac
@ 2010-07-23 14:13             ` Matthias Schniedermeyer
  0 siblings, 0 replies; 27+ messages in thread
From: Matthias Schniedermeyer @ 2010-07-23 14:13 UTC (permalink / raw)
  To: Emmanuel Florac; +Cc: Stan Hoeppner, xfs

On 23.07.2010 15:50, Emmanuel Florac wrote:
> Le Fri, 23 Jul 2010 15:38:43 +0200
> Matthias Schniedermeyer <ms@citd.de> écrivait:
> 
> > Only for writes, reads are for practically unaffected.
> 
> Sequential writes may be relatively unaffected too; if you write
> sequentially a couple of megabytes you'll have only a couple of
> additional blocks at the beginning and end of operation.

What MAY hurt, also for large writes, are the meta-data operations while 
writing the file. (e.g. the file-size changes, journaling ...)

But i haven't tested that and can't say for sure how much that hurts.




Bis denn

-- 
Real Programmers consider "what you see is what you get" to be just as 
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a "you asked for it, you got it" text editor -- complicated, 
cryptic, powerful, unforgiving, dangerous.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
  2010-07-23 13:38         ` Matthias Schniedermeyer
@ 2010-07-23 13:50           ` Emmanuel Florac
  2010-07-23 14:13             ` Matthias Schniedermeyer
  0 siblings, 1 reply; 27+ messages in thread
From: Emmanuel Florac @ 2010-07-23 13:50 UTC (permalink / raw)
  To: Matthias Schniedermeyer; +Cc: Stan Hoeppner, xfs

Le Fri, 23 Jul 2010 15:38:43 +0200
Matthias Schniedermeyer <ms@citd.de> écrivait:

> Only for writes, reads are for practically unaffected.

Sequential writes may be relatively unaffected too; if you write
sequentially a couple of megabytes you'll have only a couple of
additional blocks at the beginning and end of operation.

However random  and small IOs should be seriously hit.

-- 
------------------------------------------------------------------------
Emmanuel Florac     |   Direction technique
                    |   Intellique
                    |	<eflorac@intellique.com>
                    |   +33 1 78 94 84 02
------------------------------------------------------------------------

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
  2010-07-23 13:10       ` Stan Hoeppner
@ 2010-07-23 13:38         ` Matthias Schniedermeyer
  2010-07-23 13:50           ` Emmanuel Florac
  0 siblings, 1 reply; 27+ messages in thread
From: Matthias Schniedermeyer @ 2010-07-23 13:38 UTC (permalink / raw)
  To: Stan Hoeppner; +Cc: xfs

On 23.07.2010 08:10, Stan Hoeppner wrote:
> Michael Monnerie put forth on 7/23/2010 5:59 AM:
> > On Freitag, 23. Juli 2010 Christoph Hellwig wrote:
> >> -b size=4096 is the default anyway, for 4k sector drivers you also
> >>  want -s size=4096, which you do not want for 512 byte sector disks.
> > 
> > Thanks for clarification. Should I use "-s size=4096" despite the drive 
> > saying 512b sectors? It's a "hidden" 4K sector drive, so maybe declaring 
> > it extra for XFS helps performance? Or does it not matter at all?
> >  
> >> What values do the files
> >>
> >>         /sys/block/<device>/queue/logical_block_size
> >>         /sys/block/<device>/queue/physical_block_size
> >>         /sys/block/<device>/alignment_offset
> >>
> >> say about your disk?
> > 
> > 512, 512, 0 for a Western Digital D20EARS-00MVWB0 (2TB) which has 4K 
> > sectors but obviously hides it.
> 
> The WD20EARS-00MVWB0 is definitely a 4k sector drive:
> http://products.wdc.com/Library/Flyer/ENG/2178-771123.pdf
> 
> If you're currently seeing somewhere between 60-120MB/s per drive with hdparm
> or dd then you don't need to further tweak anything.  If alignment is off,
> from all I've read, performance will be abysmal, down in the sub 30MB/s range.

Only for writes, reads are for practically unaffected.

The problem for write is the "Read Modify Write" Cycle that is needed 
when you don't change all 8 512byte "sub-"sectors contained in a 4096 
byte sector.





Bis denn

-- 
Real Programmers consider "what you see is what you get" to be just as 
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a "you asked for it, you got it" text editor -- complicated, 
cryptic, powerful, unforgiving, dangerous.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
  2010-07-23 10:59     ` Michael Monnerie
  2010-07-23 12:56       ` Emmanuel Florac
@ 2010-07-23 13:10       ` Stan Hoeppner
  2010-07-23 13:38         ` Matthias Schniedermeyer
  2010-07-24  8:47       ` Christoph Hellwig
  2 siblings, 1 reply; 27+ messages in thread
From: Stan Hoeppner @ 2010-07-23 13:10 UTC (permalink / raw)
  To: xfs

Michael Monnerie put forth on 7/23/2010 5:59 AM:
> On Freitag, 23. Juli 2010 Christoph Hellwig wrote:
>> -b size=4096 is the default anyway, for 4k sector drivers you also
>>  want -s size=4096, which you do not want for 512 byte sector disks.
> 
> Thanks for clarification. Should I use "-s size=4096" despite the drive 
> saying 512b sectors? It's a "hidden" 4K sector drive, so maybe declaring 
> it extra for XFS helps performance? Or does it not matter at all?
>  
>> What values do the files
>>
>>         /sys/block/<device>/queue/logical_block_size
>>         /sys/block/<device>/queue/physical_block_size
>>         /sys/block/<device>/alignment_offset
>>
>> say about your disk?
> 
> 512, 512, 0 for a Western Digital D20EARS-00MVWB0 (2TB) which has 4K 
> sectors but obviously hides it.

The WD20EARS-00MVWB0 is definitely a 4k sector drive:
http://products.wdc.com/Library/Flyer/ENG/2178-771123.pdf

If you're currently seeing somewhere between 60-120MB/s per drive with hdparm
or dd then you don't need to further tweak anything.  If alignment is off,
from all I've read, performance will be abysmal, down in the sub 30MB/s range.

-- 
Stan

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
  2010-07-23 10:59     ` Michael Monnerie
@ 2010-07-23 12:56       ` Emmanuel Florac
  2010-07-23 13:10       ` Stan Hoeppner
  2010-07-24  8:47       ` Christoph Hellwig
  2 siblings, 0 replies; 27+ messages in thread
From: Emmanuel Florac @ 2010-07-23 12:56 UTC (permalink / raw)
  To: Michael Monnerie; +Cc: Christoph Hellwig, xfs


[-- Attachment #1.1: Type: text/plain, Size: 705 bytes --]

Le Fri, 23 Jul 2010 12:59:07 +0200
Michael Monnerie <michael.monnerie@is.it-management.at> écrivait:

> Thanks for clarification. Should I use "-s size=4096" despite the
> drive saying 512b sectors? It's a "hidden" 4K sector drive, so maybe
> declaring it extra for XFS helps performance? Or does it not matter
> at all?

I'd say it's the right time for a benchmark :)

-- 
------------------------------------------------------------------------
Emmanuel Florac     |   Direction technique
                    |   Intellique
                    |	<eflorac@intellique.com>
                    |   +33 1 78 94 84 02
------------------------------------------------------------------------

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
  2010-07-23 10:47       ` Christoph Hellwig
@ 2010-07-23 12:41         ` Stan Hoeppner
  0 siblings, 0 replies; 27+ messages in thread
From: Stan Hoeppner @ 2010-07-23 12:41 UTC (permalink / raw)
  To: xfs

Christoph Hellwig put forth on 7/23/2010 5:47 AM:
> On Fri, Jul 23, 2010 at 05:42:59AM -0500, Stan Hoeppner wrote:
>> FWIW, for comparison, my 500GB Blue series WD5000AAKS-00V1A0 shows
>>
>> logical_block_size	512
>> physical_block_size	512
>> alignment_offset	0
> 
> Which means there is absolutely no visible 4k sector support.

Sorry for the confusion Christoph.

I meant for comparison to a plain old 512 byte/sec drive from the same
manufacturer.  The Western Digital Caviar Blue model WD5000AAKS, my drive
above, has 512 byte sectors.  His 2TB Caviar Green has 4096 byte sectors.

-- 
Stan

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
  2010-07-23  9:58   ` Christoph Hellwig
  2010-07-23 10:42     ` Stan Hoeppner
@ 2010-07-23 10:59     ` Michael Monnerie
  2010-07-23 12:56       ` Emmanuel Florac
                         ` (2 more replies)
  1 sibling, 3 replies; 27+ messages in thread
From: Michael Monnerie @ 2010-07-23 10:59 UTC (permalink / raw)
  To: xfs; +Cc: Christoph Hellwig


[-- Attachment #1.1: Type: Text/Plain, Size: 1107 bytes --]

On Freitag, 23. Juli 2010 Christoph Hellwig wrote:
> -b size=4096 is the default anyway, for 4k sector drivers you also
>  want -s size=4096, which you do not want for 512 byte sector disks.

Thanks for clarification. Should I use "-s size=4096" despite the drive 
saying 512b sectors? It's a "hidden" 4K sector drive, so maybe declaring 
it extra for XFS helps performance? Or does it not matter at all?
 
> What values do the files
> 
>         /sys/block/<device>/queue/logical_block_size
>         /sys/block/<device>/queue/physical_block_size
>         /sys/block/<device>/alignment_offset
> 
> say about your disk?

512, 512, 0 for a Western Digital D20EARS-00MVWB0 (2TB) which has 4K 
sectors but obviously hides it.

-- 
mit freundlichen Grüssen,
Michael Monnerie, Ing. BSc

it-management Internet Services
http://proteger.at [gesprochen: Prot-e-schee]
Tel: 0660 / 415 65 31

****** Aktuelles Radiointerview! ******
http://www.it-podcast.at/aktuelle-sendung.html

// Wir haben im Moment zwei Häuser zu verkaufen:
// http://zmi.at/langegg/
// http://zmi.at/haus2009/

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
  2010-07-23 10:42     ` Stan Hoeppner
@ 2010-07-23 10:47       ` Christoph Hellwig
  2010-07-23 12:41         ` Stan Hoeppner
  0 siblings, 1 reply; 27+ messages in thread
From: Christoph Hellwig @ 2010-07-23 10:47 UTC (permalink / raw)
  To: Stan Hoeppner; +Cc: xfs

On Fri, Jul 23, 2010 at 05:42:59AM -0500, Stan Hoeppner wrote:
> FWIW, for comparison, my 500GB Blue series WD5000AAKS-00V1A0 shows
> 
> logical_block_size	512
> physical_block_size	512
> alignment_offset	0

Which means there is absolutely no visible 4k sector support.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
  2010-07-23  9:58   ` Christoph Hellwig
@ 2010-07-23 10:42     ` Stan Hoeppner
  2010-07-23 10:47       ` Christoph Hellwig
  2010-07-23 10:59     ` Michael Monnerie
  1 sibling, 1 reply; 27+ messages in thread
From: Stan Hoeppner @ 2010-07-23 10:42 UTC (permalink / raw)
  To: xfs

Christoph Hellwig put forth on 7/23/2010 4:58 AM:

> What values do the files
> 
> 	/sys/block/<device>/queue/logical_block_size
> 	/sys/block/<device>/queue/physical_block_size
> 	/sys/block/<device>/alignment_offset
> 
> say about your disk?

FWIW, for comparison, my 500GB Blue series WD5000AAKS-00V1A0 shows

logical_block_size	512
physical_block_size	512
alignment_offset	0

-- 
Stan

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
  2010-07-23  6:09 ` Michael Monnerie
@ 2010-07-23  9:58   ` Christoph Hellwig
  2010-07-23 10:42     ` Stan Hoeppner
  2010-07-23 10:59     ` Michael Monnerie
  0 siblings, 2 replies; 27+ messages in thread
From: Christoph Hellwig @ 2010-07-23  9:58 UTC (permalink / raw)
  To: Michael Monnerie; +Cc: xfs

On Fri, Jul 23, 2010 at 08:09:27AM +0200, Michael Monnerie wrote:
> On Mittwoch, 21. Juli 2010 Khelben Blackstaff wrote:
> > Nevertheless, you don't have to get them to report 4k to linux. As
> >  long as you align the partitions its fine. As i said in the other
> >  post, newer fdisk doesn't use "DOS compatibility mode" and uses
> >  sectors by default (instead of stupid CHS) with a 1MB alignment, so
> >  every partition will be properly aligned. If you don't dual boot
> >  Windows, you can also use GPT partitioning scheme. Also, from what i
> >  have seen, xfsprogs are quite clever and find most stuff on their
> >  own. I usually mkfs with "-s size=4096" just to be sure.
> 
> I always do -b size=4096 anyway, so I'm fine here. And I created the 
> partitions starting sector 512, so that should be good also.

-b size=4096 is the default anyway, for 4k sector drivers you also want
-s size=4096, which you do not want for 512 byte sector disks.

What values do the files

	/sys/block/<device>/queue/logical_block_size
	/sys/block/<device>/queue/physical_block_size
	/sys/block/<device>/alignment_offset

say about your disk?


_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
@ 2010-07-23  9:19 Khelben Blackstaff
  0 siblings, 0 replies; 27+ messages in thread
From: Khelben Blackstaff @ 2010-07-23  9:19 UTC (permalink / raw)
  To: xfs

> Thanks, I did this, and it even worked for my other WDC 
> WD2002FYPS-01U1B0, which was on 12 seconds (the EARS were on 8s as you 
> said), and now all three drives have a 120s delay before parking. That 

I am glad it worked.

>should be sufficient. It didn't work for the VelociRaptor in my PC, just 
> to mention.

Disks from the Green series support some features that help the
enviroment. Among them is having lower rpm (usually 5400) and
the intellipark feature that you set to 120s.

If i am not mistaken, VelociRaptor is the low latency 10K rpm
drive, so it's not surprising that it doesn't support this. Only
drives from the Green series do.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
  2010-07-21 10:33 Khelben Blackstaff
  2010-07-21 12:21 ` Michael Monnerie
@ 2010-07-23  6:09 ` Michael Monnerie
  2010-07-23  9:58   ` Christoph Hellwig
  1 sibling, 1 reply; 27+ messages in thread
From: Michael Monnerie @ 2010-07-23  6:09 UTC (permalink / raw)
  To: xfs


[-- Attachment #1.1: Type: Text/Plain, Size: 1970 bytes --]

On Mittwoch, 21. Juli 2010 Khelben Blackstaff wrote:
> Nevertheless, you don't have to get them to report 4k to linux. As
>  long as you align the partitions its fine. As i said in the other
>  post, newer fdisk doesn't use "DOS compatibility mode" and uses
>  sectors by default (instead of stupid CHS) with a 1MB alignment, so
>  every partition will be properly aligned. If you don't dual boot
>  Windows, you can also use GPT partitioning scheme. Also, from what i
>  have seen, xfsprogs are quite clever and find most stuff on their
>  own. I usually mkfs with "-s size=4096" just to be sure.

I always do -b size=4096 anyway, so I'm fine here. And I created the 
partitions starting sector 512, so that should be good also.

> Slightly offtopic, there is another "problem" with these drives. They
>  park the heads every 8 seconds, so they might wear prematurely. You
>  can change the 8sec timer or disable it with the wdidle3 utility
>  from this url
> http://support.wdc.com/product/download.asp?groupid=609&amp;sid=113&a
> mp;lang=en
> 
> If you want to know more about the problem, there are many forums
>  where you can read about wdidle3 and i also posted about it on my
>  blog.
>  http://lordkhelben.wordpress.com/2010/05/15/wd-caviar-green-hard-dis
> ks-idle-settings/
 
Thanks, I did this, and it even worked for my other WDC 
WD2002FYPS-01U1B0, which was on 12 seconds (the EARS were on 8s as you 
said), and now all three drives have a 120s delay before parking. That 
should be sufficient. It didn't work for the VelociRaptor in my PC, just 
to mention.

-- 
mit freundlichen Grüssen,
Michael Monnerie, Ing. BSc

it-management Internet Services
http://proteger.at [gesprochen: Prot-e-schee]
Tel: 0660 / 415 65 31

****** Aktuelles Radiointerview! ******
http://www.it-podcast.at/aktuelle-sendung.html

// Wir haben im Moment zwei Häuser zu verkaufen:
// http://zmi.at/langegg/
// http://zmi.at/haus2009/

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
  2010-07-21 10:33 Khelben Blackstaff
@ 2010-07-21 12:21 ` Michael Monnerie
  2010-07-23  6:09 ` Michael Monnerie
  1 sibling, 0 replies; 27+ messages in thread
From: Michael Monnerie @ 2010-07-21 12:21 UTC (permalink / raw)
  To: xfs


[-- Attachment #1.1: Type: Text/Plain, Size: 486 bytes --]

On Mittwoch, 21. Juli 2010 Khelben Blackstaff wrote:
> I hope i helped.
 
Sound good, will try and report back. Thx.

-- 
mit freundlichen Grüssen,
Michael Monnerie, Ing. BSc

it-management Internet Services
http://proteger.at [gesprochen: Prot-e-schee]
Tel: 0660 / 415 65 31

****** Aktuelles Radiointerview! ******
http://www.it-podcast.at/aktuelle-sendung.html

// Wir haben im Moment zwei Häuser zu verkaufen:
// http://zmi.at/langegg/
// http://zmi.at/haus2009/

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
  2010-07-21  9:14 ` Michael Monnerie
@ 2010-07-21 10:33   ` Emmanuel Florac
  0 siblings, 0 replies; 27+ messages in thread
From: Emmanuel Florac @ 2010-07-21 10:33 UTC (permalink / raw)
  To: Michael Monnerie; +Cc: xfs


[-- Attachment #1.1: Type: text/plain, Size: 996 bytes --]

Le Wed, 21 Jul 2010 11:14:15 +0200
Michael Monnerie <michael.monnerie@is.it-management.at> écrivait:

> I have these:
> Model=WDC WD20EARS-00MVWB0, FwRev=50.0AB50, SerialNo=WD-WMAZ20035646
> Model=WDC WD20EARS-00MVWB0, FwRev=50.0AB50, SerialNo=WD-WMAZ20028252
> 
> Any chance to get Linux know they are 4k sector drives manually?

From what I've read here and there, apparently they'll always present
512 bytes blocks, bu the system is somehow aware that the underlying
block is 4K large, apparently. It isn't very clear... 

BTW, I suppose that with such a drive, it's highly commendable to use
4K FS blocks (or larger) instead of the common 1K ones...

-- 
------------------------------------------------------------------------
Emmanuel Florac     |   Direction technique
                    |   Intellique
                    |	<eflorac@intellique.com>
                    |   +33 1 78 94 84 02
------------------------------------------------------------------------

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
@ 2010-07-21 10:33 Khelben Blackstaff
  2010-07-21 12:21 ` Michael Monnerie
  2010-07-23  6:09 ` Michael Monnerie
  0 siblings, 2 replies; 27+ messages in thread
From: Khelben Blackstaff @ 2010-07-21 10:33 UTC (permalink / raw)
  To: xfs

> I have these:
> Model=WDC WD20EARS-00MVWB0, FwRev=50.0AB50, SerialNo=WD-WMAZ20035646
> Model=WDC WD20EARS-00MVWB0, FwRev=50.0AB50, SerialNo=WD-WMAZ20028252

> Any chance to get Linux know they are 4k sector drives manually?

Your revision numbers are different than mine, because you have the 2TB drive,
but i guess its the same for these too. You can try "hdparm -I /dev/sdX" (capital i)
or "cat /sys/block/sdX/queue/hw_sector_size" to see what they report.

Mine report "Logical/Physical Sector size:           512 bytes"
There are newer revisions that report "Physical Sector size: 4096 bytes"

Nevertheless, you don't have to get them to report 4k to linux. As long as you
align the partitions its fine. As i said in the other post, newer fdisk doesn't use
"DOS compatibility mode" and uses sectors by default (instead of stupid CHS)
with a 1MB alignment, so every partition will be properly aligned. If you don't
dual boot Windows, you can also use GPT partitioning scheme.
Also, from what i have seen, xfsprogs are quite clever and find most stuff on
their own. I usually mkfs with "-s size=4096" just to be sure.

Slightly offtopic, there is another "problem" with these drives. They park the heads
every 8 seconds, so they _might_ wear prematurely. You can change the 8sec timer
or disable it with the wdidle3 utility from this url
http://support.wdc.com/product/download.asp?groupid=609&sid=113&lang=en

If you want to know more about the problem, there are many forums where
you can read about wdidle3 and i also posted about it on my blog.
http://lordkhelben.wordpress.com/2010/05/15/wd-caviar-green-hard-disks-idle-settings/

I hope i helped.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
  2010-07-21  7:53 Khelben Blackstaff
@ 2010-07-21  9:14 ` Michael Monnerie
  2010-07-21 10:33   ` Emmanuel Florac
  0 siblings, 1 reply; 27+ messages in thread
From: Michael Monnerie @ 2010-07-21  9:14 UTC (permalink / raw)
  To: xfs


[-- Attachment #1.1: Type: Text/Plain, Size: 975 bytes --]

On Mittwoch, 21. Juli 2010 Khelben Blackstaff wrote:
> No, don't set the jumper.

OK, luckily I didn't have time until now :-)

> WD EARS drives with 00Y model revision doesn't report the sector size
> properly and only report 512 bytes. (Use hdparm to see it)
> Those with 00Z revision report correctly that they have 4096 physical
> sector size and 512 logical sector size.

I have these:
Model=WDC WD20EARS-00MVWB0, FwRev=50.0AB50, SerialNo=WD-WMAZ20035646
Model=WDC WD20EARS-00MVWB0, FwRev=50.0AB50, SerialNo=WD-WMAZ20028252

Any chance to get Linux know they are 4k sector drives manually?

-- 
mit freundlichen Grüssen,
Michael Monnerie, Ing. BSc

it-management Internet Services
http://proteger.at [gesprochen: Prot-e-schee]
Tel: 0660 / 415 65 31

****** Aktuelles Radiointerview! ******
http://www.it-podcast.at/aktuelle-sendung.html

// Wir haben im Moment zwei Häuser zu verkaufen:
// http://zmi.at/langegg/
// http://zmi.at/haus2009/

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* RE: 4k sector drives
@ 2010-07-21  7:53 Khelben Blackstaff
  2010-07-21  9:14 ` Michael Monnerie
  0 siblings, 1 reply; 27+ messages in thread
From: Khelben Blackstaff @ 2010-07-21  7:53 UTC (permalink / raw)
  To: xfs

> shows a jumper exists for "advanced format", but doesn't tell what it 
> does. I'll try to set or unset it depending on what it is now, and see 
> if there's a difference.

No, don't set the jumper.

Because DOS required the first head to be empty for some reason
and because allmost every geometry uses 63 sectors per track,
the first partition usually starts at sector 63. The jumper tells the
disk firmware to use a mapping so that the sectors fall in a 4096
boundary. (It uses either +1 or -7 offset). So, the OS thinks it writes
to sector 63 while it truly writes to sector 64 (or 56). Every sector
is transparently mapped using this offset.

This jumper exists to be used only with legacy OSes like Windows XP
and makes sense when there is only one primary partition which covers
the whole disk.

So, don't use the jumper in linux but align properly the partitions.
fdisk from util-linux-ng > 0.17 align on 1MB so everything will be fine.
If you use an older version then align the partitions manually.

WD EARS drives with 00Y model revision doesn't report the sector size
properly and only report 512 bytes. (Use hdparm to see it)
Those with 00Z revision report correctly that they have 4096 physical
sector size and 512 logical sector size.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
  2010-07-20 20:39 ` Emmanuel Florac
@ 2010-07-20 21:34   ` Michael Monnerie
  0 siblings, 0 replies; 27+ messages in thread
From: Michael Monnerie @ 2010-07-20 21:34 UTC (permalink / raw)
  To: xfs


[-- Attachment #1.1: Type: Text/Plain, Size: 1043 bytes --]

On Dienstag, 20. Juli 2010 Emmanuel Florac wrote:
> They come in emulation mode (like many SATA-II drives came in SATA-I
> mode). You must set them to 4K blocks manually, for WD IIRC with a
>  DOS software. And you need a controller that supports 4K blocks, too
>  (probably anything older than a year won't).
 
Thank you Emmanuel and Stan,

http://wdc-de.custhelp.com/cgi-
bin/wdc_de.cfg/php/enduser/std_adp.php?p_faqid=5324&p_created=&p_cats=185&p_cv=1.185&p_pv=2.294&p_prods=227%2C294#jumper

shows a jumper exists for "advanced format", but doesn't tell what it 
does. I'll try to set or unset it depending on what it is now, and see 
if there's a difference.

-- 
mit freundlichen Grüssen,
Michael Monnerie, Ing. BSc

it-management Internet Services
http://proteger.at [gesprochen: Prot-e-schee]
Tel: 0660 / 415 65 31

****** Aktuelles Radiointerview! ******
http://www.it-podcast.at/aktuelle-sendung.html

// Wir haben im Moment zwei Häuser zu verkaufen:
// http://zmi.at/langegg/
// http://zmi.at/haus2009/

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
  2010-07-20 18:58 Michael Monnerie
  2010-07-20 20:30 ` Stan Hoeppner
@ 2010-07-20 20:39 ` Emmanuel Florac
  2010-07-20 21:34   ` Michael Monnerie
  1 sibling, 1 reply; 27+ messages in thread
From: Emmanuel Florac @ 2010-07-20 20:39 UTC (permalink / raw)
  To: Michael Monnerie; +Cc: xfs

Le Tue, 20 Jul 2010 20:58:27 +0200 vous écriviez:

> I recently bought 2 new 4k sector drives (WD Caviar Green 2TB, 
> WD20EARS), but Linux kernel 2.6.34.1 still says:
> 
> # blockdev --getss /dev/sdd
> 512
> 
> Shouldn't that be 4096? Where is the problem?

They come in emulation mode (like many SATA-II drives came in SATA-I
mode). You must set them to 4K blocks manually, for WD IIRC with a DOS
software. And you need a controller that supports 4K blocks, too
(probably anything older than a year won't).

-- 
------------------------------------------------------------------------
Emmanuel Florac     |   Direction technique
                    |   Intellique
                    |	<eflorac@intellique.com>
                    |   +33 1 78 94 84 02
------------------------------------------------------------------------

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 4k sector drives
  2010-07-20 18:58 Michael Monnerie
@ 2010-07-20 20:30 ` Stan Hoeppner
  2010-07-20 20:39 ` Emmanuel Florac
  1 sibling, 0 replies; 27+ messages in thread
From: Stan Hoeppner @ 2010-07-20 20:30 UTC (permalink / raw)
  To: xfs

Michael Monnerie put forth on 7/20/2010 1:58 PM:
> Dear list, I don't know who else to ask this:
> 
> I recently bought 2 new 4k sector drives (WD Caviar Green 2TB, 
> WD20EARS), but Linux kernel 2.6.34.1 still says:
> 
> # blockdev --getss /dev/sdd
> 512
> 
> Shouldn't that be 4096? Where is the problem?

Firmware sector size translation is the problem.  The WD20EARS is apparently
not a native 4096K sector size drive, but a transitional product.  It is 4k
sector size internally but the firmware translates this to 512B sectors to the
OS driver.  It's a hybrid.

Google "WD20EARS sector size"

-- 
Stan

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

* 4k sector drives
@ 2010-07-20 18:58 Michael Monnerie
  2010-07-20 20:30 ` Stan Hoeppner
  2010-07-20 20:39 ` Emmanuel Florac
  0 siblings, 2 replies; 27+ messages in thread
From: Michael Monnerie @ 2010-07-20 18:58 UTC (permalink / raw)
  To: xfs


[-- Attachment #1.1: Type: text/plain, Size: 618 bytes --]

Dear list, I don't know who else to ask this:

I recently bought 2 new 4k sector drives (WD Caviar Green 2TB, 
WD20EARS), but Linux kernel 2.6.34.1 still says:

# blockdev --getss /dev/sdd
512

Shouldn't that be 4096? Where is the problem?


-- 
mit freundlichen Grüssen,
Michael Monnerie, Ing. BSc

it-management Internet Services
http://proteger.at [gesprochen: Prot-e-schee]
Tel: 0660 / 415 65 31

****** Aktuelles Radiointerview! ******
http://www.it-podcast.at/aktuelle-sendung.html

// Wir haben im Moment zwei Häuser zu verkaufen:
// http://zmi.at/langegg/
// http://zmi.at/haus2009/

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2010-07-25 15:30 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-23 15:02 4k sector drives Khelben Blackstaff
2010-07-23 15:28 ` Emmanuel Florac
  -- strict thread matches above, loose matches on Subject: below --
2010-07-23  9:19 Khelben Blackstaff
2010-07-21 10:33 Khelben Blackstaff
2010-07-21 12:21 ` Michael Monnerie
2010-07-23  6:09 ` Michael Monnerie
2010-07-23  9:58   ` Christoph Hellwig
2010-07-23 10:42     ` Stan Hoeppner
2010-07-23 10:47       ` Christoph Hellwig
2010-07-23 12:41         ` Stan Hoeppner
2010-07-23 10:59     ` Michael Monnerie
2010-07-23 12:56       ` Emmanuel Florac
2010-07-23 13:10       ` Stan Hoeppner
2010-07-23 13:38         ` Matthias Schniedermeyer
2010-07-23 13:50           ` Emmanuel Florac
2010-07-23 14:13             ` Matthias Schniedermeyer
2010-07-24  8:47       ` Christoph Hellwig
2010-07-24 21:07         ` Eric Sandeen
2010-07-24 22:35           ` Michael Monnerie
2010-07-25 15:33             ` Christoph Hellwig
2010-07-21  7:53 Khelben Blackstaff
2010-07-21  9:14 ` Michael Monnerie
2010-07-21 10:33   ` Emmanuel Florac
2010-07-20 18:58 Michael Monnerie
2010-07-20 20:30 ` Stan Hoeppner
2010-07-20 20:39 ` Emmanuel Florac
2010-07-20 21:34   ` Michael Monnerie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.