Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scottclowe/cpu-gpu-utilisation-logging
Log CPU and GPU utilisation at regular intervals
https://github.com/scottclowe/cpu-gpu-utilisation-logging
cpu-monitoring gpu-monitoring nvidia nvidia-smi
Last synced: 21 days ago
JSON representation
Log CPU and GPU utilisation at regular intervals
- Host: GitHub
- URL: https://github.com/scottclowe/cpu-gpu-utilisation-logging
- Owner: scottclowe
- License: bsd-2-clause
- Created: 2019-02-01T20:00:57.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-28T20:57:55.000Z (almost 5 years ago)
- Last Synced: 2025-01-09T21:50:57.875Z (25 days ago)
- Topics: cpu-monitoring, gpu-monitoring, nvidia, nvidia-smi
- Language: Shell
- Size: 6.84 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CPU and GPU utilisation logging
Logs GPU and CPU utilization, either to stdout or to a CSV file.
```sh
log_gpu_cpu_stats [OPTION1 [ARG1]] [OPTION2 [ARG2]] ... [FILE]
```## Usage
```sh
log_gpu_cpu_stats
log_gpu_cpu_stats -l 10
log_gpu_cpu_stats compute_usage_log.csv
log_gpu_cpu_stats --no-header -l 5 -n 60 compute_usage_log.csv
```## Options
```
-h, --help Show usage and exit.--loop
-l Loop every INTERVAL seconds. Default is 1 second.
A minimum of 0.5 is recommended, to get reliable CPU
data.--niter
-n Repeat at most MAXITER times. Default is -1,
which corresponds to forever (send interrput signal
to terminate).-H, --no-header Disable header in table output. Default is enabled.
--header Enable header in table output. Default is enabled.
-c, --csv Output in csv style. Default style is csv if FILE is
set.-t, --tabular Output in ascii table style. Default style is tabular
if FILE is not set (output is sent to stdout).-I, --date-iso Show time in ISO format. Default is seconds (-s flag).
-s, --date-seconds Show time in seconds since Unix epoch (with ms
precision reported). Enabled by default.--date
-d Show time in custom format, FORMAT.[FILE] If present, output is appended to FILE. If omitted,
output is sent to stdout.
```## Requirements
- POSIX-compliant shell (tested in both bash and dash)
- nvidia-smi
- top
- bc