Solved

Physical server SQL Server swap file size and memory allocation ?

Posted on 2016-08-22
4
61 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

OfficeMate Freezes on login or does not load after login credentials are input.
A procedure for exporting installed hotfix details of remote computers using powershell
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. Theā€¦

758 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now