This forum is in read-only mode for archive purposes, please use our new forum at https://community.justflight.com
Forum Home Forum Home > Just Chat > Just Chat - General Discussion
  New Posts New Posts RSS Feed - Windows 7
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Windows 7

 Post Reply Post Reply Page  123 6>
Author
Message Reverse Sort Order
VulcanB2 View Drop Down
Chief Pilot
Chief Pilot
Avatar

Joined: 02 Apr 2008
Points: 13365
Post Options Post Options   Thanks (0) Thanks(0)   Quote VulcanB2 Quote  Post ReplyReply Direct Link To This Post Topic: Windows 7
    Posted: 12 Jun 2009 at 4:55pm
Strangely enough, I did get Process Viewer - apparently it could release all file handles without terminating the holding process.

There is one secret weapon in the arsenal I did consider:

Windows File Permissions.

Take your favorite app, and deny access to it whilst it is running.

It will prevent the process from coming back to the file later (if it ever should). Next best thing to deleting it.

Best regards,
Vulcan.
Back to Top
MartinW View Drop Down
Moderator in Command
Moderator in Command
Avatar

Joined: 31 Mar 2008
Location: United Kingdom
Points: 26722
Post Options Post Options   Thanks (0) Thanks(0)   Quote MartinW Quote  Post ReplyReply Direct Link To This Post Posted: 12 Jun 2009 at 2:21pm
Magic... run away quick, change the subject, anything, but don't dwell.
 
If you like I'll set up a diversion, 9/11 perhaps?
 
Wink
 
Edit: I've diverted him with talk of dinosaurs, lost worlds etc, in another topic.
Back to Top
Magic Man View Drop Down
Chief Pilot
Chief Pilot
Avatar

Joined: 02 Apr 2008
Location: South Wales
Points: 5336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Magic Man Quote  Post ReplyReply Direct Link To This Post Posted: 12 Jun 2009 at 12:47pm
To be fair to our pointy friend, whilst looking for the backup stuff for this, it's clear that just like in any other subject misonceptions can quickly take hold and spread far and wide. There was a suprising amount of stuff  on technical sites  that got it wrong as well and they were meant to be the experts advising others.
 
Not sure if anyone else is interested but during my trawls came across the little tool available here... http://www.tmurgent.com/Tool_ATM.aspx - which gives a great view of what is going on in your PCs memory.
 
To come back to a 'issue' mentioned in the past by others (and one in particular who will remain anonymous... Wink) regarding Vista being a memory hog, using all the memory etc. to which the usual reply has become, "its designed to use all the memory it can, unused memory is wasted memory" etc. - this tool shows that very nicely. Reboot etc. and you'll see the precache stuff empty, slowly filling up as it does it's stuff, caching stuff it thinks you'll use based on past experience. If you need that memory for anything else, it'll just dump it out.
 
Originally posted by VulcanB2 VulcanB2 wrote:

I still stand by my other comments though.
Which ones? No, second thoughts, don't answer that... Big%20smile
 
(Ermm no really, don't answer that...  Hug group hug instead)
.
.
.
.
[deep voice]"Windows - the memory manager conspiracy" a Slim Martin production.[/deep voice]
 
--- The End ---
Back to Top
MartinW View Drop Down
Moderator in Command
Moderator in Command
Avatar

Joined: 31 Mar 2008
Location: United Kingdom
Points: 26722
Post Options Post Options   Thanks (0) Thanks(0)   Quote MartinW Quote  Post ReplyReply Direct Link To This Post Posted: 12 Jun 2009 at 9:39am
Game set and match to magic then? Big%20smile
 
Back to Top
VulcanB2 View Drop Down
Chief Pilot
Chief Pilot
Avatar

Joined: 02 Apr 2008
Points: 13365
Post Options Post Options   Thanks (0) Thanks(0)   Quote VulcanB2 Quote  Post ReplyReply Direct Link To This Post Posted: 12 Jun 2009 at 1:03am
Quote Try it this time rather than assuming

I assumed nothing, and did try it.

This is why it can't be deleted:

http://en.wikipedia.org/wiki/Memory-mapped_file#Platform_support

Been a damn long time since I read about this.

http://msdn.microsoft.com/en-us/library/ms810613.aspx

Holy cow - I was hardly 11 years old when I last read about this (1993). FYI I've been doing this stuff since I was 4 (I started out on a System 19 - that is One Nine - writing machine code, then moved to the Motorola 6800 before I got my first PC).

I thought MMF went out back then. Didn't realize they were still using it. I never use it - thought it was depricated (back in 1995 to give you an idea - when Win 95 was released to be exact). I've only thought this for a mere 16 years. Dead  When they introduced the swap file in Win 3.x, I thought it was the replacement and MMF was simply for backwards compatibility. Those were the days!! Big%20smile

I've been bashing my head against the wall for years trying to figure out why that ****ing file won't delete when an app is running, yet you could read it. Never thought it was this method of access that was behind it (I was that convinced it was depricated).

Note carefully that the article says that all 6 memory access methods are totally independent of each other.

On this point I raise my hand and say "I'm wrong". I did quote sources though. Always important. Wink

I'm Shocked, seriously.

I still stand by my other comments though.

O/T: Still got one of these in the loft: http://en.wikipedia.org/wiki/KIM-1

...and I still use one of these! Big%20smile http://en.wikipedia.org/wiki/MEK6800D2  Damn good processor. FYI the group of 4 LEDSs are the memory address, and the group of two on the right are the data/instruction as necessary. They are split like this for easier reading whilst debugging.

0A - LOAD A
03 - DATA
0B - LOAD B
23 - DATA
1C - ACC A + ACC B -> ACC A
3F - HALT

I think that is correct. Load accumulator A with "03", load accumulator B with "23" sum the two and store in accumulator A. By looking in accumulator A I should have the value "26" (remembering it is HEX!!!!!).

Best regards,
Vulcan.
Back to Top
Magic Man View Drop Down
Chief Pilot
Chief Pilot
Avatar

Joined: 02 Apr 2008
Location: South Wales
Points: 5336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Magic Man Quote  Post ReplyReply Direct Link To This Post Posted: 11 Jun 2009 at 9:25pm
Originally posted by VulcanB2 VulcanB2 wrote:

Quote Either way, what is the point you are trying to make and the conclusion you are coming to from the fact that "chaos" does no ensue on deletion of the physical file?

The point I am making, and you don't understand, is that the system does not care if the file is on disk or not. It has no bearing on memory and whether the system will try to page it out or not.

Clearly you're never going to understand this.

You are talking rubbish again I'm afraid. There is nothing really to understand about rubbish that I am not getting.

Again, stop skirting around the edge, your whole point was that it is somehow better to run without a page file under real conditions (not your imaginary unlimited memory scenario) which is why you switched it off. You are just posting diversionary fluff.

Okay, let's go back to the "point [you are] making" and that I apparently don't understand. Your experiment to show and prove that "the system does not care if the file is on disk or not".

You stated...
Originally posted by VulcanB2 VulcanB2 wrote:

Try this then (if you're brave enough): start MS Word (or FS if you want), then move the FS9.EXE executable someplace else. Tell me if Windows ever moans it disappeared whilst the app is running.
...
Did you not get the point when I *DELETED* the FS9.EXE file with FS running? FS9.EXE was no longer "backed by a file on the HD" as you put it. Based on what you're saying, the system should have failed because when it killed FS9.EXE in memory to load other stuff (based on your description of how it works), oops - FS9.EXE wasn't on the HD to look at.
...
As I demonstrated when I deleted the FS9.exe file - the file was no longer on disk for this behavior to work. If this is how it did work, deleting the FS9.exe file should have created chaos


Except, in reality, you never did delete the FS9.exe when it was running did you?

You just assumed that moving it or renaming it would prove the same point. Because (as I wondered earlier and later found out and verified myself) there is no worry about what happens with the pager trying to access this file that no longer exists because you are prevented from deleting the file in the first place.

Try it this time rather than assuming - you'll get a big fat dialog... "Cannot delete FS9: Access denied"

Reason why there are no issues when you move it or rename it is because the OS keeps tracks of the file so remains able to page out memory relating to it and page it back in from the file if required. FS9.exe was still "backed by a file on the HD" as I put it all along...

Now, let's move on to your issue with the fact that memory pages that are backed, i.e. those that have come directly from the hd in the form of an .exe (your fs9.exe for example) or .dlls etc are freed if required and then paged back in directly from the file. I have explained this several times.

In response to those explanations you have stated...
Originally posted by VulcanB2 VulcanB2 wrote:

See, you made the same mistake again. IT DOES NOT DO THIS.
...
Where do you get this rubbish from???????? WHAT IS YOUR TECHNICAL SOURCE FOR THIS BAD INFORMATION????
...
You will note that NOWHERE in these notes does it say it drops data that *already* resides on the hard disk in the traditional sense of a program or user data
...
No it isn't. Not at all.
...
As should be clearly apparent to you by now, no reference is ever kept of which file data came from. The system doesn't know, and it doesn't care.
...
Huh? Read my links again. Keep reading until you understand.
...
I can only summize that the reason MM is avoiding answering my question and has failed to produce any technical articles countering my position, either in whole or in part, means I am indeed correct in my assertions.


Originally posted by VulcanB2 VulcanB2 wrote:

provide links to technical descriptions that substantiate your definitions from Microsoft please.


Okay, here we go then, how about...
Quote For example, each application has an executable file that represents pages of executable code and resources for the application. These pages are swapped into and out of RAM, as they are needed, by the operating system. When a page of memory is no longer needed, the operating system relinquishes control over the page on behalf of the application that owns it and frees it for use by another. When that page becomes needed again, it is re-read from the executable file on disk. This is called backing the memory with a file, in this case, the executable file.
(emphasis mine)

and...
Quote when a process starts, pages of memory are used to store static and dynamic data for that application. Once committed, these pages are backed by the system pagefile, similar to the way the executable file is used to back the pages of code.


and...
Quote Memory used to represent pages of code in processes for Windows NT are backed directly by the application's executable module while memory used for pages of data are backed by the system pagefile.


and...
Quote Both code and data are treated the same way in Windows NT—both are represented by pages of memory and both have their pages backed by a file on disk. The only real difference is the file by which they are backed—code by the executable image and data by the system pagefile.


From where? Microsoft Developer Network. http://msdn.microsoft.com/en-us/library/ms810613.aspx - memory mapped files. You should take a look.

Also points out the benefits of using a page file for sharing data between processes which can prevent "a waste of system resources". Nice big diagrams as well showing the page file as a key part of the overall memory management - strange that if it's not really that important and not needed as you say...

Also...
Quote Yet, in Windows NT, not all pages of memory are backed by these pagefiles. Instead, Windows NT backs pages of memory that represent either code or memory-mapped files with the actual file they represent. This provides a substantial savings of disk memory by eliminating redundant information on the disk.


Same library, section detailing the virtual memory manager in Windows NT.

Originally posted by VulcanB2 VulcanB2 wrote:

I don't see performance being cited as a reson to keep it.

Strange, nothing there about the performance benefits of disabling the page file though...

Just to close with a few of your own statements...
Originally posted by VulcanB2 VulcanB2 wrote:

I see a lot of arguments without any facts to back them up.

Originally posted by VulcanB2 VulcanB2 wrote:

I still don't see any references to anything countering my position yet.

Originally posted by VulcanB2 VulcanB2 wrote:

Again, please study the link very carefully. You have a flawed understanding.

Originally posted by VulcanB2 VulcanB2 wrote:

Read my links again. Keep reading until you understand.

Originally posted by VulcanB2 VulcanB2 wrote:

I think the phrase I'm looking for here is "I've got you on the run".


I think we should call it a day there shouldn't we...

Apologies to all others for this and all the quotes here etc. Normal service will be resumed shortly...Wink
Back to Top
VulcanB2 View Drop Down
Chief Pilot
Chief Pilot
Avatar

Joined: 02 Apr 2008
Points: 13365
Post Options Post Options   Thanks (0) Thanks(0)   Quote VulcanB2 Quote  Post ReplyReply Direct Link To This Post Posted: 11 Jun 2009 at 2:14pm
Quote Either way, what is the point you are trying to make and the conclusion you are coming to from the fact that "chaos" does no ensue on deletion of the physical file?

The point I am making, and you don't understand, is that the system does not care if the file is on disk or not. It has no bearing on memory and whether the system will try to page it out or not.

Clearly you're never going to understand this.

Quote Unbacked pages will have no physical reference because they don’t exist on disk. Backed pages will have since their pages are paged in from the .exe, .dll file etc.

Huh? Read my links again. Keep reading until you understand.

I'm finished here.

Best regards,
Vulcan.
Back to Top
Magic Man View Drop Down
Chief Pilot
Chief Pilot
Avatar

Joined: 02 Apr 2008
Location: South Wales
Points: 5336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Magic Man Quote  Post ReplyReply Direct Link To This Post Posted: 11 Jun 2009 at 1:20pm

Originally posted by VulcanB2 VulcanB2 wrote:

Quote If the memory manager decides to release memory pages occupied  by code that is backed, i.e. .exe’s, .dll’s, etc., stuff that already exists on the disk, then yes it is just freed, unless the page has changed, there is no need to copy it to a page file (why would it need to, it already exists). When that page is required again it is simply paged back in, i.e. re-read from the file on disk, i.e. from the .exe, .dll etc.

No it isn't.

[pantomime audience]Oh yes it is…[/pantomime audience]

Quote
As I demonstrated when I deleted the FS9.exe file - the file was no longer on disk for this behavior to work. If this is how it did work, deleting the FS9.exe file should have created chaos, regardless of whether the swap file existed or not.

What exactly did you demonstrate and conclude from this and how is this trying to prove your case that a page file isn't needed...?

Loading it and then removing the physical file is only going to cause a problem if the situation arises that the virtual memory manager decides to drop memory pages relating to FS9.exe and then tries to page them back in. Actually, since the file no longer exists I’m not sure if the pager will even permit those code pages to be released or, if a pagefile is present, whether it instead uses it for backing store of the pages moved out.
Either way, what is the point you are trying to make and the conclusion you are coming to from the fact that "chaos" does no ensue on deletion of the physical file? If the mm does release the memory pages and they remain unbacked then we hit an issue if it tries to page them back in. If instead they are instead now backed by the page file then we are fine unless we have turned the page file off in which case the memory pages cannot be paged out and therefore the strategies of the mm are reduced.

Quote
As should be clearly apparent to you by now, no reference is ever kept of which file data came from. The system doesn't know, and it doesn't care. All it does when it writes to the page file to clear some physical memory, is copy the memory location verbatim. That's it. What occurs to files on disk, it doesn't care.

Rubbish. Unbacked pages will have no physical reference because they don’t exist on disk. Backed pages will have since their pages are paged in from the .exe, .dll file etc. It obviously knows where it came from.

Or are you saying that all memory pages that are paged out go to the pagefile? If so then that is wrong and if so then where are you without a pagefile since in your world you would never be able to page anything out. You've already correctly said that paging still occurs without a page file, in your world how can it if "All it does when it writes to the page file to clear some physical memory, is copy the memory location verbatim"...?
 
You have a flawed understanding (sorry, left the quotes off that...)
Back to Top
VulcanB2 View Drop Down
Chief Pilot
Chief Pilot
Avatar

Joined: 02 Apr 2008
Points: 13365
Post Options Post Options   Thanks (0) Thanks(0)   Quote VulcanB2 Quote  Post ReplyReply Direct Link To This Post Posted: 11 Jun 2009 at 2:01am
Quote If the memory manager decides to release memory pages occupied  by code that is backed, i.e. .exe’s, .dll’s, etc., stuff that already exists on the disk, then yes it is just freed, unless the page has changed, there is no need to copy it to a page file (why would it need to, it already exists). When that page is required again it is simply paged back in, i.e. re-read from the file on disk, i.e. from the .exe, .dll etc.

No it isn't. Not at all. Please refer back to my link to the slides from the Carnagie Mellon University website.

As I demonstrated when I deleted the FS9.exe file - the file was no longer on disk for this behavior to work. If this is how it did work, deleting the FS9.exe file should have created chaos, regardless of whether the swap file existed or not.

As should be clearly apparent to you by now, no reference is ever kept of which file data came from. The system doesn't know, and it doesn't care. All it does when it writes to the page file to clear some physical memory, is copy the memory location verbatim. That's it. What occurs to files on disk, it doesn't care.

Again, please study the link very carefully. You have a flawed understanding.

Best regards,
Vulcan.
Back to Top
Magic Man View Drop Down
Chief Pilot
Chief Pilot
Avatar

Joined: 02 Apr 2008
Location: South Wales
Points: 5336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Magic Man Quote  Post ReplyReply Direct Link To This Post Posted: 11 Jun 2009 at 12:25am


Originally posted by VulcanB2 VulcanB2 wrote:

OK, to ensure there is no confusion on my part:

If I have a block of data from hard disk loaded into the memory [...] and then the system freed the memory to load something else, instead of copying this block of memory to the swap file, it simply "forgets" it, and overwrites this [...] memory with something else, and just loads the [...] bytes it just overwrote, off the hard disk again, should it require it?

Am I understanding this correctly?

If the memory manager decides to release memory pages occupied  by code that is backed, i.e. .exe’s, .dll’s, etc., stuff that already exists on the disk, then yes it is just freed, unless the page has changed, there is no need to copy it to a page file (why would it need to, it already exists). When that page is required again it is simply paged back in, i.e. re-read from the file on disk, i.e. from the .exe, .dll etc.

Quote I don't see performance being cited as a reson to keep it. It just says not to disable it.

The reason not to disable is because if you have 128 Mb of RAM and tried to run FS, without a page file, FS would not even start as it would run out of memory.

Absolutely astounding logic there... “Well Mr President, the reason I pushed the big red button with ‘Do not push’ printed on it was because it didn’t say it would cause any harm...”
So the reason to not disable it is because there is no reason to do so and if you do you could have problems in some circumstances...? So why disable it...???

Quote see why I said it was important to discuss the page file and performance from the point of view of UNLIMITED memory???

Winner of the grand prize in the ultimate copout competition 2009.  Explanation of theory by reference to an unobtainable quantity, brilliant!

Quote I know that in reality it is impossible, but when discussing the benefits of disabling the swap file, by assuming unlimited memory, and the fact that the system will swap memory out ANYWAY despite having lots of spare memory (unlimited in our example) then obviously it has performance BENEFITS.


Your whole point was that you have disabled your page file because it is beneficial, not because in a hypothetical situation with unlimited memory. You haven't got unlimited memory. It's irrelevant anyway since if you did have unlimited memory then the mm would never need to page out unbacked store to the page file anyway so it wouldn't be used. Turning it off would gain nothing other than recover the small amount of drive space - and in this hypothetical world of unlimited memory then surely we have unlimited drive space as well so why bother?...

Quote If you have plenty of physical memory, then disabling the swap file is not a problem

You do not have plenty of physical memory. 4GB was enormous and certainly more than plenty in most cases a few years ago, now it’s average. The more we have the more we use, you can never really have plenty...

Quote Further, it increases performance because like it or not, even if there is free physical memory (several hundred megabytes) Windows will still copy memory to the swap file

Reducing the memory managers options does not increase performance. The page file will only be used if the memory manager needs to use it, if it needs to use it then you need a page file. Without it you are limiting its options.

Quote Memory is so cheap there is no excuse not to add more physical RAM if you regularly run out of physical memory (swap file enabled or not). [...] It is best to have more memory than you will use (hence my choice to go for 4 Gb for Vista for example - I know I won't use more than this at the current time. If I do, I'll simply buy more RAM).

And disk space is even cheaper. There is absolutely no excuse not to use a page file if you regularly run out of physical memory, buying extra RAM is a second option limited by funds and, if you are running a 32bit OS, limited by the addressable range. As said, 4GB is not that large. Go with it by all means, I have 4GB in my main box, but why then not give yourself the additional use of a page file for the mm to use if it requires it?

Quote The page file can not exceed 4096 Mb in size
On a 32bit OS a single page file is ‘limited’ by that size by default. It can be made larger as Marmite noted. You can also have additional page files on distinct drives (I have one on each of my two drives). You can also have multiple page files on the same drive (different directories) with a registry edit.

Quote Here is a question: if you have two page files, both 4096 Mb in size, will Windows use them up to the full 8 Gb available?

It will use them as it sees fit. It will choose which to use based on I/O metrics for best performance.

Quote Virtual memory is NOT the page file. It has nothing to do with it.

Thanks for that, wasn’t in question. “Nothing to do with it” is a but extreme though, they are obviously related.
Back to Top
Marmite View Drop Down
Chief Pilot
Chief Pilot
Avatar

Joined: 11 Apr 2008
Points: 1029
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marmite Quote  Post ReplyReply Direct Link To This Post Posted: 10 Jun 2009 at 11:41pm
Back to Top
VulcanB2 View Drop Down
Chief Pilot
Chief Pilot
Avatar

Joined: 02 Apr 2008
Points: 13365
Post Options Post Options   Thanks (0) Thanks(0)   Quote VulcanB2 Quote  Post ReplyReply Direct Link To This Post Posted: 10 Jun 2009 at 10:53pm
That's stupid. You'd have to have 4096 page files to make use of that!!!

Best regards,
Vulcan.
Back to Top
Marmite View Drop Down
Chief Pilot
Chief Pilot
Avatar

Joined: 11 Apr 2008
Points: 1029
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marmite Quote  Post ReplyReply Direct Link To This Post Posted: 10 Jun 2009 at 9:14pm
The page file size limit for 32bit Windows (with PAE enabled, which most XP are by default) is 16TB.

I'd rather leave my paging turned on, than risk BSODs and system crashes over a slight possible performance increase (not that I've seen any figures that prove such an increase exists).
Back to Top
VulcanB2 View Drop Down
Chief Pilot
Chief Pilot
Avatar

Joined: 02 Apr 2008
Points: 13365
Post Options Post Options   Thanks (0) Thanks(0)   Quote VulcanB2 Quote  Post ReplyReply Direct Link To This Post Posted: 10 Jun 2009 at 8:43pm
Quote at least it gives the OS something to fallback on if I run out of physical memory.

Yes, if you run out of physical memory.

If you have plenty of physical memory, then disabling the swap file is not a problem. Further, it increases performance because like it or not, even if there is free physical memory (several hundred megabytes) Windows will still copy memory to the swap file!!! The result of this is if the system then tries to access memory that was swapped out, even if it is for 10 bytes, it has to make disk I/O and performance instantly suffers.

Quote Sure if you have unlimited memory in that sense then you would see an improvement since you wouldn't be writing to the slower hard drives, however you'd still run out of memory eventually

Only if you were stupid to try and run the system to the limits and beyond. Memory is so cheap there is no excuse not to add more physical RAM if you regularly run out of physical memory (swap file enabled or not). You WILL see increased performance for doing so. It is best to have more memory than you will use (hence my choice to go for 4 Gb for Vista for example - I know I won't use more than this at the current time. If I do, I'll simply buy more RAM).

Some limitations:

32-bit OS can never ever address more than 4Gb of memory. Because of memory mapped I/O present in current computer systems that you or I run, this limit is further decreased (in my case, to 2.6 Gb as the rest of the upper address lines are used for addressing hardware, etc. and are unavailable for memory addressing).

The page file can not exceed 4096 Mb in size, and XP x86 will never acknowledge more than 4 Gb of physical memory.

Here is a question: if you have two page files, both 4096 Mb in size, will Windows use them up to the full 8 Gb available?

From your link:

http://support.microsoft.com/kb/555223

Let me clarify one important point:

Virtual memory is NOT the page file. It has nothing to do with it.

Best regards,
Vulcan.
Back to Top
Marmite View Drop Down
Chief Pilot
Chief Pilot
Avatar

Joined: 11 Apr 2008
Points: 1029
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marmite Quote  Post ReplyReply Direct Link To This Post Posted: 10 Jun 2009 at 8:37pm
Originally posted by VulcanB2 VulcanB2 wrote:

Quote You posted while I was typing, memory cannot be "unlimited", you can
probably theorise that but in the end it's a physical impossibility.
I know that in reality it is impossible, but when discussing the benefits of disabling the swap file, by assuming unlimited memory, and the fact that the system will swap memory out ANYWAY despite having lots of spare memory (unlimited in our example) then obviously it has performance BENEFITS.At the other extreme end of the scale is a system with 16 Mb of RAM running Windows XP. The system will be positively living out of the swap file, yes????Best regards,Vulcan.


Sure if you have unlimited memory in that sense then you would see an improvement since you wouldn't be writing to the slower hard drives, however you'd still run out of memory eventually
Back to Top
Marmite View Drop Down
Chief Pilot
Chief Pilot
Avatar

Joined: 11 Apr 2008
Points: 1029
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marmite Quote  Post ReplyReply Direct Link To This Post Posted: 10 Jun 2009 at 8:34pm
Which in turn affects physical memory.

Originally posted by Microsoft Microsoft wrote:

Pagefile

RAM is a limited resource, whereas virtual memory is, for most practical purposes, unlimited. There can be a large number of processes each with its own 2 GB of private virtual address space. When the memory in use by all the existing processes exceeds the amount of RAM available, the operating system will move pages (4 KB pieces) of one or more virtual address spaces to the computer’s hard disk, thus freeing that RAM frame for other uses. In Windows systems, these “paged out” pages are stored in one or more files called pagefile.sys in the root of a partition. There can be one such file in each disk partition. The location and size of the page file is configured in SystemProperties, Advanced, Performance (click the Settings button).

http://support.microsoft.com/kb/555223

As I've said before, I'd rather leave paging turned on, at least it gives the OS something to fallback on if I run out of physical memory.
Back to Top
VulcanB2 View Drop Down
Chief Pilot
Chief Pilot
Avatar

Joined: 02 Apr 2008
Points: 13365
Post Options Post Options   Thanks (0) Thanks(0)   Quote VulcanB2 Quote  Post ReplyReply Direct Link To This Post Posted: 10 Jun 2009 at 8:21pm
Quote You posted while I was typing, memory cannot be "unlimited", you can probably theorise that but in the end it's a physical impossibility.

I know that in reality it is impossible, but when discussing the benefits of disabling the swap file, by assuming unlimited memory, and the fact that the system will swap memory out ANYWAY despite having lots of spare memory (unlimited in our example) then obviously it has performance BENEFITS.

At the other extreme end of the scale is a system with 16 Mb of RAM running Windows XP. The system will be positively living out of the swap file, yes????

Best regards,
Vulcan.
Back to Top
VulcanB2 View Drop Down
Chief Pilot
Chief Pilot
Avatar

Joined: 02 Apr 2008
Points: 13365
Post Options Post Options   Thanks (0) Thanks(0)   Quote VulcanB2 Quote  Post ReplyReply Direct Link To This Post Posted: 10 Jun 2009 at 8:16pm
You see the word VIRTUAL? Do you need a dictionary?

Of course disabling the swap file will affected VIRTUAL memory. Sheesh.

Virtual memory is but one small part of the overall scheme of memory management. You need to read the more general notes on memory management to understand this.

Best regards,
Vulcan.
Back to Top
Marmite View Drop Down
Chief Pilot
Chief Pilot
Avatar

Joined: 11 Apr 2008
Points: 1029
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marmite Quote  Post ReplyReply Direct Link To This Post Posted: 10 Jun 2009 at 8:10pm
Originally posted by VulcanB2 VulcanB2 wrote:

You might be interested in this:http://www.ece.cmu.edu/~ece548/handouts/05vmarch.pdfJust to highlight it before you do:
Quote Components that make virtual memory work include:• Physical memory divided up into pages• A swap device (typically a disk) that holds pages not resident in physicalmemory (that’s why it’s referred to as backing store as well)• Address translation– Page tables to hold virtual-to-physical address mappings– Translation lookaside buffer is cache of translation information• Management software in the operating system
A swap device (typically a disk) that holds pages not resident in physical memory (that’s why it’s referred to as backing store as well) See the difference? I've personally never seen it referenced as a "backing store", but hey-ho - like I said, it's just terminology.HOWEVER...You will note that NOWHERE in these notes does it say it drops data that *already* resides on the hard disk in the traditional sense of a program or user data.All it does (and as I said it did), is it copies physical memory locations to the hard disk. Nothing more, nothing less.You can write and argue with Prof. Philip Koopman if you like. You can find his contact details on the Carnegie Mellon University website. SmileBest regards,Vulcan.


That link just proves the point you argue against - "Components that make virtual memory work... A swap device"

So therefore disabling a page file means there is no swap device, ergo screwing over the functionality of virtual memory since it has nowhere to store swapped pages.

Edit: You posted while I was typing, memory cannot be "unlimited", you can probably theorise that but in the end it's a physical impossibility. The more memory you have the more computers will use that available memory
Back to Top
VulcanB2 View Drop Down
Chief Pilot
Chief Pilot
Avatar

Joined: 02 Apr 2008
Points: 13365
Post Options Post Options   Thanks (0) Thanks(0)   Quote VulcanB2 Quote  Post ReplyReply Direct Link To This Post Posted: 10 Jun 2009 at 8:08pm
I don't see performance being cited as a reson to keep it. It just says not to disable it.

The reason not to disable is because if you have 128 Mb of RAM and tried to run FS, without a page file, FS would not even start as it would run out of memory.

@Marmite: see why I said it was important to discuss the page file and performance from the point of view of UNLIMITED memory???

Best regards,
Vulcan.
Back to Top
 Post Reply Post Reply Page  123 6>
  Share Topic   

Forum Jump Forum Permissions View Drop Down