Grid Engine Home > Administering > Using Job Submission Verifiers >
Writing JSV Scripts
JSV scripts can be written in any scripting language, including Unix shells, Perl or Tcl.
The following tools are available to assist you in writing a JSV script:
- The JSV Script Functions are available in Bourne shell, Tcl or Perl scripts after sourcing the files jsv_include.sh, jsv_include.tcl, or JSV.pm.
- The files and corresponding JSV script templates are located in the directory $SGE_ROOT/util/resource/jsv/.
To maximize the performance of your script, the following suggestions should be considered:
- Use a scripting language that supports precompilation or other performance improvement methods during runtime.
- Use a scripting language that avoids forking processes. Startup of additional applications is expensive and will slow down JSV scripts heavily.
- Avoid accessing files and other input/output devices in your scripts.
Performance Considerations for Server JSV Scripts
Since server JSV instances are executed by the master daemon, it is important to choose a scripting language that minimizes the amount of resources that are consumed from the master daemon process. Simple scripting languages, like the Bourne shell, execute a lot of external commands to perform very basic operations. If used in a JSV script, the job acceptance rate could decrease by more than 90%. By contrast, a more efficient scripting language, like Perl and Tcl, should impact the job acceptance rate by less than 10% with a well-designed JSV script.
Performance Considerations for Client JSV Scripts
A client side JSV script is started whenever a user submits a job. If a series of job submissions are done from the same terminal or script, it is important to use an efficient scripting language, such as Perl or Tcl, to minimize the script's impact on client submit rate.
| Topic | Description |
|---|---|
| JSV Script Functions | A list of JSV script functions and parameters. |
| Example - Writing a JSV Script Using the Bourne Shell | A hypothetical example of how a JSV script can be written using UNIX. |
| Example - Writing a JSV Script Using Tcl | A hypotehtical example of how a JSV script can be written using Tcl. |
|
Participate
|
Learn More
|

