Studio:After installing the STRIDE Runtime, what are my configuration settings?

From STRIDE Wiki
(Redirected from After installing the STRIDE Runtime, what are my configuration settings?)
Jump to navigation Jump to search

The Runtime configuration settings are described in the srcfg.h file, located in C:\STRIDE\runtime. (This file is installed only when the runtime files are requested as part of the STRIDE install.)

If you have made changes to the default settings, you should avoid overwriting the file. (This occurs upon a re-install of STRIDE.)

The default configuration settings are as follows:

/* Messaging */
#define srCFG_TOTAL_STIDS              16   /* number of STRIDE Transact IDs in system   */
#define srCFG_TOTAL_SUBCS              20   /* total number of subscribers at one time   */
#define srCFG_TOTAL_PTRS               30   /* total number of pointer entries           */
#define srCFG_SUID_TABLE_TYPE          1    /* 1 = Search based, 0 = Index based         */
#define srCFG_SUID_TABLE_SIZE          225  /* number of SUID Table entries              */
#define srCFG_TOTAL_SUIDS_QUED         50   /* total number of SUIDS queued at one time  */
#define srCFG_STID_NAME_SIZE           15   /* max size of a STRIDE Transact ID name     */
#define srCFG_SUID_OVERRIDE            1    /* override (1 = enabled, 0 = disabled)      */
#define srCFG_SUID_OVERRIDE_STORAGE    0    /* override registration storage allocation  */

/* Tracing */
#define srCFG_TRACING_ENABLED          1    /* tracing enabled  (1=enabled, 0=disabled)  */
#define srCFG_TOTAL_TRACING_MEMORY     4096 /* number of bytes allocated for tracing     */
#define srCFG_TRACEBUFFER_MAX_SIZE     1000 /* max size of a single trace buffer         */
#define srCFG_TRACEBUFFER_WAKEUP_TIME  100  /* number of milliseconds between sending    */

/* Time Stamp */
#define srCFG_TIMESTAMP_UNITS          1    /* 0 = microsecs, 1 = Millisecs, 2 = secs    */
#define srCFG_TIMESTAMP_DURATION       1    /* number of TimeStamp Units per Tick        */

/* Auxiliary Data */
#define srCFG_AUXDATA                  0    /* Use Auxiliary Data (1=Yes, 0=No)          */

/* Transport Settings */
#define srCFG_MAX_TRANSPORT_UNIT       2048 /* 0=No Fragmentation, Number=Fragment Size  */
#define srCFG_DEFAULT_TRANSPORT_STATE  1    /* 1=Transport Ready, 0=Transport Not Ready  */

/* Connection Settings */
#define srCFG_CONNECTION_TIMEOUT       5000 /* connection timeout (1=enabled, 0=disabled)*/

/* RFC (Remote Function Call) Settings */
#define srCFG_RFC_ENABLED              1    /* RFC enabled  (1=Yes, 0=No)                */
#define srCFG_RFC_PMM                  1    /* RFC pool memory management                */
                                            /*    - (0=None, 1=Recovery, 2=Reallocation) */
#define srCFG_RFC_PAL_PMM              0    /* PAL pool memory management (1=Yes, 0=No)  */

/* Memory Management Settings */
#define srCFG_MEMORY_MANAGEMENT        0    /* memory management (1=enabled, 0=disabled) */

#if srCFG_MEMORY_MANAGEMENT
#define srCFG_MEMORY_BLOCK_SIZE_SMALL  30     /* size of a small memory block            */
#define srCFG_MEMORY_BLOCK_SIZE_MEDIUM 100    /* size of a medium memory block           */
#define srCFG_MEMORY_BLOCK_SIZE_LARGE  500    /* size of a large memory block            */
#define srCFG_MEMORY_BLOCK_SIZE_LARGE2 1000   /* size of a large2 memory block           */
#define srCFG_MEMORY_BLOCK_SIZE_LARGE3 10000  /* size of a large3 memory block           */
#define srCFG_MEMORY_BLOCK_SIZE_HUGE   0xFFFF /* size of a huge memory block             */

#define srCFG_MEMORY_BLOCK_MAX_SMALL   5000   /* max number of small memory blocks       */
#define srCFG_MEMORY_BLOCK_MAX_MEDIUM  250    /* max number of medium memory blocks      */
#define srCFG_MEMORY_BLOCK_MAX_LARGE   250    /* max number of large memory blocks       */
#define srCFG_MEMORY_BLOCK_MAX_LARGE2  100    /* max number of large2 memory blocks      */
#define srCFG_MEMORY_BLOCK_MAX_LARGE3  50     /* max number of large3 memory blocks      */
#define srCFG_MEMORY_BLOCK_MAX_HUGE    50     /* max number of huge memory blocks        */
#endif /* srCFG_MEMORY_MANAGEMENT */

/* Multi-Process Settings */
#define srCFG_MULTI_PROC_TARGET        0  /* multi-process target (1=enabled, 0=disabled)*/

/* Debug Settings */
#define srCFG_ERROR_CHECK_LEVEL        2    /* levels(0,1,2), none(0)                    */