[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 4

rmss Command

Purpose

Simulates a system with various sizes of memory for performance testing of applications.

Syntax

rmss -c MemSize

rmss -r

rmss -p

rmss [ -d MemSize ] [ -f MemSize ] [ -n NumIterations ] [ -o OutputFile ] [ -s MemSize ] Command

Implementation Specifics

This command is valid only on the POWER-based platform.

Flags

-c MemSize Changes the simulated memory size to the MemSize value, which is an integer or decimal fraction in units of megabytes. The MemSize variable must be between 4MB and the real memory size of the machine. There is no default for the -c flag.
Note
It is difficult to change the simulated memory size to less than 8MB, because of the size of inherent system structures such as the kernel.
-d MemSize Specifies the increment between memory sizes to be simulated. The MemSize value is an integer or decimal fraction in units of megabytes. If the -d flag is omitted, the increment will be 8MB.
-f MemSize Specifies the final memory size. You should finish testing the simulated system by executing the command being tested at a simulated memory size given by the MemSize variable, which is an integer or decimal fraction in units of megabytes. The MemSize variable must be between 4MB and the real memory size of the machine. If the -f flag is omitted, the final memory size will be 8MB.
Note
It is difficult to finish at a simulated memory size of less than 8MB because of the size of inherent system structures such as the kernel.
-n NumIterations Specifies the number of times to run and measure the command, at each memory size. There is no default for the -n flag. If the -n flag is omitted, during rmss command initialization, the rmss command will determine how many iterations of the command being tested are necessary to accumulate a total run time of 10 seconds, and then run the command that many times at each memory size.
Note
The rmss command always executes the command once at each memory size prior to the executions that are measured. This prepares the simulation for the actual test.
-o OutputFile Specifies the file into which to write the rmss report. If the -o flag is omitted, then the rmss report is written to the file rmss.out. In addition, the rmss report is always written to standard output.
-p Displays the current simulated memory size.
-r Resets the simulated memory size to the real memory size of the machine.
-s MemSize Specifies the starting memory size. Start by executing the command at a simulated memory size specified by the MemSize variable, which is an integer or decimal fraction in units of megabytes. The MemSize variable must be between 4MB and the real memory size of the machine. If the -s flag is omitted, the starting memory size will be the real memory size of the machine.
Note
It is difficult to start at a simulated memory size of less than 8MB, because of the size of inherent system structures such as the kernel.
Command Specifies the command to be run and measured at each memory size. The Command parameter may be an executable or shell script file, with or without command line arguments. There is no default command.

Security

Access Control: You must have root authority to run this command.

Examples

  1. To change the memory size to 13.5MB, enter:

    rmss -c 13.5
  2. To print the current memory size, enter:

    rmss -p
  3. To reset the memory size to the real memory size of the machine, enter:

    rmss -r
  4. To investigate the performance of the command cc -O foo.c on memory sizes 32, 24, 16, and 8MB; run and measure the command once at each memory size; and then write the report to the cc.rmss.out file, enter:

    rmss -s 32 -f 8 -d 8 -n 1 -o cc.rmss.out cc -O foo.c
  5. To investigate the performance of the sequence of commands in the foo.sh shell script file on memory sizes starting at the real memory size of the machine and ending at 8MB, by increments of 8MB; let the rmss command determine the number of iterations to run and measure the foo.sh at file each memory size; and then write the rmss report to the rmss.out file (with all defaults used in this invocation of the rmss command), enter the following:

    rmss foo.sh
  6. To investigate the performance of the executable bar on memory sizes from 8MB to 16MB, by increments of 0.5MB; run and measure bar twice at each memory size; and write the report to the bar.rmss.out file, enter:

    rmss -s 8 -f 16 -d .5 -n 2 -o bar.rmss.out bar
  7. When any combination of the -s, -f, -d, -n, and -o flags is used, the rmss command runs as a driver program, which executes a command multiple times over a range of memory sizes, and displays statistics describing the command's performance at each memory size.

    An example of the report printed out by the rmss command follows:

    Hostname:  xray.austin.ibm.com
    Real memory size:   48.00 Mb
    Time of day:  Wed Aug  8 13:07:33 1990
    Command:  cc -O foo.c
    Simulated memory size initialized to  24.00 Mb.
    Number of iterations per memory size = 1 warmup + 1 measured = 2.
    Memory size  Avg. Pageins  Avg. Response Time   Avg. Pagein Rate
    (megabytes)                       (sec.)           (pageins/sec.)
       -----------------------------------------------------------------
    24.00             0.0              113.7                0.0
    22.00             5.0              114.8                0.0
    20.00             0.0              113.7                0.0
    18.00             3.0              114.3                0.0
    16.00             0.0              114.6                0.0
    14.00             139.0            116.1                1.2
    12.00             816.0            126.9                6.4
    10.00             1246.0           135.7                9.2
    8.00              2218.0           162.9                13.6

    This report was generated by the following command:

    rmss -s 24 -f 8 -d 2 -n 1 cc -O foo.c

    The top part of the report gives general information, including the machine that the rmss command was running on, the real memory size of that machine, the time and date, and the command that was being measured. The next two lines give informational messages that describe the initialization of the rmss command. Here, the rmss command displays that it has initialized the simulated memory size to 24MB, which was the starting memory size given with the -s flag. Also, the rmss command prints out the number of iterations that the command will be run at each memory size. The command is to be run twice at each memory size: once to warmup, and once when its performance is measured. The number of iterations was specified by the -n flag.

    The lower part of the report provides the following for each memory size the command was run at:

Related Information

The filemon command, and svmon command.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]