The TORQUE configure command has several options available. Listed below are some suggested options to use when running ./configure.
Full Configure Options List
Optional features:Option | Description | ||
---|---|---|---|
--disable-clients | directs torque not to build and install the TORQUE client utilities such as qsub, qstat, qdel, etc. | ||
--disable-dependency-tracking | directs TORQUE build system to only rebuild changed source files and not rebuild dependent files. | ||
--disable-FEATURE | do not include FEATURE (same as --enable-FEATURE=no). | ||
--disable-gcc-warnings | Disable gcc strictness and warnings. If using gcc, default is to error on any warning. | ||
--disable-gui | do not include the GUI-clients. | ||
--disable-libtool-lock | avoid locking (might break parallel builds). | ||
--disable-mom | do not include the MOM daemon. | ||
--disable-mom-checkspool | Don't check free space on spool directory and set an error. | ||
--disable-posixmemlock | disable the moms use of mlockall. Some versions of OSs seem to have buggy POSIX MEMLOCK. | ||
--disable-privports | disable the use of privileged ports for authentication. Some versions of OSX have a buggy bind() and cannot bind to privileged ports. | ||
--disable-qsub-keep-override | do not allow the qsub -k flag to override -o -e. | ||
--disable-rpp | By default, TORQUE uses RPP/UDP for resource queries from the PBS server to the MOMs. If disabled, TCP is used. This does not affect general node/job status messages, job launch/exit messages, inter-mom messages, etc. | ||
--disable-server | do not include server and scheduler. | ||
--disable-shell-pipe | give the job script file as standard input to the shell instead of passing its name via a pipe. | ||
--disable-spool | if disabled, TORQUE will create output and error files directly in $HOME/.pbs_spool if it exists or in $HOME otherwise. By default, TORQUE will spool files in TORQUE_HOME/spool and copy them to the users home directory when the job completes. | ||
--disable-xopen-networking | With HPUX and GCC, don't force usage of XOPEN and libxnet. | ||
--enable-acct-x | enable adding x attributes to accounting log. | ||
--enable-array | setting this under IRIX enables the SGI Origin 2000 parallel support. Normally autodetected from the /etc/config/array file. | ||
--enable-autorun | allows jobs to run automatically as soon as they are queued if resources are available (available in TORQUE 2.3.1 and later). | ||
--enable-blcr | enable BLCR support. | ||
--enable-cpa | enable Cray's CPA support. | ||
--enable-cpuset | enable Linux 2.6 kernel cpusets (in development). | ||
--enable-debug | turn on the compilation of DEBUG code. | ||
--enable-dependency-tracking | do not reject slow dependency extractors. | ||
--enable-drmaa | build the DRMAA 1.0 library. | ||
--enable-fast-install[=PKGS] | optimize for fast installation [default=yes]. | ||
--enable-FEATURE[=ARG] | include FEATURE [ARG=yes]. | ||
--enable-filesync | Open files with sync on each write operation. This has a negative impact on TORQUE performance. This is disabled by default. | ||
--enable-force-nodefile | forces creation of nodefile regardless of job submission parameters. Not on by default. | ||
--enable-geometry-requests | TORQUE is compiled to use procs_bitmap during job submission. | ||
--enable-high-availability | enables enhanced high availability (high availability is enabled by default, but this option enables the enhanced version) | ||
--enable-maintainer-mode | this is for the autoconf utility and tells autoconf to enable so called rebuild rules. See maintainer mode for more information. | ||
--enable-maxdefault | turn on the RESOURCEMAXDEFAULT flag.
|
||
--enable-nochildsignal | turn on the NO_SIGCHLD flag. | ||
--enable-nodemask | enable nodemask-based scheduling on the Origin 2000. | ||
--enable-pemask | enable pemask-based scheduling on the Cray T3e. | ||
--enable-plock-daemons[=ARG] | enable daemons to lock themselves into memory: logical-or of 1 for pbs_server, 2 for pbs_scheduler, 4 for pbs_mom (no argument means 7 for all three). | ||
--enable-quickcommit | turn on the QUICKCOMMIT flag. | ||
--enable-shared[=PKGS] | build shared libraries [default=yes]. | ||
--enable-shell-use-argv | enable this to put the job script name on the command line that invokes the shell. Not on by default. Ignores --enable-shell-pipe setting. | ||
--enable-sp2 | build PBS for an IBM SP2. | ||
--enable-srfs | enable support for SRFS on Cray. | ||
--enable-static[=PKGS] | build static libraries [default=yes]. | ||
--enable-syslog | enable (default) the use of syslog for error reporting. | ||
--enable-tcl-qstat | setting this builds qstat with Tcl interpreter features. This is enabled if Tcl is enabled. | ||
--enable-unixsockets | enable the use of Unix Domain sockets for authentication. |
Option | Description |
---|---|
--with-blcr=DIR | BLCR installation prefix (Note: Available in versions 2.5.6 and 3.0.2 and later.) |
--with-blcr-include=DIR | include path for libcr.h (Note: Available in versions 2.5.6 and 3.0.2 and later.) |
--with-blcr-lib=DIR | lib path for libcr (Note: Available in versions 2.5.6 and 3.0.2 and later.) |
--with-blcr-bin=DIR | bin path for BLCR utilities (Note: Available in versions 2.5.6 and 3.0.2 and later.) |
--with-cpa-include=DIR | include path for cpalib.h. |
--with-cpa-lib=DIR | lib path for libcpalib. |
--with-debug | compile with debugging symbols. |
--with-default-server=HOSTNAME | set the name of the computer that clients will access when no machine name is specified as part of the queue name. It defaults to the hostname of the machine on which PBS is being compiled. |
--with-environ=PATH | set the path containing the environment variables for the daemons. For SP2 and AIX systems, suggested setting is to /etc/environment. Defaults to the file "pbs_environment" in the server-home. Relative paths are interpreted within the context of the server-home. |
--with-gnu-ld | assume the C compiler uses GNU ld [default=no]. |
--with-maildomain=MAILDOMAIN | override the default domain for outgoing mail messages, i.e. "user@maildomain". The default maildomain is the hostname where the job was submitted from. |
--with-modulefiles[=DIR] | use module files in specified directory [/etc/modulefiles]. |
--with-momlogdir | use this directory for MOM logs. |
--with-momlogsuffix | use this suffix for MOM logs. |
--without-PACKAGE | do not use PACKAGE (same as --with-PACKAGE=no). |
--without-readline | do not include readline support (default: included if found). |
--with-PACKAGE[=ARG] | use PACKAGE [ARG=yes]. |
--with-pam=DIR | Directory that holds the system PAM modules. Defaults to /lib(64)/security on Linux. |
--with-pic | try to use only PIC/non-PIC objects [default=use both]. |
--with-qstatrc-file=FILE | set the name of the file that qstat will use if there is no ".qstatrc" file in the directory where it is being invoked. Relative path names will be evaluated relative to the server home directory (see above). If this option is not specified, the default name for this file will be set to "qstatrc" (no dot) in the server home directory. |
--with-rcp | one of "scp", "rcp", "mom_rcp", or the fullpath of a remote file copy program. scp is the default if found, otherwise mom_rcp is used. Some rcp programs don't always exit with valid error codes in case of failure. mom_rcp is a copy of BSD rcp included with this source that has correct error codes, but it is also old, unmaintained, and doesn't have largefile support. |
--with-sched=TYPE | sets the scheduler type. If TYPE is "c", the scheduler will be written in C. If TYPE is "tcl" the server will use a Tcl based scheduler. If TYPE is "basl", TORQUE will use the rule based scheduler. If TYPE is "no", then no scheduling is done. "c" is the default. |
--with-sched-code=PATH | sets the name of the scheduler to use. This only applies to BASL schedulers and those written in the C language. For C schedulers this should be a directory name and for BASL schedulers a filename ending in ".basl". It will be interpreted relative to srctree/src/schedulers.SCHD_TYPE/samples. As an example, an appropriate BASL scheduler realtive path would be "nas.basl". The default scheduler code for "C" schedulers is "fifo". |
--with-scp | In TORQUE 2.1 and later, SCP is the default remote copy protocol. See --with-rcp if a different protocol is desired. |
--with-sendmail[=FILE] | sendmail executable to use. |
--with-server-home=DIR | set the server home/spool directory for PBS use. Defaults to /var/spool/torque. |
--with-server-name-file=FILE | set the file that will contain the name of the default server for clients to use. If this is not an absolute pathname, it will be evaluated relative to the server home directory that either defaults to /usr/spool/PBS or is set using the --with-server-home option to configure. If this option is not specified, the default name for this file will be set to "server_name". |
--with-tags[=TAGS] | include additional configurations [automatic]. |
--with-tcl | directory containing tcl configuration (tclConfig.sh). |
--with-tclatrsep=CHAR | set the Tcl attribute separator character this will default to "." if unspecified. |
--with-tclinclude | directory containing the public Tcl header files. |
--with-tclx | directory containing tclx configuration (tclxConfig.sh). |
--with-tk | directory containing tk configuration (tkConfig.sh). |
--with-tkinclude | directory containing the public Tk header files. |
--with-tkx | directory containing tkx configuration (tkxConfig.sh). |
--with-tmpdir=DIR | set the tmp directory that pbs_mom will use. Defaults to "/tmp". This is a Cray-specific feature. |
--with-xauth=PATH | specify path to xauth program. |
Wordxp() performs a shell-like expansion, including environment variables. By default, HAVE_WORDEXP is set to 1 in src/pbs_config.h. If set to 1, TORQUE will limit the characters that can be used in a job name to those allowed for a file in the current environment, such as BASH. If set to 0, any valid character for the file system can be used.
If a user would like to disable this feature by setting HAVE_WORDEXP to 0 in src/include/pbs_config.h, it is important to note that the error and the output file names will not expand environment variables, including $PBS_JOBID. The other important consideration is that characters that BASH dislikes, such as (), will not be allowed in the output and error file names for jobs by default.
There are several steps to ensure that the server and the nodes are completely aware of each other and able to communicate directly. Some of this configuration takes place within TORQUE directly using the qmgr command. Other configuration settings are managed using the pbs_server nodes file, DNS files such as /etc/hosts and the /etc/hosts.equiv file.
Each node, as well as the server, must be able to resolve the name of every node with which it will interact. This can be accomplished using /etc/hosts, DNS, NIS, or other mechanisms. In the case of /etc/hosts, the file can be shared across systems in most cases.
A simple method of checking proper name service configuration is to verify that the server and the nodes can "ping" each other.
When jobs can be submitted from several different hosts, these hosts should be trusted via the R* commands (such as rsh and rcp). This can be enabled by adding the hosts to the /etc/hosts.equiv file of the machine executing the pbs_server daemon or using other R* command authorization methods. The exact specification can vary from OS to OS (see the man page for ruserok to find out how your OS validates remote users). In most cases, configuring this file is as simple as adding a line to your /etc/hosts.equiv file, as in the following:
/etc/hosts.equiv:#[+ | -] [hostname] [username] mynode.myorganization.com .....
Either of the hostname or username fields may be replaced with a wildcard symbol (+). The (+) may be used as a stand-alone wildcard but not connected to a username or hostname, e.g., +node01 or +user01. However, a (-) may be used in that manner to specifically exclude a user.
Following the Linux man page instructions for hosts.equiv may result in a failure. You cannot precede the user or hostname with a (+). To clarify, node1 +user1 will not work and user1 will not be able to submit jobs. |
For example, the following lines will not work or will not have the desired effect:
+node02 user1 node02 +user1
These lines will work:
node03 + + jsmith node04 -tjones
The most restrictive rules must precede more permissive rules. For example, to restrict user tsmith but allow all others, follow this format:
node01 -tsmith node01 +
Please note that when a hostname is specified, it must be the fully qualified domain name (FQDN) of the host. Job submission can be further secured using the server or queue acl_hosts and acl_host_enabled parameters.
Using the submit_hosts Server Parameter
Trusted submit host access may be directly specified without using RCmd authentication by setting the server submit_hosts parameter via qmgr as in the following example:
> qmgr -c 'set server submit_hosts = host1' > qmgr -c 'set server submit_hosts += host2' > qmgr -c 'set server submit_hosts += host3'
Use of submit_hosts is potentially subject to DNS spoofing and should not be used outside of controlled and trusted environments. |
Allowing Job Submission from Compute Hosts
If preferred, all compute nodes can be enabled as job submit hosts without setting .rhosts or hosts.equiv by setting the allow_node_submit parameter to true.
If the pbs_server daemon is to be run on a multi-homed host (a host possessing multiple network interfaces), the interface to be used can be explicitly set using the SERVERHOST parameter.
With some versions of Mac OS/X, it is required to add the line $restricted *.<DOMAIN> to the pbs_mom configuration file. This is required to work around some socket bind bugs in the OS.
By default, only root is allowed to start, configure and manage the pbs_server daemon. Additional trusted users can be authorized using the parameters managers and operators. To configure these parameters use the qmgr command, as in the following example:
> qmgr Qmgr: set server managers += josh@*.fsc.com Qmgr: set server operators += josh@*.fsc.com
All manager and operator specifications must include a user name and either a fully qualified domain name or a host expression.
To enable all users to be trusted as both operators and administrators, place the + (plus) character on its own line in the server_priv/acl_svr/operators and server_priv/acl_svr/managers files. |
Moab relies on e-mails from TORQUE about job events. To set up e-mail, do the following:
> ./configure --with-sendmail=<path_to_executable>
> qmgr -c 'set server mail_domain=clusterresources.com'
> qmgr -c 'set server mail_body_fmt=Job: %i \n Name: %j \n On host: %h \n \n %m \n \n %d' > qmgr -c 'set server mail_subject_fmt=Job %i - %r'
By default, users receive e-mails on job aborts. Each user can select which kind of e-mails to receive by using the qsub -m option when submitting the job. If you want to dictate when each user should receive e-mails, use a submit filter.
MUNGE is an authentication service that creates and validates user credentials. It was developed by Lawrence Livermore National Laboratoy (LLNL) to be highly scalable so it can be used in large environments such as HPC clusters. To learn more about MUNGE and how to install it, see http://code.google.com/p/munge/
Configuring TORQUE to use MUNGE is a compile time operation. When you are building TORQUE use –enable-munge-auth as a command line option with ./configure.
> ./configure –enable-munge-auth
You can use only one authorization method at a time. If –enable-munge-auth is configured, the privileged port ruserok method is disabled.
TORQUE does not link any part of the MUNGE library into its executables. It calls the MUNGE and UNMUNGE utilities which are part of the MUNGE daemon. The MUNGE daemon must be running on the server and all submission hosts. The TORQUE client utilities call MUNGE and then deliver the encrypted credential to pbs_server where the credential is then unmunged and the server verifies the user and host against the authorized users configured in serverdb.
Authorized users are added to serverdb using qmgr and the authorized_users server parameter. The syntax for authorized_users is authorized_users=<user>@<host>. To add an authorized user to the server you can use the following qmgr command:
> qmgr -c 'set server authorized_users=user1@hosta > qmgr -c 'set server authorized_users+=user2@hosta
The previous example adds user1 and user2 from hosta to the list of authorized users on the server. Users can be removed from the list of authorized users by using the -= syntax as follows:
> qmgr -c 'set server authorized_users-=user1@hosta
Users must be added with the <user>@<host> syntax. The user and the host portion can use the '*' wildcard to allow multiple names to be accepted with a single entry. A range of user or host names can be specified using a [a-b] syntax where a is the beginning of the range and b is the end.
> qmgr -c 'set server authorized_users=user[1-10]@hosta
This allows user1 through user10 on hosta to run client commands on the server.