IBM Metal C

Examples

Example 10. VSMLIST - Virtual Storage Information

Virtual storage allocation information can be obtained using the VSMLIST macro. Information for allocated, free, or unallocated storage can be obtained for storage below the "bar." The routine in this example obtains information about allocated storage by subpool and by task. Additionally, information from the VSM Local Data Area is obtained.

The output from the routine is in comma delimited format. The three tables below are an example of the output with headings added for clarity.

Storage Allocated by Subpool Number
Subpool
No.
Total
Storage
Below
Line
Above
Line
0 1097728 8192 1089536
229 1204224 0 1204224
230 913408 81920 831488
236 163840 61440 102400
237 421888 86016 335872
249 8192 0 8192
251 16384 0 16384
Storage by Task Name
Task
No.
Task
Name
Total
Storage
Below
Line
Above
Line
0 IEAVAR00 831488 57344 774144
1 IEFSD060 933888 90112 843776
2 IEFIIC 1429504 81920 1347584
3 VSMLIST2 36864 8192 28672
4 IEAVTSDT 593920 0 593920
Storage by Local Data Area
Summary of Key
Information from LDA
(Local Data Area)
6000 Address of start of private storage area
9412608 Size of private storage area
8000 Address of current top of user region
9412608 Maximum size of user region (< 16M)
8192 Total bytes allocated to user region (< 16M)
258048 Total bytes allocated to LSQA/SWA/229/230 region (< 16M)
1E800000 Address of start of extended private storage area
1635778560 Size of extended private storage area
1E90E000 Address of current top of extended user region
398458880 Maximum Size of extended user region (>16M)
1105920 Total bytes allocated to extended user region (> 16M)
12185600 Total bytes allocated to extended LSQA/SWA/229/230 (> 16M)

C Source

References

  1. z/OS MVS Authorized Assembler Services Guide Chapter 10. Virtual storage management
  2. z/OS MVS Programming: Authorized Assembler Services Reference, Volume 4 (SET-WTO))
  3. z/OS MVS Data Areas Volume 4
  4. z/OS MVS Diagnosis: Reference

All references copyright© IBM Corporation.