All of lore.kernel.org
 help / color / mirror / Atom feed
* 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-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  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  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
* 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-21 10:33 4k sector drives 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
  -- strict thread matches above, loose matches on Subject: below --
2010-07-23 15:02 Khelben Blackstaff
2010-07-23 15:28 ` Emmanuel Florac
2010-07-23  9:19 Khelben Blackstaff
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.