-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from osg-htc/xalim-text-fixes
Text fixes for exercises
- Loading branch information
Showing
20 changed files
with
299 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,15 +23,15 @@ For this exercise, we can examine a log file for any previous job that you have | |
A job log file is updated throughout the life of a job, usually at key events. Each event starts with a heading that indicates what happened and when. Here are **all** of the event headings from the `sleep` job log (detailed output in between headings has been omitted here): | ||
|
||
``` file | ||
000 (5739.000.000) 2023-07-10 10:44:20 Job submitted from host: <128.104.100.43:9618?addrs=...> | ||
040 (5739.000.000) 2023-07-10 10:45:10 Started transferring input files | ||
040 (5739.000.000) 2023-07-10 10:45:10 Finished transferring input files | ||
001 (5739.000.000) 2023-07-10 10:45:11 Job executing on host: <128.104.55.42:9618?addrs=...> | ||
006 (5739.000.000) 2023-07-10 10:45:20 Image size of job updated: 72 | ||
040 (5739.000.000) 2023-07-10 10:45:20 Started transferring output files | ||
040 (5739.000.000) 2023-07-10 10:45:20 Finished transferring output files | ||
006 (5739.000.000) 2023-07-10 10:46:11 Image size of job updated: 4072 | ||
005 (5739.000.000) 2023-07-10 10:46:11 Job terminated. | ||
000 (5739.000.000) 2024-07-10 10:44:20 Job submitted from host: <128.104.100.43:9618?addrs=...> | ||
040 (5739.000.000) 2024-07-10 10:45:10 Started transferring input files | ||
040 (5739.000.000) 2024-07-10 10:45:10 Finished transferring input files | ||
001 (5739.000.000) 2024-07-10 10:45:11 Job executing on host: <128.104.55.42:9618?addrs=...> | ||
006 (5739.000.000) 2024-07-10 10:45:20 Image size of job updated: 72 | ||
040 (5739.000.000) 2024-07-10 10:45:20 Started transferring output files | ||
040 (5739.000.000) 2024-07-10 10:45:20 Finished transferring output files | ||
006 (5739.000.000) 2024-07-10 10:46:11 Image size of job updated: 4072 | ||
005 (5739.000.000) 2024-07-10 10:46:11 Job terminated. | ||
``` | ||
|
||
There is a lot of extra information in those lines, but you can see: | ||
|
@@ -43,7 +43,7 @@ There is a lot of extra information in those lines, but you can see: | |
Some events provide no information in addition to the heading. For example: | ||
|
||
``` file | ||
000 (5739.000.000) 2020-07-10 10:44:20 Job submitted from host: <128.104.100.43:9618?addrs=...> | ||
000 (5739.000.000) 2024-07-10 10:44:20 Job submitted from host: <128.104.100.43:9618?addrs=...> | ||
... | ||
``` | ||
|
||
|
@@ -53,7 +53,7 @@ Some events provide no information in addition to the heading. For example: | |
However, some lines have additional information to help you quickly understand where and how your job is running. For example: | ||
|
||
``` file | ||
001 (5739.000.000) 2020-07-10 10:45:11 Job executing on host: <128.104.55.42:9618?addrs=...> | ||
001 (5739.000.000) 2024-07-10 10:45:11 Job executing on host: <128.104.55.42:9618?addrs=...> | ||
SlotName: [email protected] | ||
CondorScratchDir = "/pilot/osgvo-pilot-2q71K9/execute/dir_9316" | ||
Cpus = 1 | ||
|
@@ -70,7 +70,7 @@ However, some lines have additional information to help you quickly understand w | |
Another example of is the periodic update: | ||
|
||
``` file | ||
006 (5739.000.000) 2020-07-10 10:45:20 Image size of job updated: 72 | ||
006 (5739.000.000) 2024-07-10 10:45:20 Image size of job updated: 72 | ||
1 - MemoryUsage of job (MB) | ||
72 - ResidentSetSize of job (KB) | ||
... | ||
|
@@ -81,7 +81,7 @@ These updates record the amount of memory that the job is using on the execute m | |
The job termination event includes a lot of very useful information: | ||
|
||
``` file | ||
005 (5739.000.000) 2023-07-10 10:46:11 Job terminated. | ||
005 (5739.000.000) 2024-07-10 10:46:11 Job terminated. | ||
(1) Normal termination (return value 0) | ||
Usr 0 00:00:00, Sys 0 00:00:00 - Run Remote Usage | ||
Usr 0 00:00:00, Sys 0 00:00:00 - Run Local Usage | ||
|
@@ -95,7 +95,7 @@ The job termination event includes a lot of very useful information: | |
Cpus : 1 1 | ||
Disk (KB) : 40 30 4203309 | ||
Memory (MB) : 1 1 1 | ||
Job terminated of its own accord at 2023-07-10 10:46:11 with exit-code 0. | ||
Job terminated of its own accord at 2024-07-10 10:46:11 with exit-code 0. | ||
... | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,33 +19,33 @@ The `condor_status` program has many options for selecting which slots are liste | |
Another convenient option is to list only those slots that are available now: | ||
|
||
``` console | ||
username@learn $ condor_status -avail | ||
username@ap1 $ condor_status -avail | ||
``` | ||
|
||
Of course, the individual execute machines only report their slots to the collector at certain time intervals, so this list will not reflect the up-to-the-second reality of all slots. But this limitation is true of all `condor_status` output, not just with the `-avail` option. | ||
|
||
Similar to `condor_q`, you can limit the slots that are listed in two easy ways. To list just the slots on a specific machine: | ||
|
||
``` console | ||
username@learn $ condor_status <hostname> | ||
username@ap1 $ condor_status <hostname> | ||
``` | ||
|
||
For example, if you want to see the slots on `e2337.chtc.wisc.edu` (in the CHTC pool): | ||
|
||
``` console | ||
username@learn $ condor_status e2337.chtc.wisc.edu | ||
username@ap1 $ condor_status e2337.chtc.wisc.edu | ||
``` | ||
|
||
To list a specific slot on a machine: | ||
|
||
``` console | ||
username@learn $ condor_status <slot>@<hostname> | ||
username@ap1 $ condor_status <slot>@<hostname> | ||
``` | ||
|
||
For example, to see the “first” slot on the machine above: | ||
|
||
``` console | ||
username@learn $ condor_status [email protected] | ||
username@ap1 $ condor_status [email protected] | ||
``` | ||
|
||
!!! note | ||
|
@@ -68,7 +68,7 @@ Viewing a Slot ClassAd | |
Just as with `condor_q`, you can use `condor_status` to view the complete ClassAd for a given slot (often confusingly called the “machine” ad): | ||
|
||
``` console | ||
username@learn $ condor_status -long <slot>@<hostname> | ||
username@ap1 $ condor_status -long <slot>@<hostname> | ||
``` | ||
|
||
Because slot ClassAds may have 150–200 attributes (or more), it probably makes the most sense to show the ClassAd for a single slot at a time, as shown above. | ||
|
@@ -91,7 +91,7 @@ Memory = 1024 | |
|
||
As you may be able to tell, there is a mix of attributes about the machine as a whole (hence the name “machine ad”) and about the slot in particular. | ||
|
||
Go ahead and examine a machine ClassAd now. I suggest looking at one of the slots on, say, `e2337.chtc.wisc.edu` because of its relatively simple configuration. | ||
Go ahead and examine a machine ClassAd now. | ||
|
||
Viewing Slots by ClassAd Expression | ||
----------------------------------- | ||
|
@@ -101,15 +101,15 @@ Often, it is helpful to view slots that meet some particular criteria. For examp | |
For example, suppose we want to list all slots that are running Scientific Linux 7 (operating system) and have at least 16 GB memory available. Note that memory is reported in units of Megabytes. The command is: | ||
|
||
``` console | ||
username@learn $ condor_status -constraint 'OpSysAndVer == "CentOS7" && Memory >= 16000' | ||
username@ap1 $ condor_status -constraint 'OpSysAndVer == "CentOS7" && Memory >= 16000' | ||
``` | ||
|
||
!!! note | ||
Be very careful with using quote characters appropriately in these commands. | ||
In the example above, the single quotes (`'`) are for the shell, so that the entire expression is passed to | ||
`condor_status` untouched, and the double quotes (`"`) surround a string value within the expression itself. | ||
|
||
Currently on CHTC, there are only a few slots that meet these criteria (our high-memory servers, mainly used for metagenomics assemblies). | ||
Currently on PATh, there are only a few slots that meet these criteria (our high-memory servers, mainly used for metagenomics assemblies). | ||
|
||
If you are interested in learning more about writing ClassAd expressions, look at section 4.1 and especially 4.1.4 of the HTCondor Manual. This is definitely advanced material, so if you do not want to read it, that is fine. But if you do, take some time to practice writing expressions for the `condor_status -constraint` command. | ||
|
||
|
@@ -125,7 +125,7 @@ The `condor_status` command accepts the same `-autoformat` (`-af`) options that | |
For example, I was curious about the host name and operating system of the slots with more than 32GB of memory: | ||
|
||
``` console | ||
username@learn $ condor_status -af Machine -af OpSysAndVer -constraint 'Memory >= 32000' | ||
username@ap1 $ condor_status -af Machine -af OpSysAndVer -constraint 'Memory >= 32000' | ||
``` | ||
|
||
If you like, spend a few minutes now or later experimenting with `condor_status` formatting. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.