@@ -59,11 +59,8 @@ are known to work for both. Also see comments in `gpuapi/Makefile`.
5959
6060## Output format options
6161
62- There are two output formats, [ the old format] ( doc/OLD-FORMAT.md ) and [ the new
63- format] ( doc/NEW-FORMAT.md ) , currently coexisting but the old format will be phased out.
64-
65- The recommended (and default as of v0.16) output format is the "new" JSON format. There are command
66- line switches to force the older formats, CSV or an older JSON format.
62+ As of v0.17 there is only one output format, known as [ the new format] ( doc/NEW-FORMAT.md ) , a JSON
63+ encoding. Support for the older CSV format and an older JSON encoding have been removed.
6764
6865## Examples
6966
@@ -75,34 +72,19 @@ cluster", below. For a full description of the output formats and fields, see t
7572It's sensible to run ` sonar ps ` every 5 minutes on every compute node if you care mostly about
7673long-running jobs, or at higher frequency if sbrief jobs are of interest to you.
7774
78- Here is an example output (with the older CSV output format) :
75+ Here is an example output:
7976``` console
8077$ sonar ps --exclude-system-jobs --min-cpu-time=10
81-
82- v=0.7.0,time=2023-08-10T11:09:41+02:00,host=somehost,cores=8,user=someone,job=0,cmd=fish,cpu%=2.1,cpukib=64400,gpus=none,gpu%=0,gpumem%=0,gpukib=0,cputime_sec=138
83- v=0.7.0,time=2023-08-10T11:09:41+02:00,host=somehost,cores=8,user=someone,job=0,cmd=sonar,cpu%=761,cpukib=372,gpus=none,gpu%=0,gpumem%=0,gpukib=0,cputime_sec=137
84- v=0.7.0,time=2023-08-10T11:09:41+02:00,host=somehost,cores=8,user=someone,job=0,cmd=brave,cpu%=14.6,cpukib=2907168,gpus=none,gpu%=0,gpumem%=0,gpukib=0,cputime_sec=3532
85- v=0.7.0,time=2023-08-10T11:09:41+02:00,host=somehost,cores=8,user=someone,job=0,cmd=alacritty,cpu%=0.8,cpukib=126700,gpus=none,gpu%=0,gpumem%=0,gpukib=0,cputime_sec=51
86- v=0.7.0,time=2023-08-10T11:09:41+02:00,host=somehost,cores=8,user=someone,job=0,cmd=pulseaudio,cpu%=0.7,cpukib=90640,gpus=none,gpu%=0,gpumem%=0,gpukib=0,cputime_sec=399
87- v=0.7.0,time=2023-08-10T11:09:41+02:00,host=somehost,cores=8,user=someone,job=0,cmd=slack,cpu%=3.9,cpukib=716924,gpus=none,gpu%=0,gpumem%=0,gpukib=0,cputime_sec=266
78+ ...
8879```
8980
9081### Collect system information with ` sonar sysinfo `
9182
92- The ` sysinfo ` subcommand collects information about the system and prints it in JSON form on stdout
93- (this is the older JSON format):
83+ The ` sysinfo ` subcommand collects information about the system and prints it on stdout.
9484
9585``` console
9686$ sonar sysinfo
97- {
98- "timestamp": "2024-02-26T00:00:02+01:00",
99- "hostname": "ml1.hpc.uio.no",
100- "description": "2x14 (hyperthreaded) Intel(R) Xeon(R) Gold 5120 CPU @ 2.20GHz, 125 GB, 3x NVIDIA GeForce RTX 2080 Ti @ 11GB",
101- "cpu_cores": 56,
102- "mem_gb": 125,
103- "gpu_cards": 3,
104- "gpumem_gb": 33
105- }
87+ ...
10688```
10789
10890Typical usage for ` sysinfo ` is to run the command after reboot and (for hot-swappable systems and
0 commit comments