RE: allocation unit size

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello Jeroen,

As for the disk allocation unit size for the SAN system used as SQL Server
disk, here are some of my understanding and suggestion:

Generally, there is no definite allocation unit size which may fit all
kinds of scenarios. As for the data file of SQL Server database, they
consists of database pages which is an 8KB chunk. Also, such chunk is
aligned on 8KB boundaries within the data files, starting at byte-offset 0
in the file. Therefore, normally any disk allocation unit whch is multiple
of the page chunk(8kb) should be ok.

However, in real world scenario, the size of the allocation unit we should
configured for our disk also depend on how our database
client(applications) will perform query on the certain database(since the
SQL Server's storage engine will perform I/O operation according to the
query). For example, if the application will frequently read large block
of data from that database, then the SQL Server storage engine will
certainly frequently perform large block of I/O read access from physical
disk, and thus make the allocaion unit of the disk to a large value will be
appropriate here(such as 64kb = 8kb * 8). Otherwise, if the database will
always perform read access against small block of data, configure the
allocation unit size to a small value is recommended.

Anyway, if convenient, I would recommend you perform a test on your
environment (use some performance counters or other external peformance
tools) to determine what's the exact value for your condition.

Here are some good articles discussing on the SQL Server data strorage
engine:

#SQL Server Storage Engine
https://blogs.msdn.com/sqlserverstorageengine/archive/category/13831.aspx

#Fragmentation (part 1):
https://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/23/644607.aspx

#Fragmentation (part 2): What are pages
http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/26/647005.aspx

Hope this helps. If there is any other information you wonder ,please feel
free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================



This posting is provided "AS IS" with no warranties, and confers no rights.






.



Relevant Pages

  • Re: Cant delete full text catalog on clustered sql serer 2000
    ... which is on a disk on which the SQL Server ... resource is not dependant. ... Microsoft Online Partner Support ...
    (microsoft.public.sqlserver.programming)
  • Re: Determine Disk Block Size ?
    ... As always, thanks Andrew. ... Most of the documentation for 2000 is wrong in that it may state you need multiple files to spawn multiple threads. ... >> The MS SQL Server Operations Manual makes a recommendation of using 64-KB>> cluster sizes. ... We have done so with a dramatic total disk I/O>> throughput. ...
    (microsoft.public.sqlserver.server)
  • Re: Nearest Common Ancestor Report (XDb1s $1000 Challenge)
    ... Hugo. ... > tempdb (used by SQL Server to store intermediate result sets) is on the ... My Windows page file is on that hard disk as well (though ... elapsed time was disk I/O latency vs. CPU time. ...
    (comp.object)
  • Re: SQL 2005 Best Practice vs SQL 2000: Application Files Separate from data (and log) files
    ... Our san guy is ... completely forget about is that moving the head on the disk is the slowest ... the drives that were being assigned to the SQL machine. ... I mean the binn folder which contains the sql server executable among ...
    (microsoft.public.sqlserver.setup)
  • RE: DBCC CHECKDB in SQL Server 2000 - inconsistent results
    ... You can use the SQLIOSTRESS utility to perform stress tests on disk ... > subsystems to simulate Microsoft SQL Server 2000 and Microsoft SQL Server ... SQL Server and Caching Disk Controllers ...
    (microsoft.public.sqlserver.server)