-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improving the accounts usage command mention on midway2 and midway3 #214
Changes from 3 commits
10923b3
9454e9c
66b60f5
cc29a57
4994ef4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,23 +26,73 @@ accounts balance | |
``` | ||
|
||
## How do I review the usage of my allocation? | ||
The `accounts` tool provides several options for summarizing allocation usage. To obtain a summary, execute the command: | ||
The `accounts` tool provides several options for summarizing the usage of the allocations to which your RCC account is accessible. To obtain a summary, execute the command `accounts usage` with the account name(s): | ||
|
||
|
||
=== "Midway2, DaLI" | ||
``` | ||
accounts usage | ||
accounts usage --account [pi-cnetid] | ||
accounts usage --accounts [pi-cnetid1],[pi-cnetid2] | ||
``` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. all work as shown. something related:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here it looks to me on midway2
|
||
|
||
===+ "Midway3, Beagle3" | ||
``` | ||
accounts usage | ||
accounts usage -a [pi-cnetid] | ||
``` | ||
|
||
where `[pi-cnetid]` is the name of the account, often your PI's. | ||
|
||
You may use the `--byuser` option to view individual usage by group members: | ||
|
||
=== "Midway2, DaLI" | ||
``` | ||
accounts usage | ||
accounts usage --account [pi-cnetid] --byuser | ||
``` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. works as expected. "-byuser" works too. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ... often your PI's CNetID. Execute |
||
|
||
===+ "Midway3, Beagle3" | ||
``` | ||
accounts usage | ||
accounts usage -a [pi-cnetid] -byuser | ||
``` | ||
|
||
You can also use the `rcchelp` command (a wrapper of system-provided tools including `accounts`), which requires slightly different arguments (note only one character '-') | ||
|
||
=== "Midway2, DaLI" | ||
``` | ||
rcchelp usage | ||
rcchelp usage -account [pi-cnetid] -byuser | ||
``` | ||
|
||
=== "Midway3, Beagle3" | ||
``` | ||
rcchelp usage | ||
rcchelp usage -account [pi-cnetid] -byuser | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. last example needs to be: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All good. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, I fixed that error, thanks @od101 |
||
``` | ||
|
||
``` | ||
accounts usage | ||
``` | ||
--- | ||
|
||
To view usage per job, utilize the following command: | ||
To view the resource usage per job, you need to run on Midway2 before using either `accounts`: | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "run on Midway2" => "run on Midway2/DaLI"? |
||
``` | ||
accounts usage --byjob | ||
``` | ||
=== "Midway2, DaLI" | ||
``` | ||
accounts usage --byjob | ||
accounts usage --account [pi-cnetid] --byjob | ||
``` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. works fine. something related: help shows single dash for "byjob", but it works fine with both single/double. same for "account" option. |
||
|
||
If you are the PI, you may employ the `--byuser` option to view individual usage by group members: | ||
or `rcchelp` | ||
|
||
``` | ||
accounts usage --byuser | ||
``` | ||
=== "Midway2, DaLI" | ||
``` | ||
rcchelp usage | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed this |
||
rcchelp usage -account [pi-cnetid] -byjob | ||
``` | ||
|
||
both of which include the jobs on both Midway2 and Midway3 partitions (e.g. `caslake` and `gpu`). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To a bit make the sentence be more clear and easier to follow: |
||
|
||
The output is a table that lists the job IDs, partitions, number of CPU cores and SU consumptions. To further check the resource consumption of a job on Midway3, you need to log in to Midway3 and run `sacct -j` or `scontrol show job` with the job ID. | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe to note that |
||
--- | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -862,7 +862,7 @@ module load python | |
|
||
for idx in {0..31} | ||
do | ||
taskset -c $i python script.py input-$idx.txt > output-$idx.txt & | ||
taskset -c $idx python script.py input-$idx.txt > output-$idx.txt & | ||
done | ||
wait | ||
``` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This script is a Bash loop that runs 32 instances of a Python script ( Breakdown:
Summary: |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"... RCC account is accessible." => "... RCC account has access to."?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just in case, users can also log into MyRCC profile and see all the service unites of the accounts they are a member of in a user-friendly web interface.