Microsoft KB Archive/816542

= The Windows XP Low Fragmentation Heap Algorithm Feature Is Available for Windows 2000 =

Article ID: 816542

Article Last Modified on 10/26/2006

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Professional Edition
 * Microsoft Windows 2000 Advanced Server

-





SUMMARY
The Low Fragmentation Heap algorithm that is available in Windows XP is now available for Windows 2000.

The Low Fragmentation Heap algorithm minimizes heap fragmentation and improves Win32 Heap allocation performance when it allocates or deallocates variable-length memory blocks. This algorithm also scales well on multiprocessor computers.



MORE INFORMATION
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites
No prerequisites are required.

Restart Requirement
You must restart your computer after you apply this feature.

Hotfix Replacement Information
This hotfix does not replace any other hotfixes.

File Information
The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.   Date        Time  Version         Size    File name -  11-Jun-2003 18:49 5.0.2195.6738    42,256 Basesrv.dll 17-Jan-2003 16:06 5.0.2195.6656  236,304 Cmd.exe 11-Jun-2003 18:49 5.0.2195.6660  233,232 Gdi32.dll 11-Jun-2003 18:49 5.0.2195.6741  711,440 Kernel32.dll 04-Feb-2003 20:15 5.0.2195.6661   29,264 Mountmgr.sys 11-Jun-2003 18:49 5.0.2195.6751  333,072 Msgina.dll 11-Jun-2003 18:49 5.0.2195.6741  483,600 Ntdll.dll 04-Jun-2003 17:17 5.0.2195.6752 1,695,296 Ntkrnlmp.exe 04-Jun-2003 17:18 5.0.2195.6752 1,694,336 Ntkrnlpa.exe 04-Jun-2003 17:18 5.0.2195.6752 1,715,264 Ntkrpamp.exe 04-Jun-2003 17:17 5.0.2195.6752 1,672,832 Ntoskrnl.exe 08-Apr-2003 05:54 5.0.2195.6701   90,232 Rdpwd.sys 11-Jun-2003 18:49 5.0.2195.6688  403,216 User32.dll 11-Jun-2003 18:49 5.0.2195.6745  385,808 Userenv.dll 02-Jun-2003 21:26 5.0.2195.6751 1,628,816 Win32k.sys 29-May-2003 23:25 5.0.2195.6750  181,520 Winlogon.exe 11-Jun-2003 18:49 5.0.2195.6752  243,984 Winsrv.dll 11-Jun-2003 18:49 5.0.2195.6741  711,440 Kernel32.dll 11-Jun-2003 18:49 5.0.2195.6741  483,600 Ntdll.dll 11-Jun-2003 18:49 5.0.2195.6751 1,628,816 Win32k.sys 11-Jun-2003 18:49 5.0.2195.6752  243,984 Winsrv.dll This hotfix updates the Windows API to enable the new memory management scheme. To use this new implementation of the HeapSetInformation function, use an API call that is similar to the following:

ULONG ulHeapCompatibilityInformation ; ulHeapCompatibilityInformation = 2; if(HeapSetInformation(hCHeap,HeapCompatibilityInformation,&ulHeapCompatibilityInformation, sizeof(ulHeapCompatibilityInformation))) { wprintf(L&quot;Heap algorithm set to %s Low-fragmentation heap(handle=0x%x)\n&quot;,         buf[ulHeapCompatibilityInformationRequested], hCHeap); }  else wprintf( L&quot;Unable to set Heap information to %s (handle=0x%x)GetLastError= %d 0x%x\n&quot;,          buf[ulHeapCompatibilityInformationRequested],hCHeap, GetLastError, GetLastError); } For additional information about how hotfix packages are named, click the following article number to view the article in the Microsoft Knowledge Base:

816915 New Naming Schema for Microsoft Windows Hotfix Packages

Additional query words: Win2000

Keywords: kbhotfixserver kbqfe kbinfo kbbug kbfix kbqfe kbwin2000presp5fix KB816542

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.