pbs_sched(8B)
πΈ pbs_sched(8B) β the PBS C scheduler, bestie edition πΈ
okay so this is the tea on pbs_sched_cc, aka the pbs C scheduler, from the PBS manual, section 8B. The page header is literally pbs_sched(8B) on both sides, so weβre rolling with that and moving on. π
β¨ NAME β¨
pbs_sched_cc β pbs C scheduler
π¦ SYNOPSIS π¦
pbs_sched [-a alarm] [-d home] [-L logfile] [-p file] [-S port]
[-R port] [-c file]
π DESCRIPTION π
The pbs_sched program runs in conjunction with the PBS server. It queries the server about the state of PBS and communicates with pbs_resmon to get information about the status of running jobs, memory available etc. It then makes decisions as to what jobs to run.
bestie, pbs_sched must be executed with root permission. no cap. π₯
π OPTIONS π
-a alarmβ sets the time in seconds to wait for a schedule run to finish. If a script takes too long to finish, an alarm signal is sent, and the scheduler is restarted. If a core file does not exist in the current directory,abort()is called and a core file is generated. The default foralarmis180seconds. π-d homeβ sets the PBS home directory,PBS_HOME. The current working directory of the scheduler isPBS_HOME/sched_priv. If this option is not given,PBS_HOMEdefaults to$PBS_SERVER_HOMEas defined during the PBS build procedure.-L logfileβ specifies an absolute path name of the file to use as the log file. If not specified, the scheduler will open a file named for the current date in thePBS_HOME/sched_logsdirectory (see the-doption).-p fileβ specifies the "print" file. Any output from the C code which is written to standard out or standard error will be written to this file. If this option is not given, the file used will bePBS_HOME/sched_priv/sched_out. See the-doption.-S portβ specifies the port to use. If this option is not given, the default port for the PBS scheduler is used.-R portβ specifies the resource monitor port to use. If this option is not given, the default port for the PBS mom is used. NOTE: this option only makes the mom port available to the scheduler writer. It doesnβt force them to use it.-c fileβ specify a configuration file, see description below. If this is a relative file name it will be relative toPBS_HOME/sched_priv, see the-doption. If the-coption is not supplied,pbs_schedwill not attempt to open a configuration file.
The options that specify file names may be absolute or relative. If they are relative, their root directory will be PBS_HOME/sched_priv.
π USAGE π
This version of the scheduler requires knowledge of the C language and the PBS API. Source code is provided for a main program for the scheduler. The site must supply the heart of the program. When invoked, the main program performs general initialization and housekeeping chores. Then a locally supplied function, schedinit() is called to perform site specific initialization.
In the main loop, a locally supplied function, schedule() is called to make the scheduling decisions and perform any required actions. Information about jobs and queues is obtained from the Server through the standard PBS API as found in libifl.a. Information about the execution host(s) is obtained from the Resource Monitor. Routines to communicate with the Resource Monitor are found in libnet.a.
If the processing takes more than the allotted time, the scheduler will restart itself. The default amount of time is three minutes. This can be changed with the -a option.
On receipt of a SIGHUP signal, the scheduler will close and reopen its log file and reread its configuration file (if any).
π§ CONFIGURATION FILE π§
A configuration file may be specified with the -c option. This file may be used to specify the hosts (servers) which are allowed to connect to pbs_sched. The hosts are specified in the configuration file in a manor identical to that used in pbs_mom β yes, the page says manor, weβre keeping the typo energy. π«Ά
π clienthost π
One or more servers, one per line, may be specified:
$clienthost hostname +.IP restricted Allows connections from non-priviledged ports on the named hosts. Typically only used with Mac OSX:
$restricted hostname
Two host names are always allowed to connection to pbs_sched, "localhost" and the name returned to pbs_sched by the system call gethostname(). These names need not be specified in the configuration file.
The configuration file must be "secure". It must be owned by a user id and group id less than 10 and not be world writable.
π FILES π
$PBS_SERVER_HOME/sched_privβ the default directory for configuration files, typically(/usr/spool/pbs)/sched_priv.
π Signal Handling π
A C based scheduler will handle the following signals:
SIGHUPβ The server will close and reopen its log file and reread the config file if one exists. (Yes, the page says βThe serverβ here β weβre not making the rules, bestie. π )SIGALRMβ If the site supplied scheduling module exceeds the time limit, the Alarm will cause the scheduler to attempt to core dump and restart itself.SIGINTandSIGTERMβ Will result in an orderly shutdown of the scheduler.
All other signals have the default action installed.
π«Ά EXIT STATUS π«Ά
Upon normal termination, an exit status of zero is returned.
π SEE ALSO π
pbs_sched_tcl(8B)pbs_server(8B)pbs_mom(8B)- PBS Internal Design Specification
okay thatβs the whole page, bestie. footer tea: the source/version tag is Local and pbs_sched(8B), and thereβs no date printed on the page β so consider this your cute sign-off. πβ¨π¦
π¦ where this page comes from
- epel 9: torque-scheduler 6.1.3-8.el9 Β· OpenPBS and TORQUEv1.1
- nixos 26.05: torque 6.1.3h2
- nixpkgs unstable: torque 6.1.3h2
- Copyright (c) 1999-2000 Veridian Information Solutions, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms