Jump to content

How to set pagefile?


Recommended Posts

ArtBio thanks for the reply but I really don't think thats the problem since WMI is fully functional... here's some further info:

I have been using Rogues script for numerous installs but now on a machine with 4Gig of Ram it too fails unless I change the "2" value to a max of 1.33

If I change your "2" value to 1.2 the script runs and changes the pagefile size.

Since I don't write VBS all my attempts to correct this have failed but I'm wondering if regonizing a max page file value of 4 gig would be the answer... buy I'm guessing

Link to comment
Share on other sites

  • 1 year later...

There is a limitation in VBS that does not allow setting a pagefile over the 4GB mark. I am not sure of the reasoning behind this, but you are right that detecting a value over to 4096 and reducing down is the answer. If you require a pagefile of bigger than 4gb then you'll most likely need to manually set the settings in windows.

;)

Link to comment
Share on other sites

  • 11 months later...
  • 5 months later...
  • 11 years later...
On 11/22/2005 at 9:16 AM, Crash&Burn said:

What I have stored in my registry at:

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management

Which is for D:\Pagefile.sys 1536 2048

So using this within a .cmd or such during unattended would preset the pagefile to where you want? Instead of having windows preselect the drive with the amount of space it believes it requires?

My current settings.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
"ClearPageFileAtShutdown"=dword:00000001
"PagingFiles"=hex(7):43,00,3a,00,5c,00,70,00,61,00,67,00,65,00,66,00,69,00,6c,\
  00,65,00,2e,00,73,00,79,00,73,00,20,00,30,00,20,00,30,00,00,00,00,00
"PhysicalAddressExtension"=dword:00000001
"DisablePagingExecutive"=dword:00000001
"LargeSystemCache"=dword:00000000
"ExistingPageFiles"=hex(7):5c,00,3f,00,3f,00,5c,00,43,00,3a,00,5c,00,70,00,61,\
  00,67,00,65,00,66,00,69,00,6c,00,65,00,2e,00,73,00,79,00,73,00,00,00,00,00
"SessionPoolSize"=dword:00000000
"SessionViewSize"=dword:00000000
"PoolUsageMaximum"=dword:00000000
"SecondLevelDataCache"=dword:00000000
"NonPagedPoolQuota"=dword:00000000
"NonPagedPoolSize"=dword:00000000
"PagedPoolQuota"=dword:00000000
"PagedPoolSize"=dword:00000000
"WriteWatch"=dword:00000001
"SystemPages"=dword:00000000
"SessionImageSize"=dword:00000000
"IoPageLockLimit"=dword:08000000

I honestly don't' know what to do?

Link to comment
Share on other sites

14 hours ago, jaclaz said:

  

On 6/22/2015 at 1:02 AM, jaclaz said:

...but it's not something that should be done at home...

Thank you, jaclaz, I shall leave it be there with the kind of luck I've been having lately.

Link to comment
Share on other sites

3 hours ago, XPerceniol said:

  

Thank you, jaclaz, I shall leave it be there with the kind of luck I've been having lately.

I'd set as a fixed size, so it won't become fragmented, if you have 2Gb, leave at 4GB max. Minimum for you is 2048MB. Despite what some may say (no page file good/fast, etc), chrome likes pagefile.

And yeah, I usually ride without it. But on my RAM sufficient machines.

Link to comment
Share on other sites

17 hours ago, D.Draker said:

I'd set as a fixed size, so it won't become fragmented, if you have 2Gb, leave at 4GB max. Minimum for you is 2048MB. Despite what some may say (no page file good/fast, etc), chrome likes pagefile.

And yeah, I usually ride without it. But on my RAM sufficient machines.

Thank you, you've always been kind and helpful to me.

Link to comment
Share on other sites

My recipe is taking a look at page file peek usage after having ran one or multiple programs that consume a lot of memory, just think about what your most memory intensive workload looks like, then taking that value and rounding it up to the next gigabyte or half-gigabyte to get the appropriate fixed size to set.

Process Hacker may be used to read the value (Tools->Pagefiles). Also a method for those that like to have fun with PowerShell.

Link to comment
Share on other sites

15 hours ago, UCyborg said:

My recipe is taking a look at page file peek usage after having ran one or multiple programs that consume a lot of memory, just think about what your most memory intensive workload looks like, then taking that value and rounding it up to the next gigabyte or half-gigabyte to get the appropriate fixed size to set.

Process Hacker may be used to read the value (Tools->Pagefiles). Also a method for those that like to have fun with PowerShell.

Thank you

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...