Results 1 to 6 of 6
  1. #1
    5 Star Lounger ibe98765's Avatar
    Join Date
    Aug 2001
    Location
    Bay Area, California, USA
    Posts
    966
    Thanks
    19
    Thanked 4 Times in 4 Posts

    Pagefile vs. swapfile (WinXp SP1)

    What is (or is there?) a difference between a Swapfile and a Page file in WinXP? I've thought they are one and the same but an app author is telling me no. Since his English isn't very good, it is proving difficult to communicate. He says the differences are explained in the MS SDK. Can I access the SDK online? Any help of pointers on this appreciated...

  2. #2
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Pagefile vs. swapfile (WinXp SP1)

    They are one and the same. Swap, meaning swapping from memory to disk and back, and page as in memory pages. The app author may be misunderstanding what you're asking, but rest assured - it's all the same thing: a space allocated on the hard drive for use as "reserve" memory.
    -Mark

  3. #3
    Silver Lounger
    Join Date
    Apr 2001
    Location
    New York, New York, USA
    Posts
    2,328
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Pagefile vs. swapfile (WinXp SP1)

    See also Memory Architecture in Microsoft Software Developer Network Library.
    "...In a virtual memory system, the operating system creates a pagefile,
    or swapfile..."

  4. #4
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Pagefile vs. swapfile (WinXp SP1)

    The memory management architecture in Windows NT was based on the design for VMS, where pagefiles and swapfiles were subtly different. A pagefile was used to store small parts of a process address space, whereas a swapfile stored the whole thing.

    StuartR

  5. #5
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Pagefile vs. swapfile (WinXp SP1)

    Aha, there's the DEC background! I imagine this was David Cutler's handiwork. Are you aware of any differences under the NT platform? I have always presumed the terms to be interchangeable with the NT architecture, since it maintains only once such file (that I've ever seen).
    -Mark

  6. #6
    5 Star Lounger ibe98765's Avatar
    Join Date
    Aug 2001
    Location
    Bay Area, California, USA
    Posts
    966
    Thanks
    19
    Thanked 4 Times in 4 Posts

    Re: Pagefile vs. swapfile (WinXp SP1)

    Stuart - Your explanation sounds similar to how IBM's MVS OS works (or used to). A whole address space was SWAPPED out while individual 4k pages of an address space or something were PAGED out.

    In this case, it looks like the author is calling swapfile the amount of space used on the physical disk page file and his pagefile metric is the combination of total disk page file size + RAM. Kind of weird usage...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •