Large Memory SQL Server database accelerator

Source: Internet
Author: User
Welcome to the Windows community forum, and interact with 3 million technical staff to enter the database with a relatively large memory configuration, which can effectively improve the database performance. Because the database is running, a region is allocated in the memory as the data cache. Generally, when a user accesses a database, the data is first read to the data cache. Next time

Welcome to the Windows community forum, and interact with 3 million technical staff> enter the database to configure a large memory, which can effectively improve the database performance. Because the database is running, a region is allocated in the memory as the data cache. Generally, when a user accesses a database, the data is first read to the data cache. Next time

Welcome to the Windows community forum and interact with 3 million technicians>

Configuring a large memory for the database can effectively improve the database performance. Because the database is running, a region is allocated in the memory as the data cache. Generally, when a user accesses a database, the data is first read to the data cache. The next time the user needs to access the data, the data will be read from the data cache. Because reading data in the data cache is several hundred times faster than reading data on the hard disk. Therefore, expanding the memory of the database server can effectively improve the database performance, especially when operating large databases.

However, the database servers currently widely used by enterprises are 32-bit operating systems. The 32-bit operating system has the maximum memory usage limit. Generally, the Standard 32-bit address can use a maximum of 4 GB memory. If the database administrator wants the database system to use more memory to improve the database performance, additional configuration is required. The following describes two common configuration methods to enable the SQLServer database server to support large memory and make it an accelerator for the database.

  1. enable database applications to support 3 GB of memory space.

Although the operating system supports 4 GB memory. However, this is not all used by databases and other applications. By default, 2 GB of memory is reserved for the 32-bit operating system. Other applications cannot be infected even if they are not used up. All applications, including SQL Server databases, can only use the remaining 2 GB of memory space.

However, in practical applications, the operating system usually does not need much 2 GB of memory. Based on my experience, it is generally enough to reserve 1 GB of memory for the operating system. As long as there are no viruses and other adverse factors, this memory will not be fully applied. In this case, the application can use up to 3 GB of memory space, an extra GB of memory.

It is actually very easy to achieve this transformation. In Windows, there is a boot startup configuration file. To enable the database server to support 3 GB user-mode process space, you must add a/3 GB parameter to the configuration file and restart the operating system. After this setting, the application can address 3 GB of process address space, while retaining 1 GB of memory space for the operating system.

Sometimes, this small configuration can greatly improve the database performance. I remember one time I optimized the database performance for an enterprise. After checking the user's database environment, I suggest you increase the memory of the database server from 2 GB to 4 GB. However, the effect has not been significantly improved. Just as I was confused, I thought of changing the memory allocation mode of the operating system and applications. To this end, I changed the BOOT configuration file and only reserved 1 GB of memory space for the operating system. After the restart, the database performance has been greatly improved.

[1] [2] [3]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.