Re: Occurs Depending Memory Use



HeyBub wrote:

Kevin Solomon wrote:

Thanks to everyone for your replies.

If I understand what Richard's saying, the only real savings of using
an OCCURS DEPENDING ON clause is in overall performance and not in
the amount of memory allocated.  Of course, this means that I do not
have a solution to the actual problem we were trying to solve with
this construct.

The problem is simply that we have a program that for the next
processing year will require seven or eight tables of between 1 and
10,000 occurrences and we're endevouring to find a way to use only
the amount of memory that is actually necessary for each iteration.
As I stated in my original post, the program executes online in CICS.
(If the program was executing in batch, we'd not have a need to
optimize memory.)  There is a potential for several hundred
concurrent users of the program.  If one iteration of the program
requires 4MB-6MB of memory and there are several hundred concurrent
users and several thousands of other programs competing for
resources, you can see why we'd rather not take 4MB of memory for
each instance of the program when it is only the maximum that would
be required.

The number of occurences that are required for each iteration is
variable upon a count of transactions returned from a DB call.  Does
anyone have any ideas on how memory use might be optimized?


You're just kicking the can down the road.

Use disk files. Where possible, the OS will keep all the files in memory, so you'd be letting the OS optimize your memory usage. If you ultimately suffer a performance hit, get faster hardware.

Good advice IMHO - if you're running on Big Blue's big iron you can specify UNIT=SYSVIO (I think it's the UNIT parm, "VIO" = virtual I/O) and the OS will place your work files on page datasets, which will maximise your performance.
.




Relevant Pages

  • Re: Swap space
    ... > twice the amount of RAM if you need to capture a dump for debugging. ... > If you won't ever be doing that, you may not need so much swap. ... least the size of physical memory. ...
    (freebsd-questions)
  • Re: My idea of fully-portable C code
    ... unused state in the middle of a list of values will "use the least ... amount of memory possible" only by luck, ... The only thing that counts is what the code does if used within the limits you actually specified, on a random host platform implementing standard C. ...
    (comp.arch.embedded)
  • Re: Lambda Calculus and Turing Equivalence
    ... memory of a TM exceeds the potential finite memory of a PC. ... principle compute problems that require greater storage than ... That is because the tape that Turing posited has no physical constraints. ... magically given an infinite amount of storage space." ...
    (comp.theory)
  • Re: Lambda Calculus and Turing Equivalence
    ... memory of a TM exceeds the potential finite memory of a PC. ... principle compute problems that require greater storage than ... That is because the tape that Turing posited has no physical constraints. ... magically given an infinite amount of storage space." ...
    (sci.math)
  • Re: Problem - Solved - Re: Starting with Linux
    ... My laptop is a Pentium 133mz, with the 96mb RAM. ... With DMA off, you will notice some system degradation and with only ... > to 8Mb probably) further reducing the amount of system memory available. ...
    (alt.os.linux.suse)