Skip to main content

Network Profiler for the HPE Cassini Cray NIC

Project description

net-prof

net-prof is a network profiler library aimed to profile the HPE Cray Cassini Network Interface Card (NIC) on a compute node to collect, analyze and visualize the network counter events. This tool will help to compare and diagnose a successful workload without any network issues with an unsuccessful workload due to a network issue.

To Install

pip install net-prof

Install in editable mode from project root:

pip install -e .

Or use (workaround):

sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'src')))

Functions

collect(input_directory, "counters.json")
summarize(before, after)
dump(summary)
dump_html(summary, output_html)

Example Utilizing multi-NIC

import sys
import os
import net_prof

script_dir = os.path.dirname(os.path.abspath(__file__))

net_prof.collect("/home/kvelusamy/Downloads/dummy/sys/class/cxi", os.path.join(script_dir, "before.json"))
net_prof.collect("/home/kvelusamy/Downloads/dummy/sys/class/cxi", os.path.join(script_dir, "after.json"))

before = os.path.join(script_dir, "before.json")
after = os.path.join(script_dir, "after.json")

summary = net_prof.summarize(before, after)

output_html = os.path.join(script_dir, "report_all.html")  # e.g., tests/report.html
os.makedirs(os.path.join(script_dir, "charts"), exist_ok=True)

net_prof.dump_html(summary, output_html)

Example Utilizing a single NIC/interface (cxi0).

import net_prof
script_dir = os.path.dirname(os.path.abspath(__file__))

net_prof.collect("../cxi/cxi0/device/telemetry", os.path.join(script_dir, "before.json")) 
net_prof.collect("../cxi/cxi0/device/telemetry", os.path.join(script_dir, "after.json"))

before = os.path.join(script_dir, "before.json")
after = os.path.join(script_dir, "after.json")

output_html = os.path.join(script_dir, "report.html")
os.makedirs(os.path.join(script_dir, "charts"), exist_ok=True)

summary = net_prof.summarize(before, after)
net_prof.dump(summary)
net_prof.dump_html(summary, output_html)

Test used by Aurora:

import os
import net_prof
target_host = "x4306c7s2b0n0.hostmgmt2306.cm.aurora.alcf.anl.gov"
net_prof.collect("/sys/class/cxi/","/lus/flare/projects/datascience/kaushik/network/net-prof-tests/ping-test/before.json")
os.system(f"ping -c 4 {target_host}") 
net_prof.collect("/sys/class/cxi/","/lus/flare/projects/datascience/kaushik/network/net-prof-tests/ping-test/after.json")
summary = net_prof.summarize("/lus/flare/projects/datascience/kaushik/network/net-prof-tests/ping-test/before.json", "/lus/flare/projects/datascience/kaushik/network/net-prof-tests/ping-test/after.json")
net_prof.dump(summary)
net_prof.dump_html(summary, "/lus/flare/projects/datascience/kaushik/network/net-prof-tests/ping-test/net_prof_report.html")

Profiler Snapshots

Alt text Alt text Alt text Alt text

References

https://cpe.ext.hpe.com/docs/latest/getting_started/HPE-Cassini-Performance-Counters.html

https://github.com/argonne-lcf/net-prof

https://pypi.org/project/net-prof/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

net_prof-0.1.5.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

net_prof-0.1.5-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file net_prof-0.1.5.tar.gz.

File metadata

  • Download URL: net_prof-0.1.5.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for net_prof-0.1.5.tar.gz
Algorithm Hash digest
SHA256 a6768af0cece29796b35c7ce98da15f4b45e35eb2905631993fb546b2b6415d5
MD5 664dbe359c22b4ab81ce24f9cd351c84
BLAKE2b-256 1857853208777f30da45bbcfef93180be41c4d9b73e528822a7db243b0cd45fc

See more details on using hashes here.

File details

Details for the file net_prof-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: net_prof-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for net_prof-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f3bb0de623f77499425de730d70d08ab9518793a97665362b788357ee4c32390
MD5 1160b02246d1f650621f8e4ae2ee5d9c
BLAKE2b-256 1b574ee29a64f3c5c5a08640e386178d215a293adcb1956f70bcd6d66b05a258

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page