Solved

Pagefile.sys too large

Posted on 2013-11-26
11
2,670 Views
Last Modified: 2013-12-17
I'm encountering an issue that pagefile.sys is too large on one of the Web server.
it's like 13GB which taking up much space on my hard drive
Windows 2008 R2 Standard SP1
8GB RAM
64 Bit
Can i delete the file? can i move it to a different drive? would that cause any issue?
is there a different way that you might suggest for me to manage this file?
Any help would be appreciated.
0
Comment
Question by:racisco
[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
  • 5
  • 3
  • 2
  • +1
11 Comments
 
LVL 35

Expert Comment

by:Dan Craciun
ID: 39678347
System Properties-> Advanced -> Performance Settings-> Advanced->Change

Uncheck "Automatically manage page file", then manually set it to a value less than 13 GB (usually the same size as your RAM).

You can also move it to another partition. Just set "No paging file" on C and then press "SET"

Reboot and the pagefile will be the size you chose.

HTH,
Dan
0
 
LVL 96

Expert Comment

by:Lee W, MVP
ID: 39678360
Pagefiles are virtual memory - in most cases, unless your server has insane amounts of RAM, you NEED a pagefile and not having one will cause problems.

Move it to another drive as described above but leave 1 GB on the C: drive (do this by specifying the pagefile size.  Then place the remainder on another drive, preferrably on another PHYSICAL drive, not just another partition as this can improve performance.
0
 
LVL 22

Expert Comment

by:Nick Rhode
ID: 39678364
Technically the page file should be set to 1.5 x physical ram in the system.  If you want to free up space you can move it to another drive like leew recommended but on average for 8gb of ram 13gb page file seems correct.
0
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.

 
LVL 35

Expert Comment

by:Dan Craciun
ID: 39678391
The 1.5x physical RAM was correct for XP and Server 2003 with less than 1 GB RAM.
For newer OS and larger RAM, the minimum is 1x RAM.

See here: http://support.microsoft.com/kb/2860880
0
 
LVL 96

Expert Comment

by:Lee W, MVP
ID: 39678494
@DanCraciun
That KB contains a lot of very good information.  How often do you accept Microsoft Minimums as the recommended amounts?  I've usually increased things because as you know, MS has a tendency to underestimate real world needs.
0
 
LVL 35

Expert Comment

by:Dan Craciun
ID: 39678583
If, when I monitor my servers (not hundreds, I admit), I see lots of swapping, I usually add more RAM.

That being said, I too over provision on swap, if I have the space. Usually on a different hdd than the OS.

On 2 servers with 16GB RAM I keep only 4 GB as pagefile. Severely space constrained, and an update on storage is out of the question. But they work for more than 1 year now without noticeable bad side effects.
0
 

Author Comment

by:racisco
ID: 39680521
but if i move the file to a partition on the same drive that would kill the performance! wouldn't it?
0
 
LVL 35

Expert Comment

by:Dan Craciun
ID: 39680535
Nope. You would have the same performance, maybe a little less if it will reside farther from the middle of the hdd platans.

It basically reads and writes on the same hdd. Why would it "kill" performance?

It would be faster if the swap resides on another hdd than your OS only if that hdd has fewer IO operations. Otherwise, if you move it to a heavily used hdd you'd end up with slower swap operations.
0
 

Author Comment

by:racisco
ID: 39687702
@DanCracuim
I have 2 drives: C and D
what do you recommend from your two options:
1- Uncheck "Automatically manage page file", then set the value manually? " if yes then do i still need to move the page file to D drive? also what's the initial size and maximum size in MB do you recommend for 16GB RAM?

2-move the page file to D drive & set "No paging file" on C?

Thanks
0
 
LVL 35

Accepted Solution

by:
Dan Craciun earned 500 total points
ID: 39691692
If you have enough space on the C: drive, leave it there. Preferably set to a static value.
Which should be at least 16GB. More if you have the space. And the min value should be equal to the max value.
If you're space-constrained on C, move  it on D. The performance should be about the same.

The reason why I recommend you set it manually is because of fragmentation. If you allocate all your pagefile at once (and you have the space) it will be all in one chunk. If you let Windows shrink/enlarge the swap, there's a chance it won't find contiguous space and it will allocate pieces of free space from where it finds them.

Of course, this is only a problem on standard HDDs. On SSDs yo don't have issues with fragmentation.
0
 

Author Closing Comment

by:racisco
ID: 39725162
thank you
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

627 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