Solved

Physical server SQL Server swap file size and memory allocation ?

Posted on 2016-08-22
4
220 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 143

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 8

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 143

Expert Comment

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

Author Closing Comment

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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

617 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