Topic
1 reply Latest Post - ‏2012-03-12T09:48:54Z by Prithiviraj
Prithiviraj
Prithiviraj
60 Posts
ACCEPTED ANSWER

Pinned topic How to estimate the amount of memory a RPGLE program will use roughly ?

‏2012-03-12T07:45:25Z |
I was thinking about estimating memory usage of a iSeries(RPGLE) program when it is invoked. I could be wrong but I came up with this. please share your thoughts, am I in the right direction ?
+T = O(m) + S(m) + R(m) + S(d1…n) + O(d1…n) + Misc+

Where

O(m) – Object size of the Main program being invoked
S(m) – Static Storage of the Main Program being invoked (DSPPGM / DSPMOD DETAIL(*SIZE))
R (m) – Run time memory usage ex: IO / Disk into memory/ Paging
S(d1..n) – Recursive Static storage of nth level dependent Service programs
O(d1..n) – Recursive Object size of nth level dependent Service programs
Misc - Unknown stuff that OS might use up.

Thanks in Advance
Updated on 2012-03-12T09:48:54Z at 2012-03-12T09:48:54Z by Prithiviraj
  • Prithiviraj
    Prithiviraj
    60 Posts
    ACCEPTED ANSWER

    Re: How to estimate the amount of memory a RPGLE program will use roughly ?

    ‏2012-03-12T09:48:54Z  in response to Prithiviraj
    I forgot to add the Automatic Storage which will be interim and may or may not be used based on the program logic to the above equation.