Enables use of Address Windowing Extensions (AWE) on Windows for setting the size of the database server cache.
{ dbsrv11 | dbeng11 } -cw ...
Windows
The amount of memory available for use as a database server cache is one of the key factors controlling performance. Because Windows supports Address Windowing Extensions, you can use the -cw option to take advantage of large cache sizes based on the maximum amount of physical memory in the system.
AWE caches are not supported on 64-bit SQL Anywhere database servers.
Operating system | Maximum non-AWE cache size | Maximum amount of physical memory supported by Windows |
---|---|---|
Windows 2000 Professional | 1.8 GB | 4 GB |
Windows 2000 Server | 1.8 GB | 4 GB |
Windows 2000 Advanced Server | 2.7 GB1 | 8 GB |
Windows 2000 Datacenter Server | 2.7 GB1 | 64 GB |
Windows XP Home Edition | 1.8 GB | 2 GB |
Windows XP Professional | 1.8 GB | 4 GB |
Windows Server 2003, Web Edition | 1.8 GB | 2 GB |
Windows Server 2003, Standard Edition | 1.8 GB | 4 GB |
Windows Server 2003, Enterprise Edition | 2.7 GB1 | 32 GB |
Windows Server 2003, Datacenter Edition | 2.7 GB1 | 64 GB |
Windows Vista Ultimate | 2.7 GB2 | 4 GB |
Windows Vista Enterprise | 2.7 GB2 | 4 GB |
Windows Vista Business | 2.7 GB2 | 4 GB |
Windows Vista Home Premium | 2.7 GB2 | 4 GB |
Windows Vista Home Basic | 2.7 GB2 | 4 GB |
Windows Vista Starter | 2.7 GB2 | 1 GB |
1 On Windows XP/200x, you must start the operating system using the /3GB option to use a cache of this size.
2 On Windows Vista, you must restart the operating system after running the following command as an administrator to use a cache of this size:
bcdedit /set increaseuserva 3072 |
When using an AWE cache, almost all of the available physical memory in the system can be allocated for the cache.
If you can set a cache of the required size using a non-AWE cache, this is recommended because AWE caches allocate memory that can only be used by the database server. This means that while the database server is running, the operating system and other applications cannot use the memory allocated for the database server cache. AWE caches do not support dynamic cache sizing. Therefore, if an AWE cache is used and you specify the -ch or -cl options to set the upper and lower cache size, they are ignored.
By default, 512 MB of address space is reserved for purposes other than the SQL Anywhere AWE cache (address space is the amount of memory that can be accessed by a program at any given time). While this amount is sufficient in most cases, you can change the amount of reserved address space using the -cm option.
On Windows Vista, only elevated database servers can use AWE memory. If you are autostarting a database server on Windows Vista, you must specify ELEVATE=YES in your connection string so that autostarted database server executables are elevated. See Elevate connection parameter.
To start a database server with an AWE cache, you must do the following:
On Windows Vista, if your system has between 2 GB and 16 GB of memory, you must run the following command as an administrator:
bcdedit /set increaseuserva 3072 |
On Windows XP/200x, if your system has more than 16 GB of memory, do not add the /3GB option to the Windows boot line in the [operating systems] section of the boot.ini file because Windows won't be able to address memory beyond 16 GB.
On Windows Vista if your system has more than 4 GB of memory, run the following command as an administrator:
bcdedit /set pae ForceEnable |
The Select Users Or Groups window appears.
If you specify the -cw option and the -c option on the command line, the database server attempts the initial cache allocation as follows:
When you specify the -cw option and do not specify the -c option, the database server attempts the initial cache allocation as follows:
When the server uses an AWE cache, the cache page size will be no smaller than 4 KB and dynamic cache sizing is disabled.
See Use the cache to improve performance.
The following example starts a server named myserver that starts with a cache size of 12 GB and loads the database c:\test\mydemo.db:
dbeng11 -n myserver -c 12G -cw c:\test\mydemo.db |
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |