INF: Partitioning Logical Disks for Use with SQL Server

Last reviewed: April 25, 1997
Article ID: Q46086

The information in this article applies to:

  - Microsoft SQL Server version 4.2 for OS/2

SUMMARY

The following information discusses how hard disks should be partitioned to allow for optimal performance of database devices in SQL Server.

MORE INFORMATION

SQL Server acquires disk space from OS/2 when DISK INIT is executed by allocating a normal OS/2 file-system file of the specified size. The smallest increment is 1 megabyte (MB); this is true regardless of the size of the disk partition or file-system cluster size. SQL Server keeps track of how that space is used by the various tables and database objects through "allocation pages," which occur every 256th page. This scheme could allow DISK INIT to allocate an OS/2 file as small as 1/2 MB (256 2K pages); however, the smallest increment is 1 MB.

The allocation pages are used by SQL Server to keep track of how the disk space is being used by the various tables and database objects within SQL Server. As far as OS/2 and the file system are concerned, the space was allocated when the DISK INIT was executed and never changes.

There is no advantage to partitioning the hard disk so that it results in smaller cluster sizes because the space is statically allocated and never changes. The only performance concern is to minimize disk-head movement. Database devices should either be allocated on a newly formatted disk or compacted with a disk-organizer utility to be sure that all of the clusters of the database devices are physically contiguous on the disk. If multiple physical drives are available, the most heavily used data should be allocated on different database devices, which should in turn be placed on different physical drives. Putting different database devices on different logical drives does not improve performance.


Additional query words:
Keywords : kbusage SSrvServer
Version : 4.2
Platform : OS/2


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 25, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.