Running the Server

This page describes how to setup and start the STREAM server. For illustration, we assume that the server binary, net_server, was installed in /home/user/stream/bin/ and the stream library, in /home/user/stream/lib/, as described in the installation step.


Updating Path variables

net_server dynamically loads the STREAM library, so LD_LIBRARY_PATH should be set to include the path to the STREAM library. Optionally, you might want to update PATH to include the path to STREAM binaries:
  1. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/user/stream/lib/

  2. export PATH=$PATH:/home/user/stream/bin/


Running the Server

The usage syntax for the net_server program is:

net_server -l [log-file-prefix] -c [config-file] -p [port-no]

The following is an example sequence of steps to start the server on port 9000:
  1. download this file to a local file called config. Edit the last line of config and change the value 2000 to the speed of your machine in MHz, rounded to the nearest integer.

  2. mkdir logs

  3. net_server -c config -l logs/log -p 9000