dbTalk Databases Forums  

Correct Disk alignment offset value

microsoft.public.sqlserver.setup microsoft.public.sqlserver.setup


Discuss Correct Disk alignment offset value in the microsoft.public.sqlserver.setup forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
joker197cinque
 
Posts: n/a

Default Correct Disk alignment offset value - 07-30-2009 , 04:31 AM






I'm trying to understand which value to use in creating primary
partition in my win2003 server to use with sql 2005.

Using diskpart, this seems the best

"create partition primary align=64"

but I also found this version:

"create partition primary align=1024"

please can you explain the differences and the best choice ?

Thanks.

Reply With Quote
  #2  
Old   
Geoff N. Hiten
 
Posts: n/a

Default Re: Correct Disk alignment offset value - 07-30-2009 , 07:20 AM






This value is really only relevant on abstracted storage (SANs). Since the
SAN has its own stripe size, it makes sense to align the OS allocation units
with the underlying stripe boundaries. This prevents one I/O request from
creating two IO requests inside the storage system, leading to severely
degraded performance.

Most storage systems use 64 or 128 K stripes. Windows 2003, by default uses
a 63K MBR offset for all partitions, which messes up ANY abstract storage
system.

1024 is very much overkill. As long as you are at some multiple of 128,
you will be safe for almost any storage platform.

--
Geoff N. Hiten
Principal SQL Infrastructure Consultant
Microsoft SQL Server MVP




"joker197cinque" <joker197cinque (AT) gmail (DOT) com> wrote

Quote:
I'm trying to understand which value to use in creating primary
partition in my win2003 server to use with sql 2005.

Using diskpart, this seems the best

"create partition primary align=64"

but I also found this version:

"create partition primary align=1024"

please can you explain the differences and the best choice ?

Thanks.

Reply With Quote
  #3  
Old   
joker197cinque
 
Posts: n/a

Default Re: Correct Disk alignment offset value - 07-30-2009 , 08:03 AM



Quote:
This value is really only relevant on abstracted storage (SANs). *Sincethe
SAN has its own stripe size, it makes sense to align the OS allocation units
with the underlying stripe boundaries. *This prevents one I/O request from
creating two IO requests inside the storage system, leading to severely
degraded performance.
I read that, up to Win server 2003, disk alignment is mandatory using
standard SCSI HDs or LUNs in a SAN.

Quote:
Most storage systems use 64 or 128 K stripes. *Windows 2003, by defaultuses
a 63K MBR offset for all partitions, which messes up ANY abstract storage
system.
1024 is very much overkill. *As long as you are *at some multiple of 128,
you will be safe for almost any storage platform.
Sorry but I am not so good in english: I did an alignment of 64 .. do
you think it is a bad value ? Is 128 better ?

Thanks.

Reply With Quote
  #4  
Old   
Geoff N. Hiten
 
Posts: n/a

Default Re: Correct Disk alignment offset value - 07-30-2009 , 12:54 PM



64 should be fine.

--
Geoff N. Hiten
Principal SQL Infrastructure Consultant
Microsoft SQL Server MVP


"joker197cinque" <joker197cinque (AT) gmail (DOT) com> wrote

Quote:
This value is really only relevant on abstracted storage (SANs). Since the
SAN has its own stripe size, it makes sense to align the OS allocation
units
with the underlying stripe boundaries. This prevents one I/O request from
creating two IO requests inside the storage system, leading to severely
degraded performance.
I read that, up to Win server 2003, disk alignment is mandatory using
standard SCSI HDs or LUNs in a SAN.

Quote:
Most storage systems use 64 or 128 K stripes. Windows 2003, by default
uses
a 63K MBR offset for all partitions, which messes up ANY abstract storage
system.
1024 is very much overkill. As long as you are at some multiple of 128,
you will be safe for almost any storage platform.
Sorry but I am not so good in english: I did an alignment of 64 .. do
you think it is a bad value ? Is 128 better ?

Thanks.

Reply With Quote
  #5  
Old   
Linchi Shea
 
Posts: n/a

Default Re: Correct Disk alignment offset value - 07-30-2009 , 05:46 PM



Quote:
I read that, up to Win server 2003, disk alignment is mandatory using
standard SCSI HDs or LUNs in a SAN.
That is not true in all cases. Some disk arrays are insensitive to the
offset value (HP EVA for instance). However, since it doesn't hurt to have
the offset value as multiples of 64KB, you might as well set that as a
standard for any new storage provision. Now, for existing storage, you should
do some tests to see if it really matters because the effort to re-align the
disk offsets can be quite expensive in terms of schedule, manpower, down
time, etc.

Linchi

"joker197cinque" wrote:

Quote:
This value is really only relevant on abstracted storage (SANs). Since the
SAN has its own stripe size, it makes sense to align the OS allocation units
with the underlying stripe boundaries. This prevents one I/O request from
creating two IO requests inside the storage system, leading to severely
degraded performance.

I read that, up to Win server 2003, disk alignment is mandatory using
standard SCSI HDs or LUNs in a SAN.

Most storage systems use 64 or 128 K stripes. Windows 2003, by default uses
a 63K MBR offset for all partitions, which messes up ANY abstract storage
system.
1024 is very much overkill. As long as you are at some multiple of 128,
you will be safe for almost any storage platform.

Sorry but I am not so good in english: I did an alignment of 64 .. do
you think it is a bad value ? Is 128 better ?

Thanks.

Reply With Quote
  #6  
Old   
joker197cinque
 
Posts: n/a

Default Re: Correct Disk alignment offset value - 08-03-2009 , 09:29 AM



On 31 Lug, 00:46, Linchi Shea <LinchiS... (AT) discussions (DOT) microsoft.com>
wrote:

Quote:
However, since it doesn't hurt to have
the offset value as multiples of 64KB
It doesn't hurt ?

I read that it not only does not hurt butit gives a performance boost
up to 30% in some cases, so I would not speak in terms of "it doesn't
hurt". But probably I miss something ...

Reply With Quote
  #7  
Old   
Geoff N. Hiten
 
Posts: n/a

Default Re: Correct Disk alignment offset value - 08-03-2009 , 09:56 AM



It depends on the underlying abstraction mechanism the array uses.

That and how much Magic SAN Dust(tm) the manufacturer sprinkles inside the
box.

--
Geoff N. Hiten
Principal SQL Infrastructure Consultant
Microsoft SQL Server MVP




"joker197cinque" <joker197cinque (AT) gmail (DOT) com> wrote

Quote:
On 31 Lug, 00:46, Linchi Shea <LinchiS... (AT) discussions (DOT) microsoft.com
wrote:

However, since it doesn't hurt to have
the offset value as multiples of 64KB

It doesn't hurt ?

I read that it not only does not hurt butit gives a performance boost
up to 30% in some cases, so I would not speak in terms of "it doesn't
hurt". But probably I miss something ...

Reply With Quote
  #8  
Old   
Linchi Shea
 
Posts: n/a

Default Re: Correct Disk alignment offset value - 08-03-2009 , 11:26 AM



I think you mis-read me. I said, it doesn't hurt to have the offset value as
multiples of 64KB. That means, if you set the offset to a multiple of 64KB,
evne if it does not help, it won't degrade the performance since any multiple
of 64KB is considered aligned.

Now, you seem to assume that it'll always boost the performance. The fact is
that it does NOT always boost the performance to 'align' the disk offset. For
instance, on a HP EVA you probably won't see any difference one way or
another.

Linchi

"joker197cinque" wrote:

Quote:
On 31 Lug, 00:46, Linchi Shea <LinchiS... (AT) discussions (DOT) microsoft.com
wrote:

However, since it doesn't hurt to have
the offset value as multiples of 64KB

It doesn't hurt ?

I read that it not only does not hurt butit gives a performance boost
up to 30% in some cases, so I would not speak in terms of "it doesn't
hurt". But probably I miss something ...

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.