Go to the first, previous, next, last section, table of contents.


Class System

Rather than provide a host of obscure primitives for reading and modifying host system configuration parameters, Muq provides Class System, the properties of which display these parameters. Configuration parameters may thus be configured via the normal property-setting primitives.

There is normally only one instance of Class System in the db, available as .sys.

Reading and modifying the muq-server configuration is done via a separate class. See section Class Muq.

Class System adds the following properties to those of Class Plain:

$S.pageSize:    Host page size in bytes.
$S.pid:          Process id of server on host unix.

$S.hostName:    Hostname as returned by unix gethostname() function.
$S.dnsName:     Fully qualified Domain Name System name for host.
$S.dnsAddress:  Dotted-decimal Domain Name System address for host.
$S.ip0:          First  byte of host IP address, as an integer.
$S.ip1:          Second byte of host IP address, as an integer.
$S.ip2:          Third  byte of host IP address, as an integer.
$S.ip3:          Fourth byte of host IP address, as an integer.
$S.muqPort:     Base port for server and port for server's muqnet daemon.

$S.millisecsSince1970:    System time.
$S.dateMicroseconds:  Additional precision for above.

$S.usermodeCpuSeconds:  As reported by unix for server.
$S.usermodeCpuNanoseconds:  As reported by unix for server.
$S.sysmodeCpuSeconds:   As reported by unix for server.
$S.sysmodeCpuNanoseconds:   As reported by unix for server.
$S.maxRss:   As reported by unix for server.
$S.pageReclaims:   As reported by unix for server.
$S.pageFaults:   As reported by unix for server.
$S.swapOuts:   As reported by unix for server.
$S.blockReads:   As reported by unix for server.
$S.blockWrites:   As reported by unix for server.
$S.voluntaryContextSwitches:   As reported by unix for server.
$S.involuntaryContextSwitches:   As reported by unix for server.
$S.endOfDataSegment:   As reported by unix for server.

Note: For convenience, the $S properties are also available in the public (default) propdir.


Go to the first, previous, next, last section, table of contents.