Solved

Physical server SQL Server swap file size and memory allocation ?

Posted on 2016-08-22
4
97 Views
Last Modified: 2016-08-23
People,

I'm using physical box SQL Server 2012 SP1 with the below specification:

1 sockets x 4CPU cores
32 GB RAM
C:\ - 2x 72 GB HDD - RAID 1 - 68 GB usable (1 GB free)
D:\ - 2x 146 GB HDD - RAID 1 - 138 GB usable (15 GB free)

I'm about to upgrade the RAM using the spare available into 64 GB, but the swap file on the C: drive going to kill it ?

Can I set the swap file to be maximum 4 GB only before I shutdown the server ?

Thanks,
0
Comment
  • 2
  • 2
4 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 41766464
on a SQL box, you should never run into actually using the swap file.
so, if you actually increase the RAM, it does not matter anyhow...
http://www.howtogeek.com/196238/how-big-should-your-page-file-or-swap-partition-be/

what is relevant is the MAX MEMORY setting on the sql server box related to the RAM on the box - other apps on the box using RAM
https://msdn.microsoft.com/en-us/library/ms178067.aspx
the default setting for min server memory is 0, and the default setting for max server memory is 2147483647 MB. By default, SQL Server can change its memory requirements dynamically based on available system resources.

Open in new window

which is actually a "bad" setting, unless you really have huge amounts of RAM vs smaller database sizes. usually, I set that setting (it's in KB!) so that 70% of the RAM may be used, leaving the rest to the OS and "stuff" running on the box (usually, backup, AV, monitoring etc are also running on the box and need ram besides the SQL Server itself)
1
 
LVL 7

Author Comment

by:Senior IT System Engineer
ID: 41766472
Guy,

Thanks for the article and the explanation, I can now set the swap file to static 4 GB on C: drive because the Server properties > Memory tab I have set the minimum to be 8 GB and maximum 80% of maximum total physical RAM.

Plus the Boost SQL server priority has been selected as well.

Is that correct ?
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 41766495
nothing wrong as far as I know those settings.
0
 
LVL 7

Author Closing Comment

by:Senior IT System Engineer
ID: 41766877
Thanks !
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This article explains how to install and use the NTBackup utility that comes with Windows Server.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question