MSFN Forum: Pagefile Configuration By Registry Manipulation - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Pagefile Configuration By Registry Manipulation Rate Topic: -----

#1 User is offline   cactoid 

  • Group: Members
  • Posts: 3
  • Joined: 01-March 05

  Posted 01 March 2005 - 12:58 AM

I'm having a strange problem with a Windows Server 2003 build. I'm running the following command in a batch (cmd) file:

REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v PagingFiles /t REG_MULTI_SZ /d "c:\pagefile.sys 2560 2560\0d:\pagefile.sys 2560 2560" /f >nul

I want two paging files - C:\pagefile.sys and D:\pagefile.sys. I want them both to be 2.5GB each and I don't want them to grow beyond that. Seems pretty reasonable to me.

During the build, the OS automatically creates a pagefile.sys with min/max values of 2046 and 4092.

I'm having trouble reproducing this problem and determining what exactly is happening, but basically no pagefile gets created on C:\. If I go through the GUI to set the virtual memory settings, it all looks good. If I simply click 'Set' again (without changing anything), after a reboot both pagefiles exist and are the correct size.

It's like direct manipulation of the registry doesn't "take" properly and something else is going on when you do it via the GUI.

Any ideas? I'm still troubleshooting it, but I want to avoid a 2nd reboot during the build just to get the virtual memory settings right.

cheers.


#2 User is offline   Dave332 

  • Newbie
  • Group: Members
  • Posts: 29
  • Joined: 07-February 05

Posted 01 March 2005 - 01:06 AM

You should be able to set the reg key from cmdlines.txt so that the reboot after program installs (RunOnceEx, GuiRunOnce) fixes it. I'm going to do some quick testing to see if i can get it to work on my machine.

#3 User is offline   Dave332 

  • Newbie
  • Group: Members
  • Posts: 29
  • Joined: 07-February 05

Posted 01 March 2005 - 01:25 AM

yeah, quick reboot worked for me. setting it from cmdlines.txt should work great.

#4 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 01 March 2005 - 02:20 AM

cactoid, on Mar 1 2005, 12:28 PM, said:

It's like direct manipulation of the registry doesn't "take" properly and something else is going on when you do it via the GUI.<{POST_SNAPBACK}>
Exactly!
The registry/INF method of doing it, is half-broken and needs lot of pre-conditions to be met, as the above posts prove.


The correct way recommended by Microsoft is here - LINK.
That's what we use for local configuration, conf. over network, etc. - and it hasn't ever failed. Moreover, its just a simple one line command (which MS has facilitated by providing the VBS file there by default).

#5 User is offline   cactoid 

  • Group: Members
  • Posts: 3
  • Joined: 01-March 05

Posted 01 March 2005 - 03:35 PM

cheers prathapml! I did a lot of digging and not once did I stumble across pagefileconfig.vbs. I will switch to using that and see what happens.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy