You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
-
I 100% disagree with this answer. If "virtual memory" referred to paging, then a system that doesn't page (say, one with no swap or page files enabled) could not support virtual memory. But that's obviously insane.– David SchwartzCommented Aug 28, 2011 at 22:09
-
@DavidSchwartz - I initially had a reaction similar to yours, but in reading the answer in more detail, I don't think it is so bad. Consider Wikipedia/virtual memory/Paged says "Nearly all implementations of virtual memory divide a virtual address space into pages, blocks of contiguous virtual memory addresses". That is, "paging", in the broad sense, does not require a page file, but refers to the mapping of virtual addresses into physical addresses.– ToolmakerSteveCommented May 14, 2017 at 10:42
-
1Hmm, on the other hand, Lee says "All of the pages of information don't fit in memory, so some pages are put on disk, and loaded again later.", so David is right: this answer misses the essential fact that paging is not just about paging to disk. On the plus side, Lee does go on to mention other benefits of virtual memory (memory isolation). If this answer were reworded to not muddle "mapping pages of virtual memory" with "paging to disk", it would be more useful.– ToolmakerSteveCommented May 14, 2017 at 10:51
-
@ToolmakerSteve The problem is that this is a very common misconception and anything that strengthens that misconception is, IMO, a bad thing. It's especially bad here when this answer is trying to explain the very basic concepts in a very simple matter -- there it's the most important not to lay a groundwork based on a common misconception!– David SchwartzCommented May 14, 2017 at 17:35
-
@DavidSchwartz - I agree. You are right, he is not defining "virtual memory", he is defining "how a page file works". At first I had thought that the problem was merely that Lee failed to distinguish between "paging = mapping pages of memory from virtual to physical" versus "page file = mapping pages to disk", but after re-reading, he really was talking only about mapping to disk. (As we can see, from the textbook quote, from all the other answers except the Captain's, and from a google search, this commingling of the two concepts is very widespread. I'm sure I've been guilty of it.)– ToolmakerSteveCommented May 19, 2017 at 9:45
Add a comment
|
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_`
- quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>
[example](https://example.com)
<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. windows-7), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you