Skip to content
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

Store statistics in array metadata #31

Merged
merged 2 commits into from
Aug 21, 2024
Merged

Store statistics in array metadata #31

merged 2 commits into from
Aug 21, 2024

Conversation

joshmoore
Copy link
Member

Under the key _ome2024_ngff_challenge_stats we now store the following statistics for each array conversion:

  • input: endpoint of the input location, "default", or "" if not s3
  • output: endpoint of the output location, "default", or "" if not s3
  • read: total bytes read
  • written: total bytes written
  • start: epoch at which the conversion started
  • stop: epoch at which the conversion stopped
  • elapsed: equals "stop - start"

For example:

  "attributes": {
    "_ome2024_ngff_challenge_stats": {
      "input": "https://uk1s3.embassy.ebi.ac.uk",
      "output": "",
      "start": 1724228072.7066,
      "stop": 1724228073.515819,
      "read": 2312282,
      "written": 1661288,
      "elapsed": 0.8092191219329834
    }

Under the key _ome2024_ngff_challenge_stats we now store
the following statistics for each array conversion:

 - input: endpoint of the input location, "default", or "" if not s3
 - output: endpoint of the output location, "default", or "" if not s3
 - read: total bytes read
 - written: total bytes written
 - start: epoch at which the conversion started
 - stop: epoch at which the conversion stopped
 - elapsed: equals "stop - start"

For example:

```
  "attributes": {
    "_ome2024_ngff_challenge_stats": {
      "input": "https://uk1s3.embassy.ebi.ac.uk",
      "output": "",
      "start": 1724228072.7066,
      "stop": 1724228073.515819,
      "read": 2312282,
      "written": 1661288,
      "elapsed": 0.8092191219329834
    }
```
@joshmoore joshmoore requested a review from will-moore August 21, 2024 08:25
Copy link
Member

@will-moore will-moore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@joshmoore
Copy link
Member Author

Thanks. Merging to get the metadata work discussed during this morning's challenge chat opened before the afternoon session.

@joshmoore joshmoore merged commit 7e06529 into ome:main Aug 21, 2024
5 checks passed
@joshmoore joshmoore deleted the stats branch August 21, 2024 12:05
@joshmoore
Copy link
Member Author

@perlman suggestions something like --performance-notes with free-text notes but more specifics might include:

  • threads
  • cpus
  • memory
  • entire command-line
  • "run on the cloud"

joshmoore added a commit to joshmoore/ome2024-ngff-challenge that referenced this pull request Aug 22, 2024
As discussed during the challenge meeting, a few additional
fields would be useful for evaluating. These are now stored
(somewhat redundantly) in each stats block. Additionally, a
new argument `--conversion-notes` adds text to the _creator
field.

This does not yet record memory usage. `psutil` will need adding
for cross-platform checks.

see: ome#31 (comment)
@joshmoore
Copy link
Member Author

Opened #35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants