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

Generalize parsing of nvidia-smi pmon output #170

Closed
lars-t-hansen opened this issue May 6, 2024 · 0 comments
Closed

Generalize parsing of nvidia-smi pmon output #170

lars-t-hansen opened this issue May 6, 2024 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@lars-t-hansen
Copy link
Collaborator

lars-t-hansen commented May 6, 2024

The format has changed, and unless we want to fix #87 we must handle multiple formats properly.

ml1: NVIDIA System Management Interface -- v545.23.08

$ nvidia-smi pmon -c 1 -s u
# gpu         pid  type    sm    mem    enc    dec    command
# Idx           #   C/G     %      %      %      %    name
    0    1174916     C     88     54      -      -    python         
    0    1186862     C      -      -      -      -    python3        
    1    1174916     C     92     53      -      -    python         
    1    1223470     C      -      -      -      -    python3        
    2    1174916     C     89     53      -      -    python         
    2     941737     C      -      -      -      -    python3        

gpu-13.fox: NVIDIA System Management Interface -- v550.54.14

$ nvidia-smi pmon -c 1 -s u
# gpu         pid   type     sm    mem    enc    dec    jpg    ofa    command 
# Idx           #    C/G      %      %      %      %      %      %    name 
    0          -     -      -      -      -      -      -      -    -              
    1          -     -      -      -      -      -      -      -    -              
    2          -     -      -      -      -      -      -      -    -              
    3          -     -      -      -      -      -      -      -    -              

It could look like the sensible thing to do here would be to decode the # gpu line and use that as a key into the other data. We could sensibly try to detect issues and signal problems via the gpufail field.

@lars-t-hansen lars-t-hansen added bug Something isn't working enhancement New feature or request labels May 6, 2024
@lars-t-hansen lars-t-hansen self-assigned this May 6, 2024
lars-t-hansen pushed a commit to lars-t-hansen/sonar that referenced this issue May 6, 2024
@bast bast closed this as completed in 7b87625 May 16, 2024
bast added a commit that referenced this issue May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant