Maxim 30. : Analyze, Then Optimize. You must get a clear picture of the issue first. Run a diagnostic tool on the server while you execute your code (with OPTIONS STIMER for in-depth log analysis, of course). My favorite on AIX was topas, where I could see the detailed CPU load ( sys, user, wait), disk throughput, network activity, top processes all at once. You also see if there‘s paging activity when not enough physical memory is available for the processes, which is a serious performance killer. You should always use your fastest storage for WORK; unless there‘s a quota set (which any diligent admin will always do), any user can use it all. A local PC being faster than a server points to a serious mis-conception in the design of the server.
... View more