Queston on the profiling tool for COBOL.
Posted: Fri Jun 12, 2015 3:50 pm
Continuing from this thread at: http://www.zmainframes.com/viewtopic.php?f=10&t=1343 but have a differnt question:
As Robert has said above, "With an I/O-bound program, you have to look at how to reduce I/O (such as building tables in memory instead of reading from a file)" but if pick up this example, will it not increase the load on the COU? While later we talk about reducing CPU,so is like striking the balance between the two?In general, COBOL tuning involves looking at where the code is taking the most time and identifying how to reduce the time used there. Programs are either CPU-bound or I/O-bound (that is, the code mostly waits for CPU time to continue or waits for I/O to complete to continue). With an I/O-bound program, you have to look at how to reduce I/O (such as building tables in memory instead of reading from a file). With a CPU-bound program, you have to look at how to reduce the program code being executed (which may require changing the algorithm, changing variable definitions, or making other efficiency changes). Whether the program is CPU-bound or I/O-bound, using a code profiler can assist in determining where the bottlenecks are in the code.