How can I programmatically obtain the amount of memory an assembler program is currently using assembler instructions/macros from within the running program? I'm debugging an 878 (out of memory) error, and I"d like my program to report at different stages how much memory it is using.
How can I obtain memory usage information using zos assembler
1.3k views Asked by FierceMonkey At
1
There are 1 answers
Related Questions in ASSEMBLY
- Is there some way to use printf to print a horizontal list of decrementing hex digits in NASM assembly on Linux
- How to call a C language function from x86 assembly code?
- Binary Bomb Phase 2 - Decoding Assembly
- AVR Assembly Clock Cycle
- Understanding the differences between mov and lea instructions in x86 assembly
- ARM Assembly code is not executing in Vitis IDE
- Which version of ARM does the M1 chip run on?
- Why would %rbp not be equal to the value of %rsp, which is 0x28?
- Move immediate 8-bit value into RSI, RDI, RSP or RBP
- Unable to run get .exe file from assembly NASM
- DOSbox automatically freezes and crashes without any prompt warnings
- Load function written in amd64 assembly into memory and call it
- link.exe unresolved external symbol _mainCRTStartup
- x86 Wrote a boot loader that prints a message to the screen but the characters are completely different to what I expected
- running an imf file using dosbox in parallel to a game
Related Questions in MEMORY
- 9 Digit Addresses in Hexadecimal System in MacOS
- Memory location changing from 0 to 1 consistently on Mac
- Would event listeners prevent garbage collecting objects referenced in outer function scopes?
- tensorrt inference problem: CPU memory leak
- How to estimate the memory size of a binary voxelized geometry?
- Java Memory UTF-16 Vs UTF-8
- Spring Boot application container memory footprint (Java 21)
- Low memory Windows CE
- How to throw an error when a program acesses a block of memory created by you that has been deallocated by a call of free?
- Golang bufio.Scanner: token too long
- Get the address and size of a loaded shared object on memory from C
- In Redis Databases how do we need to calculate the table size
- ClickHouse Materialized View consuming a lot of Memory and CPU
- How to reduce memory usage for large matrix calculations?
- How to use memray with Gunicorn or flask dev server?
Related Questions in ZOS
- Z/OS Cobol 6.3 copy: how to include only a chunk?
- Using the 'Download ZIP' option on Github Rep with z/OS?
- How to "stack" an ISPF command?
- How to use LISTDSI under OMVS
- Can I use an EQU in z/OS HL/ASM for a value in a DC?
- How do I package a object module replacement for distribution via smpe
- Trying to OPEN a PDSE and write records to a new member using z/OS HL/ASM
- How to programmatically overwrite DCI 2.0 policy via REXX or JCL?
- Connect to Db2 on z/OS from Windows. Connection failed due to a license error
- BPX2OPN fails when trying to open existing file for read/stat
- How do I write current date and time to a sequential dataset using JCL?
- How do I get the parameters passed in to an assembler program running in the UNIX System Services environment on z/OS?
- Compehending fields: ALLOC, FREE and %FR in FDReport product from BMC for mainframe
- zsh associative array has multiple keys with the same value
- U4091 Reason 00000006
Related Questions in MVS
- PDF doc displayed in browser in ASP.NET Core MVC app has blank pages
- MVS ALLOCATE DDNAME to apply to multiple jobs
- On z/OS USS, how to decide whether an existing MVS data set is a partition data set (library) or a sequential data set?
- how to make routing in javascript express
- wxWidgets LNK1104 error when linking Statically in MVS and c++
- I am getting error in IBM Mainframe "DATA SET HELLO.SUYASH.TEST1 NOT ALLOCATED, REQUEST CANCELED"
- Using WTO to write multi-line message via __asm__ in C language
- How to cancel a JCL job(Mainframe) in SDSF???(OZA1) error
- Moving DataBase from Microsoft SQL folder to App_Data folder (appseting.json)
- Zowe explorer VSCode Retrieving response from zowe.List Error: Huh?
- Run step when previous JCL step did not find file
- z/OS JCL command /*VS command fails when issued in a proc
- How to insert a character when editing a file using ISPF Edit via TN3270?
- Reading EBCDIC variable files with comp-3 without COBOL on MVS?
- Is there a way to check existence of file in MVS before attempting copy to Unix server
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Region size can be set a variety of different ways depending on the type of address space (TSO session, batch job, STC, ...). Some sites set custom region sizes using an SMF exit, so it's not always easy to understand what's going on here.
The limit value for a given address space is stored in the LDA data area (see https://www-304.ibm.com/servers/resourcelink/svc00100.nsf/pages/zOSV2R3ga320937/$file/iead300_v2r3.pdf). In an assembler program, you'd get this value by following PSAAOLD to ASCBLDA and then examining whatever region size you're looking for.
A more modern interface to this stuff is available in the various UNIX Services APIs on z/OS. For example, getrusage (BPX1GRU) gives you your resource utilization for several resources, including memory. All an assembler program needs to use this stuff is a UNIX UID value in your security information - no other special setup is needed.