• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
doveman

Any way to restrict/minimise pagefile usage?

17 posts in this topic

I'm running Win7 x64 Ultimate and have 16GB RAM. Left as System Managed, Windows creates a 16GB pagefile (not a problem in itself).

However, it seems to page stuff out when there's plenty of free RAM, which obviously slows things down as it has to page it back into RAM to use it.

I've been trying to use a RAMDisk to run some games from (ArmA, DCS World). I used a 8GB RAMDisk and had about 13.5GB free before mounting and so about 5.5GB after. ArmA itself can only use a max of 2GB, so there's still 3GB+ free when it's running but even so, it seems to page stuff out, even ArmA itself perhaps, as it's starts stuttering after a while and takes a long while to close and causes HDD thrashing for a while after, so it's obviously using the pagefile.

I tried disabling the pagefile completely but then I got error popups when playing about being low on RAM, even though there was over 2GB free.

I've got DisablePagingExecutive set to 1, LargeSystemCache set to 0 and NtfsMemoryUsage is set to 0.

Is there anything else I can do to force Windows to use the actual RAM rather than the pagefile when at all possible?

0

Share this post


Link to post
Share on other sites

The question is, why is the system paging things to the paging file that would cause a slowdown with that much RAM? The paging file might hold old pages on the modified list or standby list, perhaps, but only if the system was busy or the app was minimized and idle for an extended period of time on Windows 7. Also, why would it be the cause of your performance issues?

Those would be the issues to investigate/address, although with 16GB of RAM a 2GB paging file and a system set to kernel memory dump should be sufficient under normal usage scenarios. You probably need to determine if your HDD thrashing really is paging file usage - don't just assume.

0

Share this post


Link to post
Share on other sites

The question is, why is the system paging things to the paging file that would cause a slowdown with that much RAM? The paging file might hold old pages on the modified list or standby list, perhaps, but only if the system was busy or the app was minimized and idle for an extended period of time on Windows 7. Also, why would it be the cause of your performance issues?

Those would be the issues to investigate/address, although with 16GB of RAM a 2GB paging file and a system set to kernel memory dump should be sufficient under normal usage scenarios. You probably need to determine if your HDD thrashing really is paging file usage - don't just assume.

I'm pretty sure it is and it only seems to happen when I've been using the RAMDisk and the way the game starts stuttering and takes ages to close, followed by HDD thrashing clearly points to the game files being swapped out to the pagefile. I've actually got the debugging information set to None, which I presume can only reduce memory usage.

I've set the pagefile to a fixed 2GB now though, so I'll see if it being smaller reduces how much Windows tries to use it.

0

Share this post


Link to post
Share on other sites

FWIW, this topic suggests using IMDISK -

http://games.on.net/forums/viewtopic.php?f=27&t=197327

So it could even be asked how did you create your RAMdisk? AFAIK, you should have a PageFile regardless of it "being needed".

I'm using SoftPerfect RAMDisk, which testing showed to be somewhat faster than IMDisk.

I've checked and the author assures me that it has measures to prevent the RAMDisk itself being paged out but of course once the game files load from the RAMDisk into RAM then I guess it can't prevent Windows swapping them out if it feels like it.

It does seem that Windows gets very upset if you disable the pagefile completely, whether it should strictly be needed or not.

0

Share this post


Link to post
Share on other sites

Which part of that 6 month old thread are you Hmmming about?

You are seemingly not familiar with "directional hmmmming" :w00t: , it was aimed @submix8c ;) .

jaclaz

0

Share this post


Link to post
Share on other sites

Which part of that 6 month old thread are you Hmmming about?

You are seemingly not familiar with "directional hmmmming" :w00t: , it was aimed @submix8c ;) .

jaclaz

Hmmm (that was a general contemplative hmmm not aimed at anyone in particular), I'll blame my PC's dodgy positional audio for that one :unsure:

0

Share this post


Link to post
Share on other sites

Hmmmm.... (again :w00t:)

Maybe it's the "games"?

http://stackoverflow.com/questions/2568236/how-to-keep-windows-from-paging-block-of-memory

ARMA - http://forums.whirlpool.net.au/archive/1251215

Similar via Google

paging "dcs world" game

Hints by the OP (part of Para#3)

ArmA itself can only use a max of 2GB, so there's still 3GB+ free when it's running but even so, it seems to page stuff out, even ArmA itself perhaps

Trying too create a "super gaming computer" and optimizing it. Indications that the GPU has something to do with it as well.

To reiterate what has been said, the "thrashing"/"lockup" more than likely has to do with the use of RAMDisk and placing the game(s) there and the effect of the PAGEing and its size in conjunction with the amount of RAM. (Was that a mouthful?) Also, not recollecting (or searching) exactly what your hardware rig is...

(Disclaimer - Gaming is not my "bag" and optimization I attempt to do through hardware and services/processes. A Tweaker or Expert I am not. Simply well-versed and investigative.)

0

Share this post


Link to post
Share on other sites

Yeah, maybe. ArmA and DCS are both pigs to play on any system.

I've got a Phenom II X4 955@3.5Ghz, 16GB RAM, HD6950 2GB, 2TB Samsung and 500GB Samsung, so by no means a super-computer and it seems ArmA at least much prefers Intel CPUs.

Nonetheless, it's normally just about playable (varies from 10fps up to 50fps depending on the amount of AI in use) and the stuttering I noticed when using the RAMDisk was something new.

As the author of SoftPerfect has told me that it somehow prevents the RAMDisk itself being paged out, I assume Windows has some mechanisms to facilitate that. If so, it's a shame that games can't use the same mechanism but I guess they have to allow for it, for systems where there might not be enough physical RAM free (although as ArmA can only use 2GB and I've never seen DCS use much more than that, despite being 64-bit, I'd imagine most systems these days have that spare).

I need to use my dual-boot to setup a clean copy of Windows just for ArmA and DCS. Mind you, I think I've done that before and tend to end up installing everything else on top as well, so I need to try and plan a bit better next time ;)

0

Share this post


Link to post
Share on other sites

Even now, whilst I'm not playing any games and have about 12GB available, I can see in Resource Monitor that's paging some of my open tabs in Iron as well as System, Jitsi, Game Booster Tray, itype (some of those are going in and out of the pagefile as I watch) so it does seem to be paging unnecessarily. It's obviously frustrating when I have plenty of RAM and it still takes a while when I change tab in Iron because it's decided to page it out (at least I'm assuming that's what's causing the delay, rather than Iron itself paging out the non-current tab contents and having to load them in again when that tab is switched to).

0

Share this post


Link to post
Share on other sites

how do you see paging? Run Processhacker, click under tool->page files and look how much data are stored i the page file.

http://processhacker.sourceforge.net/

As I say, Windows Resource Monitor under Disk shows which processes (Image) are using the pagefile (currently only System). ProcessHacker is useful for showing the total usage (currently 422MB and increasing), thanks.

0

Share this post


Link to post
Share on other sites

With the ArmA2OA 8GB RAMdisk loaded and ArmA2 running, Resource Monitor shows

11851MB In Use

875MB Modified

1720MB Standby

1884MB Free

Available 3602MB

Cached 2592MB

Total 16348MB

Installed 16384MB

and Process Hacker shows that the pagefile usage is 1.84GB.

So clearly Windows is paging something out unnecessarily. It may not be ArmA, but instead some other stuff that Windows think is less important but nonetheless it doesn't appear to be needed.

Shortly after typing the above though, I alt-tabbed back to Arma2OA and it took ages to unpause so it seems likely it had paged some of the game files out. Shortly after that, I got a Windows warning saying that I was low on memory and asking me to close Arma2OA. Once I closed it, pagefile usage dropped back down to 564MB.

0

Share this post


Link to post
Share on other sites

What you have -

http://www.softperfect.com/products/ramdisk/

What I also found -

http://www.superspeed.com/desktop/ramdisk.php

RamDisk Plus adds multiple disk support, system page file support<snip>
Don't know what that means... but I reiterate that (probably) even a RAMdisk is paged (it IS in RAM, you know) or the Applications themselves COULD be facilitating paging via the API, in either case you'll be PAGE'd "somewhere". :unsure: Heck, putting a VHD in a RAMdisk and using it instead (double-disks?) may do the same.

Question - if this is a 64-bit OS, why don't you just use a VM and install XP-Mode (limit the RAM) and install the Games there, thus letting the OS/Game do it's thing and be done with it. That is unless all of those games won't run under XP?

0

Share this post


Link to post
Share on other sites

What you have -

http://www.softperfect.com/products/ramdisk/

What I also found -

http://www.superspeed.com/desktop/ramdisk.php

RamDisk Plus adds multiple disk support, system page file support<snip>
Don't know what that means... but I reiterate that (probably) even a RAMdisk is paged (it IS in RAM, you know) or the Applications themselves COULD be facilitating paging via the API, in either case you'll be PAGE'd "somewhere". :unsure: Heck, putting a VHD in a RAMdisk and using it instead (double-disks?) may do the same.

It means that it allows you to to put the pagefile on the RAMDisk I think, basically that it loads early enough in the boot process to allow this

Question - if this is a 64-bit OS, why don't you just use a VM and install XP-Mode (limit the RAM) and install the Games there, thus letting the OS/Game do it's thing and be done with it. That is unless all of those games won't run under XP?

That would only make things worse. The VM, unless running from a RAMDisk, would be loading from HDD and so it would be no better than loading from HDD under Win 7 x64 (probably slower in fact) and the emulated graphics in a VM wouldn't be able to cope with the games anyway.

0

Share this post


Link to post
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.