Product Documentation and Knowledge Base - HomeDocumentation


Charon-VAXCharon-AXPCharon-PDPCharon-SSPCharon-PAR
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Session

General settings that control execution of CHARON-VAX belong to an object callled "session". It is a preloaded object; therefore, only "set" commands apply.

Example:

set session <parameter>=<value>

The following table describes all available "session" parameters, their meaning and examples of usage:

hw_model

Parameterhw_model
TypeText string
Value

Virtual VAX system hardware model to be emulated.

Use a default configuration template for each particular model as a starting point for a custom configuration. This would ensure that the parameter is set correctly.

Example:

set session hw_model="VAX_6610"

The models are:

  • MicroVAX_3100_Model_96

  • MicroVAX_3100_Model_98

  • MicroVAX_3600

  • MicroVAX_3900

  • MicroVAX_II

  • VAXserver_3600

  • VAXserver_3600

  • VAXserver_3600_128

  • VAXserver_3600_512

  • VAXserver_3900

  • VAXserver_3900_128

  • VAXserver_3900_512

  • VAX_4000_Model_106

  • VAX_4000_Model_108

  • VAX_4000_Model_700

  • VAX_4000_Model_705

  • VAX_6000_Model_310

  • VAXstation_4000_Model_90

  • VAX_6610

  • VAX_6620

  • VAX_6630

  • VAX_6640

  • VAX_6650

  • VAX_6660

configuration_name

Parameterconfiguration_name
TypeText string
Value

Name of CHARON-VAX instance (unique):

set session configuration_name="MSCDV1"

The value of this parameter is used as prefix to the event log file name when multiple log files are configured (see below).

From the example above, the CHARON-VAX log file will have the following name:

MSCDV1-YYYY-MM-DD-hh-mm-ss-xxxxxxxxx.log

xxxxxxxxx is an increasing decimal number starting from 000000000 to separate log files with the same time of creation (in case the log is being written faster than one log file per second).

log

Parameterlog
TypeText string
Value

Log file name or directory name where the log files for each CHARON-VAX execution session will be stored. If an existing directory is specified, CHARON-VAX automatically creates individual log files for each CHARON-VAX execution session. If the log parameter is omitted CHARON-VAX creates a log file for each CHARON-VAX execution session in the directory where the emulator was started.

Examples:

set session log="log.txt"
set session log="/charon/logs"

If only a directory is specified in the "log" parameter and the "configuration_name" parameter of the session is specified, the log file name is composed as follows:

<configuration_name>-YYYY-MM-DD-hh-mm-ss-xxxxxxxxx.log

If only a directory is specified in the "log" parameter and the "configuration_name" parameter is omitted, the log file name will have the following format:

<hw_model>-YYYY-MM-DD-hh-mm-ss-xxxxxxxxx.log

xxxxxxxxx is an increasing decimal number starting from 000000000 to separate log files with the same time of creation (in case if the log is being written faster than one log file per second).

log_method

Parameterlog_method
TypeText string
Value
  • "overwrite" (default)
  • "append"

Determines if previous log information is maintained.

This parameter must be specified only in addition to “log” parameter on the same line.

This parameter is applicable only if the CHARON-VAX log is stored in a file that is specified explicitly with the "log" parameter.

Example:

set session log="log.txt" log_method="append"

log_locale

Parameterlog_locale
TypeText string
Value

Sets the language used in the message database.

So far the following values are supported:

  • Dutch"

  • English” (default)

  • Swedish

  • Spanish

  • Chinese-Simplified

If an unsupported value is specified, “English” will be used.

Example:

set session log_locale="Dutch"

license_key_id

Parameter

license_key_id[N]

N=0 or 1

TypeNumeric
Value

A number (decimal Sentinel key ID) that specifies regular (N=0) and backup (N=1) license keys to be used by CHARON-VAX.

set session license_key_id[0]=1877752571
set session license_key_id[1]=354850588

It is also possible to specify both regular and backup key in one line:

set session license_key_id[0]=1877752571 license_key_id[1]=354850588

Based on the presence of the regular and/or backup license key IDs in the configuration file, CHARON-VAX behaves as follows:
 

  1. No keys are specified
    CHARON-VAX performs an unqualified search for any suitable key. If no key is found, CHARON-VAX exits.

  2. Both keys are specified
    CHARON-VAX performs a qualified search for a regular license key. If it is not found, CHARON-VAX performs a qualified search for backup license key. If it is not found, CHARON-VAX exits.

  3. Only regular key is specified
    CHARON-VAX performs a qualified search for a regular license key. If it is not found, CHARON-VAX performs an unqualified search for any suitable key. If none are found, CHARON-VAX exits.

  4. Only backup key is specified
    CHARON-VAX performs an unqualified search for any suitable key. If no key is found, CHARON-VAX exits.

affinity

Parameteraffinity
TypeText string
Value

Overrides any initial process affinity mask provided by the host operating system. Once specified it binds the running instance of the emulator to particular host CPUs.

Can be used for soft partitioning host CPU resources and/or for isolating host CPUs for other applications.

By default CHARON-VAX emulator instance allocates as many host CPUs as possible. The “affinity” parameter overrides that and allows explicit specification on which host CPU the instance must run.

Host CPUs are enumerated as a comma separated list of host system assigned CPU numbers:

set session affinity="0, 2, 4, 6"

n_of_io_cpus

Parametern_of_io_cpus
TypeNumeric
Value

This parameter specifies how many host CPUs CHARON-VAX must use for I/O handling. Use of the “affinity” parameter may limit the number of CPUs available.

By default the CHARON-VAX instance reserves one third of available host CPUs for I/O processing (round down, at least one). The “n_of_io_cpus” parameter overrides that by specifying the number of CHARON I/O CPUs explicitly.

Example:

set session n_of_io_cpus=2

license_key_lookup_retry

Parameterlicense_key_lookup_retry
TypeText String
Value

In case the CHARON-VAX license connection is not present at guest statup, this parameter specifies how many times CHARON-VAX will try to reestablish the connection and, optionally, a period of time between retries.

Syntax:

set session license_key_lookup_retry = "N [, T]"

where:

  • N - Number of retries looking for license key (or keys)
  • T - Time between retries in seconds. If not specified 60 seconds is used

Example 1:

If license key is not found during initial scan, do only one more attempt after 60 seconds:

set session license_key_lookup_retry = 1

Example 2:

Same as above but retry in 30 seconds:

set session license_key_lookup_retry = "1,30"

Example 3:

If license key not found during initial scan, do 3 more attempts waiting 10 seconds between them:

set session license_key_lookup_retry = "3,10"

Example 4:

If license key is not found during initial scan, do 5 more attempts waiting 60 seconds between them.

set session license_key_lookup_retry = "5"

 

Back to Table of Contents 

  • No labels