rush -rc <cpuspec|tidspec|hostname> [jobid..]
Remove Cpu
Removes Cpu from cpu list of current [specific] job.
If the cpus being removed are busy running frames,
the frames are killed and re-submitted elsewhere.
Cpus can be removed in one of several ways:
- Individually by the JOBTID number, e.g. rush -rc .32
- By hostname, e.g. rush -rc tahoe
- By a particular cpu specification as shown in the 'rush -lc' report,
e.g., rush -rc tahoe=4@200
To remove a cpu via 'JOBTID' values (e.g., 'rush -rc .334') you must
precede each value with a period. When you delete by JOBTID, you are
deleting single cpus from the 'rush -lc' report. Note: this report includes
the JOBTID values so you can see which values to delete. If the cpu you delete
is part of a larger specification, (e.g., tahoe=4@12), then the cpu count
for the spec will be modified and the cpu count in that spec will be
decremented as well (e.g., tahoe=3@12)
If you remove a hostname (e.g., 'rush -rc tahoe') then all cpu
specifications that have that host name (e.g., tahoe=3@100) will be removed.
Also, any hostgroups that expand to include that host will have that host
removed from the expansion (e.g., +any=3@100, which includes tahoe).
|
|
|
|
% rush -lc
CPUSPEC[HOST] STATE FRM PID JOBTID PRI ELAPSED NOTES
howland=2@900 JobPass - - 171 900 00:00:00 No more frames
howland=2@900 JobPass - - 172 900 00:00:00 No more frames
+any=1@1[howland] JobPass - - 147 1 00:00:01 No more frames
+any=1@1[howland] JobPass - - 148 1 00:00:00 No more frames
+any=1@1[nt-1] JobPass - - 149 1 00:00:31 This is a 'neverhost'
+any=1@1[nt-1] JobPass - - 150 1 00:00:31 This is a 'neverhost'
+any=1@1[rotwang] JobPass - - 151 1 00:00:01 No more frames
+any=1@1[rotwang] JobPass - - 152 1 00:00:01 No more frames
% rush -rc howland
nt-1.15 'howland=2@900': Removed
nt-1.15 '+any=1@1': 2 task(s) deleted
% rush -lc
CPUSPEC[HOST] STATE FRM PID JOBTID PRI ELAPSED NOTES
+any=1@1[nt-1] JobPass - - 149 1 00:00:37 This is a 'neverhost'
+any=1@1[nt-1] JobPass - - 150 1 00:00:37 This is a 'neverhost'
+any=1@1[rotwang] JobPass - - 151 1 00:00:08 No more frames
+any=1@1[rotwang] JobPass - - 152 1 00:00:08 No more frames
|
|
|
|
|
|
If you remove a cpu specification (e.g., 'rush -rc +any=3@100'),
it must match character-for-character the entry shown in the 'rush -lc'
report for the job:
|
|
|
|
% rush -ac tahoe@100 |
# Add a cpu. |
% rush -rc tahoe@100 |
# Now try to remove it |
'tahoe@100' no such cpu specification
|
# FAILED: need to use spec shown in 'rush -lc' |
|
% rush -lc |
# Look at 'rush -lc' report |
CPUSPEC STATE FRM PID ELAPSED ..
tahoe=1@100 Run 0002 26747 00:00:11 .. |
# More complete specification in report. |
|
% rush -rc tahoe=1@100 |
# Remove using spec shown in report |
'tahoe=1@100' removed. |
# It works |
|
|
|
|
|
|
|
|