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+
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
Pinned topic How to estimate the amount of memory a RPGLE program will use roughly ?
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-03-12T09:48:54Z at 2012-03-12T09:48:54Z by Prithiviraj
Prithiviraj 270001CEBX60 Posts
Re: How to estimate the amount of memory a RPGLE program will use roughly ?2012-03-12T09:48:54ZThis is the accepted answer. This is the accepted answer.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.