mem_optimize

Specifies whether to use optimized memory allocation routines. By default, several routines to optimize memory allocation. is used.To suppress this feature, set the value of mem_optimize to FALSE. You may want to suppress memory optimization when running simulations along with certain debugging utilities and libraries, such as Purify.

This preference can be used only from the command line, and its value changes only at start-up.

Data Type Default Value
boolean TRUE

When mem_optimize is FALSE, memory allocation handling is limited:

  • The concept of pooled memory does not exist; thus, all allocations are individual ones.
  • Categorized memory is not used (although categories are defined).

Because of these memory allocation limitations, memory reports (in the Simulation Progress dialog box, via the ODB memstats command, and from the prg_mem_stats_print() function) differ from those given when mem_optimize is TRUE, as follows:

  • No pooled memory is listed.
  • Categorized memory categories are listed, but all show a usage of zero.
  • All memory usage is lumped together in one category, called General.
  • Total usage is typically lower, because there is no pooled memory overhead.

Note: To set mem_optimize to FALSE for a simulation, add this preference to the preferences file or specify it in the Command line options field on the Execution:Advanced:Application page of the Configure/Run DES dialog box.