Jump to content

Do I need a system paging file?


astral

Recommended Posts

I am running Windows 7 on a 64bit machine with 8Gb of memory

The memory usage is rarely over the 4Gb level

So do I need a paging file?

Windows seems to get upset if I set the value to zero, sending a warning at startup

but with so much memory paging seems irrelevant.

Thanks

Link to comment
Share on other sites

You should set a fixed swap page of 4-8 gb. No matter how much memory you have, swap is an integral part of OS.

Without swap, when memory is full due to memory leak (bad coding) or others, your programs may shut down like in mobile phones & tablets.

  • Like 1
Link to comment
Share on other sites

Good question.

You do need a paging file, it's part of the architecture of your system and it adds to the reliability of your machine.

IE. It does a lot more than function as 'extra ram',

Strictly speaking, Yes, you can run without it, but there are performance and reliability implications.

Try it for a day or two, but I wouldn't suggest doing it long term.

Some interesting articles about the research done to make Win8 boot to much faster.

Link to comment
Share on other sites

Thanks for that input and the links

I do understand why the page file may be necessary -

in a world where the apps need more memory than is available.

Clearly not the case on my machine or for many MS users.

All this talk about memory leakage scares the shit out of me.

In my professional opinion (sorry to take the high horse but I have over 30 years of experience in the industry)

any operating system that cannot contain application memory is CRAP.

I will have to experiment

Link to comment
Share on other sites

All this talk about memory leakage scares the shit out of me.

In my professional opinion (sorry to take the high horse but I have over 30 years of experience in the industry)

any operating system that cannot contain application memory is CRAP.

Windows does a good job of containing application memory, but it also has to try to allocate what the application needs (or thinks it needs). Some badly coded applications will need much more memory than they should. That said, I have seen Firefox memory usage go up into the Gb range if several windows are open and especially if there is flash or js on the pages. So it might not take so long for the swap file to be called into use.

Link to comment
Share on other sites

All this talk about memory leakage scares the shit out of me.

In my professional opinion (sorry to take the high horse but I have over 30 years of experience in the industry)

any operating system that cannot contain application memory is CRAP.

Windows does a good job of containing application memory, but it also has to try to allocate what the application needs (or thinks it needs). Some badly coded applications will need much more memory than they should. That said, I have seen Firefox memory usage go up into the Gb range if several windows are open and especially if there is flash or js on the pages. So it might not take so long for the swap file to be called into use.

A couple of days ago my system seemed a bit sluggish which is unusual considering the horsepower I have. Took a look at FF and found 1.3GB memory used by it. I remember all the complaints across multiple forums some time ago and even now that FF has a memory leak. Mozilla team says it was a feature. biggrin.png

Link to comment
Share on other sites

It's all well and good reading articles about it, but there is no substitute for actually trying it out.

And in several years of using a netbook with Windows 7, 2Gb of RAM and no page file, I never had a single problem. Not an application crash, a BSOD, a hang or anything. Not that I tinkered with the machine. Just Office 2010, a PDF reader, antivirus. Oh and Chrome browser.

Providing you have a decent backup, go ahead and try it.

Windows loves memory, but in my experience it doesn't cry if it doesn't have a page file - as long as at least 2GB is available and you aren't overloading it.

If you want several apps open at the same time, different story I would imagine.

Edited by Chicog
Link to comment
Share on other sites

It's all well and good reading articles about it, but there is no substitute for actually trying it out.

This. I dual boot my MBP with Win7. I only allocated 60GB on the SSD to windows because I hardly ever use it any more. Deleted the page file to free up some space on the windows partition and haven't had any problems whatsover (I do have 16GB of RAM on board).

Link to comment
Share on other sites

Set a fixed pagefile of 1gb. If your system crashes, windows can still generate a crash log. It is a myth that you need 1.5x the size of physical ram installed. The only reason you need a larger pagefile is if you do not have enough ram.

"You dont need to learn to love yourself; you just need to UNLEARN all the reasons you reject yourself..." -sent from TV app (Note 2).

  • Like 1
Link to comment
Share on other sites

Yes you want it...should your system crash, power cut, on reboot the page file will help save your files becoming corrupt or even worse turn the drive into RAW format.

What on earth is that pile of pony?

tongue.png

Link to comment
Share on other sites

IMHO opinion Memory Leakage is when one application accesses and possibly corrupts the dataspace

allocated to another application.

Definitely not acceptable and should be controlled by the OS

I accept that there may be other definitions.

FF grabbing more "virtual memory" to support multiple open pages, is a valid use of memory

unless it fails to release the memory when not required.

That does seem to be a FF "feature" :D

Virtual memory can be unlimited, consisting of Physical Memory plus the Paging File (swap file)

Allocate more if you need it.

Paging between physical memory and the swap file, will impact performance :bah:

and the answer, generally, is to add more physical memory.

Or allocate the process to another cpu, if you have that possibility.

This is the way we describe matters on HP NonStop machines

before anyone starts nitpicking on definitions.

Link to comment
Share on other sites

Yes you want it...should your system crash, power cut, on reboot the page file will help save your files becoming corrupt or even worse turn the drive into RAW format.

What on earth is that pile of pony?

tongue.png

Yes my bad, I originally written too much information then realised I was waffling on, so just threw it in there lol.

I was ready for bed.

Link to comment
Share on other sites

Usually an OS will use almost all the RAM available. Testing for how much RAM is free is a red-herring. The OS will swap the stuff into and out of the RAM and/or pagefile according to what it needs. It may or may not complain when things are a bit busy and slowing down. In linux you can look at what is using how much of the hardware (top is a good tool) - maybe there is a similar tool for windows. In the past I cerainly ran XP with just 1 Gb RAM and no swap. It was ok unless I opened too many applications, especially a load of Thaivisa pages which are very scripty ;)

Link to comment
Share on other sites

Usually an OS will use almost all the RAM available. Testing for how much RAM is free is a red-herring. The OS will swap the stuff into and out of the RAM and/or pagefile according to what it needs. It may or may not complain when things are a bit busy and slowing down. In linux you can look at what is using how much of the hardware (top is a good tool) - maybe there is a similar tool for windows. In the past I cerainly ran XP with just 1 Gb RAM and no swap. It was ok unless I opened too many applications, especially a load of Thaivisa pages which are very scripty wink.png

Win 7 will show everything that is taking up RAM, the resource monitor is a good tool.

They still haven't fixed the known issue of MP4 file icons on the desktop causing massive memory leaks to cause a system crash though if your aware it's happening you can stop it I guess more than 50% of people don't though.

Link to comment
Share on other sites

Usually an OS will use almost all the RAM available. Testing for how much RAM is free is a red-herring. The OS will swap the stuff into and out of the RAM and/or pagefile according to what it needs. It may or may not complain when things are a bit busy and slowing down. In linux you can look at what is using how much of the hardware (top is a good tool) - maybe there is a similar tool for windows. In the past I cerainly ran XP with just 1 Gb RAM and no swap. It was ok unless I opened too many applications, especially a load of Thaivisa pages which are very scripty wink.png

Win 7 will show everything that is taking up RAM, the resource monitor is a good tool.

They still haven't fixed the known issue of MP4 file icons on the desktop causing massive memory leaks to cause a system crash though if your aware it's happening you can stop it I guess more than 50% of people don't though.

An obscure bug with an easy workaround: Disable thumbnail generation.

Link to comment
Share on other sites

It's all well and good reading articles about it, but there is no substitute for actually trying it out.

So you definitely compared respective speeds then? And the result was?

And in several years of using a netbook with Windows 7, 2Gb of RAM and no page file, I never had a single problem.

. . .

Windows loves memory, but in my experience it doesn't cry if it doesn't have a page file - as long as at least 2GB is available and you aren't overloading it.

If you want several apps open at the same time, different story I would imagine.

But I've always had a page file, Windows-allocated, and never had a single problem--relating to memory capacity anyway.

As Tywais points out, open a lot of tabs in Firefox, as I always do, and you're looking at 1+ GB memory usage easily. I've heard Chrome is about the same.

Link to comment
Share on other sites

IMHO opinion Memory Leakage is when one application accesses and possibly corrupts the dataspace

allocated to another application.

Why don't we just stick to standard definitions widely used and recognized in the industry rather than uneducated "opinions?"

The wrong definition usually leads to wrong conclusions. Seen a good case of that recently around here.

And that's hardly a "nitpick."

Link to comment
Share on other sites

I am running with a 2Gb swap file

52% of my 8Gb memory in use

I see windows recommended a file of 12Gb

1.5x physical memory.

Quite ridiculous

But there's no reason not to let Windows handle it unless you're running out of room on the drive. "If it ain't broke, don't fix it."

You might be surprised how people do use quite a lot of memory by never closing anything and keeping a lot of memory hogs running at all times, often using virtual desktops.

Link to comment
Share on other sites

It's all well and good reading articles about it, but there is no substitute for actually trying it out.

So you definitely compared respective speeds then? And the result was?

No, but in my case it was about saving disk space so it was an either/or rather than a "how fast?".

It's a netbook so I never expected it to fly.

Perfectly usable without the page file though.

I should qualify that all my other machines have loads of RAM and disk and I generally just created a fixed page file on a separate disk.

I wouldn't tell anyone to get rid of the page file unless they have a specific reason, I'm just saying that I've never had the problems that many people seem to warn against but have never experienced.

Edited by Chicog
Link to comment
Share on other sites

  • 1 month later...

Well after a month of no page file and no problems my pagefile is back to system managed. I just started using XAMPP again for some web development I'm doing and the Apache server kept crashing and then I got a memory warning from Windows. Turned the page file back on and everything was fine.

Link to comment
Share on other sites

Well after a month of no page file and no problems my pagefile is back to system managed. I just started using XAMPP again for some web development I'm doing and the Apache server kept crashing and then I got a memory warning from Windows. Turned the page file back on and everything was fine.

Just use a 1GB fixed (1024 MB min/max size) and you should be fine. System managed file can be larger than needed, especially if you have 4+GB ram

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...