What is the difference between paging and swapping?

Virtual Storage Access method - ESDS, KSDS, RRDS & LDS. Basic direct access method, Basic sequential -, Queued sequential -, Basic partitioned -, Indexed sequential -, Object - access method.
Post Reply
Priya
Registered Member
Posts: 50
Joined: Tue Jul 02, 2013 11:43 pm

What is the difference between paging and swapping?

Post by Priya »

Hi,

What is the difference between paging & swapping, in MVS? Does the same apply to zOS?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: What is the difference between paging & swapping?

Post by Robert Sample »

From the z/OS Concepts manual:
Swapping is the process of transferring all of the pages of an address space between central storage and auxiliary storage.

A swapped-in address space is active, having pages in central storage frames and pages in auxiliary storage slots. A swapped-out address space is inactive; the address space resides on auxiliary storage and cannot execute until it is swapped in.

While only a subset of the address space's pages (known as its working set) would likely be in central storage at any time, swapping effectively moves the entire address space. It is one of several methods that z/OS® uses to balance the system workload and ensure that an adequate supply of available central storage frames is maintained.

Swapping is performed by the System Resource Manager (SRM) component, in response to recommendations from the Workload Manager (WLM) component.
and
z/OS uses a series of tables to determine whether a page is in real or auxiliary storage, and where. To find a page of a program, z/OS checks the table for the virtual address of the page, rather than searching through all of physical storage for it. z/OS then transfers the page into central storage or out to auxiliary storage as needed. This movement of pages between auxiliary storage slots and central storage frames is called paging. Paging is key to understanding the use of virtual storage in z/OS.
Note that MVS has not been used for many years (over 20). The current IBM mainframe operating system is z/OS (although it is not uncommon to refer to z/OS as MVS since z/OS is derived from MVS).
Priya
Registered Member
Posts: 50
Joined: Tue Jul 02, 2013 11:43 pm

Re: What is the difference between paging & swapping?

Post by Priya »

Thanks Robert.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “SMS & VSAM and BDAM, BSAM, QSAM, BPAM, ISAM, OAM.”