-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For #615 - Implement formatting by reflection
- Loading branch information
Lars T Hansen
committed
Oct 29, 2024
1 parent
c8b7d4f
commit b18dfc8
Showing
36 changed files
with
1,601 additions
and
953 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Data field vocabulary | ||
|
||
(This is evolving.) | ||
|
||
Field naming is pretty arbitrary and it is not going to be cleaned up right now. For the most part | ||
we can fix things over time through the use of aliases. | ||
|
||
"Old" names such as "rcpu", "rmem" should probably not be used more than absolutely necessary, | ||
ideally all new names are fairly self-explanatory and not very abbreviated. | ||
|
||
Contextuality is important to make things hang together. The precise meaning of the field must be | ||
derivable from name + context + type + documentation, ideally from name + context + documentation | ||
since the user may not have access to the type. Name + documentation must be visible from -fmt | ||
help, and context is given by the verb. (Hence plain "Name" in the cluster info is not as bad as it | ||
looks because it is plain from context and documentation that we're talking about the cluster name; | ||
"Clustername" might have been better, but not massively much better.) | ||
|
||
Spelling standards that we should follow when we have a chance to (re)name a field: | ||
|
||
* Cpu, Cpus not CPU, CPUS, CPUs | ||
* Gpu, Gpus not GPU, GPUS, GPUs | ||
* GB not GiB, the unit is 2^30 | ||
* MB not MiB, the unit is 2^20 | ||
* KB not KiB, the unit is 2^10 | ||
* JobId not JobID | ||
* Units on fields that can have multiple natural units, eg, ResidentMemGB not ResidentMem | ||
|
||
(And yet there may be other considerations. The sacct table names such as UsedCPU and MaxRSS are | ||
currently the way they are because those are the names adopted by sacct. But on the whole it'd | ||
probably be better to follow our own naming standards and explain the mapping in the documentation.) |
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.