Documentation
¶
Overview ¶
Package gpu contains code for monitoring of GPUs from system probe. The data flow is as follows:
- The main entry point is the Probe type in probe.go, which sets up the eBPF uprobes for library functions.
- Library uprobes send events each time those functions are called through an event ringbuffer.
- The consumer.go file contains the CUDA event consumer, which reads events from the ringbuffer and sends them to the appropriate stream handler.
- The stream.go file contains the StreamHandler type, which processes events and generates data for a specific stream of GPU commands.
- When the probe receives a data request via the GetAndFlush method, it calls onto the statsGenerator (stags.go) to generate the GPU stats that will be sent.
- The statsGenerator takes the data from all active stream handlers, and distributes them to the appropriate aggregators.
- The aggregators (aggregator.go) process data from multiple streams from a single process, and generate process-level stats.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureDeviceCgroups ¶
ConfigureDeviceCgroups configures the cgroups for a process to allow access to the NVIDIA character devices
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
Package config provides the GPU monitoring config.
|
Package config provides the GPU monitoring config. |
consts
Package consts provides constants for the GPU monitoring config, so that they can be imported by other packages without importing the entire config package, which includes ebpf config
|
Package consts provides constants for the GPU monitoring config, so that they can be imported by other packages without importing the entire config package, which includes ebpf config |
Package cuda provides helpers for CUDA binary parsing
|
Package cuda provides helpers for CUDA binary parsing |
Package tags provides gpu host tags to the host payload
|
Package tags provides gpu host tags to the host payload |
Click to show internal directories.
Click to hide internal directories.