Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is it possible to set the Windows pagefile size in an answer file? The Windows Automated Installation Kit (WAIK) Unattended Windows Setup Reference shows that the pagefile for the windowsPE pass of setup can be set, but that this setting does not affect the pagefile of the Windows operating system.

I'm asking because I have a 16 GB RAM server with a 64GB system drive consisting of 2x64 GB SSDs in a RAID 1 array. The default pagefile that Windows creates for this kind of system is 16GB, so it takes up a lot of the system drive capacity. I think an 4 GB pagefile is sufficient for a kernel memory dump, so I would like to set that for the pagefile size. I know I can do this after Windows setup completes, but if it can be done at 4 GB from the beginning it might result in less fragmentation that if it is resized.

share|improve this question
add comment

4 Answers

Probably not the answer you're looking for, but regarding modifying anything to do with a page file, have a look at the accepted answer to this question.

share|improve this answer
add comment

As far as I know, there are no provisioning in answer file to do it. Answer file contains only settings that you get asked during setup. Page file is not one of them.

share|improve this answer
add comment

Here is a work around from Microsoft owned sysinternals:

"PageDefrag uses advanced techniques to provide you what commercial defragmenters cannot: the ability for you to see how fragmented your paging files and Registry hives are, and to defragment them. In addition, it defragments event log files and Windows 2000/XP hibernation files (where system memory is saved when you hibernate a laptop)."

http://technet.microsoft.com/en-us/sysinternals/bb897426.aspx

share|improve this answer
    
+1 for PageDefrag. I expect it will eventually become part of Windows itself. –  John Gardeniers Aug 26 '09 at 8:27
add comment

SSDs certainly bring less latency to the table but you are probably going to introduce more fragmentation by reducing the size of the swap file since the MRU pages will constantly be changing. Read the accepted answer that farseeker pointed to (It's actually correct and informative) then decide whether or not you want to resize.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.