Jump to content


chosenv3

How can I automatically set Paging file to 1.5x memory on a deployed server

Recommended Posts

Hello,

 

I know the commands to set paging file (wmic pagefileset) but what I need is a script that will query the amount of physically installed memory first and then multiply it by 1.5x.

 

Does anyone have a script that I can use please?

 

Or know of an easy way to do this?

 

We like to create partitions and move the page file to the D drive and leave the C drive a just 800MB.

 

I am deploying to W2k8 R2 servers.

 

Many Thanks

 

Craig

Share this post


Link to post
Share on other sites

IMO, 800 MB is not enough free space on C:\, IMO you should have a minimum of 100 GB (total space) on C:\. Otherwise you will have problem with SU and will constantly be cleaning the C:\ to get more space.

 

You can query WMI to get the physical Ram then you can multiple that by 1.5.

Share this post


Link to post
Share on other sites

IMO, 800 MB is not enough free space on C:\, IMO you should have a minimum of 100 GB (total space) on C:\. Otherwise you will have problem with SU and will constantly be cleaning the C:\ to get more space.

 

You can query WMI to get the physical Ram then you can multiple that by 1.5.

Hi Garth,

 

What I meant was, we keep the page file on the C drive at 800MB min and 800MB Max.

We actually partition the C drive at 30GB on a W2k8 machine and install all programs etc on the D.

Share this post


Link to post
Share on other sites

So I’m a little confused. You want and 800 MB page file on C:\, but what is the script for then?

 

It your call but IMO 30 GB is tiny for a C:\, everyone who I have seen with tiny C:\ always run into issue at some point and need to increase the C:\. A while back I have a doc that listed that you should have 25% free disk space on C:\ for performance reason, I don’t have it any more.

 

Personally, I will not make a C:\ less than 100 GB. HD space is cheap and I don’t need the headache of constantly clean it (C:\) up.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.