Configure Resources
- The resources required by jobs
- The resources offered by taskers
- The ResourceMap, as described in the file resources.tcl
Next, you will configure the resource map in resources.tcl.
Find and View the resources.tcl File
% cd ~/ncadmin/vncdexin.swd
% vi resources.tcl ; # Use the editor of your choice
# ... here we only show part of this file ...
vtk_resourcemap_set PRIORITY_LOW 1
vtk_resourcemap_set PRIORITY_NORMAL 10
vtk_resourcemap_set PRIORITY_HIGH 20
vtk_resourcemap_set PRIORITY_TOP UNLIMITED
With above default configuration, there will be at most 1 low priority job running at any time, 10 for normal, 20 for high, and any number of top priority jobs could be running.
Configuration Examples
Example 1
# ... here we only show part of this file ...
vtk_resourcemap_set PRIORITY_LOW 1
# Now we change this value to 4
vtk_resourcemap_set PRIORITY_NORMAL 4
vtk_resourcemap_set PRIORITY_HIGH 20
vtk_resourcemap_set PRIORITY_TOP UNLIMITED
% nc cmd vovproject reread
% nc run -f $VOVDIR/training/vnc/cmdlist.unix
Example 2
# In resources.tcl
vtk_resourcemap_set calibre_license 10
# In resources.tcl
vtk_resourcemap_set hspice_license 4 linux
Resource Monitor
nc mon