![]() |
![]() HP OpenVMS Systemsask the wizard |
![]() |
The Question is: how to load arrays to minimize page faults?? The Answer is : Either in column order or row order, depending both on the language used and on the most common reference -- the intent is to keep most data items and most address references located closely together, and thus to reduce the number of page faults incurred. (This page faulting activity is typically a performance factor only for large arrays, or arrays that cannot otherwise be held in the process working set.) For your specific application, a trivial program and a couple of seconds within the OpenVMS debugger will tell you which way the addresses run for the current language and the current application.
|