Solved

Physical server SQL Server swap file size and memory allocation ?

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

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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Issue: One Windows 2008 R2 64bit server on the network unable to connect to a buffalo Device (Linkstation) with firmware version 1.56. There are a total of four servers on the network this being one of them. Troubleshooting Steps: Connect via h…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

726 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