Solved

Physical server SQL Server swap file size and memory allocation ?

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

734 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