Skip to main content

cttctx

Performance test utility

Abstract

cttctx is a multi-threaded FairCom client test for comprehensive testing of FairCom server operations. This utility was designed specifically for profiling FairCom Server performance. Use this utility to simulate high load conditions against the FairCom server for verifying application performance.

cttctx is a multi-threaded FairCom client test for comprehensive testing of FairCom server operations. This utility was designed specifically for profiling FairCom Server performance. Use this utility to simulate high load conditions against the FairCom server for verifying application performance.

Example 1. Usage
cttctx <uid> <upw> <svn> [create [-t<trnmod>] | <nThrds> [-c<concurrency>]

	[-d<dist>] [-e] [-h] [-j] [-o<op>] [-p] [-r<msec>] [-n<niter>] ]


Table 1. Arguments

Argument

Description

<uid>

Username

<upw>

User password

<svn>

FairCom server name.

create

Create new test data/index files.

-t<trnmod> 

Transaction mode to use when creating the files.

<trnmod> is one of the following:
  • t - ctTRNLOG

  • p - ctPREIMG

  • n - no tran

<nThrds>

Number of threads to spawn.

-c<concurrency> 

Changes thread concurrency to <concurrency>.

-e 

Uses the embedded FairCom SQL interface (otherwise use the ISAM interface).

-h 

Hard exits, abrupt termination without thread cleanup.

-j 

Adds to vlength files.

-o<op> 

Operation to apply.

<op> is one of the following:
  • a - Add

  • c- Read

  • c - Delete

-p[1 | 2] 

Tracks performance stats such as latency of operations. p1 tracks the total elapsed time. p2 enables full profiling (elapsed time plus individual call times). This is the equivalent of a previous -p option.

Output of these stats is written to a file named fnc.<PID>.<THREADID>.log where PID is the cttctx process ID and THREADID is the executing thread ID.

-r<msec> 

Number of milliseconds between performing each operation.

-n<niter> 

Number of loop iterations to perform.