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

Collecting system metrics during runs. #37

Open
venkat-1 opened this issue Jul 9, 2024 · 4 comments
Open

Collecting system metrics during runs. #37

venkat-1 opened this issue Jul 9, 2024 · 4 comments
Assignees

Comments

@venkat-1
Copy link

venkat-1 commented Jul 9, 2024

We need to collect system metrics, including GPU memory errors, NIC errors and re-transmits, etc. during each run. Ideally, we will collect this with as low-overhead using a background thread/process. This will help identify any slowdown during runs and where it could originate from.

Another aspect to consider is to run periodic tests on the GPUs, such as hgemm and Igemm and any peer-to-peer tests, to see if there are any low-performing GPUs over time. So, in addition to running at the beginning of a job, we can run this after a specific duration, such as after every checkpoint.

@nscottnichols
Copy link

nscottnichols commented Jul 9, 2024

We need to collect system metrics, including GPU memory errors, NIC errors and re-transmits, etc. during each run. Ideally, we will collect this with as low-overhead using a background thread/process. This will help identify any slowdown during runs and where it could originate from.

I have determined a light-weight route using xpu-smi to track many of the metrics we are interested in and reached out to HPE for a pathway to track relevant NIC metrics. Here is a checklist for what we are looking to track:

  • GPU / Accelerator Unit Counters:
    • GPU correctable and uncorrectable memory errors
    • Free and used memory
  • Xe Link related counters:
    • Xe Link Throughput
  • NIC/Slingshot related counters:
    • retransmits
    • errors
    • congestion
  • CPU related counters:
    • TBD

I'm currently working on a postprocessing script to analyze the output from xpu-smi.

@venkat-1
Copy link
Author

venkat-1 commented Jul 9, 2024

It needs to target multiple systems. So, at least for now target Polaris (Nvidia+ SS11), Aurora(Intel + SS11), and Sophia (Nvidia + IB)

@nscottnichols
Copy link

Another aspect to consider is to run periodic tests on the GPUs, such as hgemm and Igemm and any peer-to-peer tests, to see if there are any low-performing GPUs over time. So, in addition to running at the beginning of a job, we can run this after a specific duration, such as after every checkpoint.

We have GEMM benchmarks as part of the node performance overview. I can adapt these tests to be run as part of a pre-execution hook that we run during our job submissions and to target other systems.

@nscottnichols
Copy link

@venkat-1 I created a new issue for testing, #40. Also, for metric tracking, are we looking for something that can be post processed, something with a live view/feed, or something integrated with W&B?

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

No branches or pull requests

2 participants