FAST, FASTSITE(1,C) AIX Commands Reference FAST, FASTSITE(1,C)
-------------------------------------------------------------------------------
fast, fastsite
PURPOSE
Finds the least loaded site in the network.
SYNTAX
fast ------------------- cmd -----------+
^ | -v - - | | ^ | arg | |
| | -a | | | +-----+ |
| | -pcputype | | +---------+
| +-----------+ |
+---------------+
fastsite -----------------><
| -v -n |
| -a |
| -pcputype |
+-----------+
Warning: See restrictions, Chapter 18, AIX Programming Tools and Interfaces.
DESCRIPTION
Note: The fast and fastsite commands consider only those sites for which the
user has executable permissions.
The fastsite command selects and then writes to standard output the site number
of the least loaded site in the network. The load average (see "loads") and
the CPU performance factor (see site in the AIX Operating System Technical
Reference) are used to select the least loaded site. This can be used to make
programs which are CPU-intensive run on a machine with the lightest load. fast
is similar to fastsite, except that it also runs the indicated command on the
selected site.
Without the -a option, site selection is restricted to sites with the same
CPU-type as the site on which fast or fastsite is run.
If the -v option is specified, the name of the site that is chosen is written
to the standard error file descriptor.
If the -p option is specified, it must be followed immediately by the machine
type required (for example, -pi370). This will select the least loaded machine
of the specified type rather than the least loaded machine of the same type as
the machine on which the command was run. The -a cannot be used with this
option.
Processed November 8, 1990 FAST, FASTSITE(1,C) 1
FAST, FASTSITE(1,C) AIX Commands Reference FAST, FASTSITE(1,C)
If the -n option is specified, the name of the fastest site is written to the
standard output instead of the number.
Use the -- option to terminate the list of flag options to fast when the
command name begins with a -.
Using fast, or fastsite together with onsite, will not make I/O-intensive
programs which need to access files or devices on a particular site run faster,
and may even make them slower by making them access their resources remotely.
The possible cputype values are:
i386 An AIX PS/2 system.
i370 An AIX/370 system.
xa370 An XA AIX/370 system.
s370 A non-XA AIX/370 system.
EXAMPLES
fast cc foo.c -o foo
csh users can establish a fast alias which uses the built-in onsite command and
this allows other aliases to be specified as the command to run:
alias fast "onsite `fastsite` "!*"
FILES
/etc/local_loads Loads information for local site.
/etc/loads Loads information for all sites.
/etc/loadserver Daemon which updates /etc/local_loads and /etc/loads.
/etc/sitegroups Execute permissions for all sites
DIAGNOSTICS
fast and fastsite silently ignore any site which is down.
RELATED INFORMATION
See the following commands: "anet" and "onsite, on."
Processed November 8, 1990 FAST, FASTSITE(1,C) 2