GPU Line Chart

Forums Desktop Info GPU Line Chart

Viewing 17 reply threads
  • Author
    Posts
    • #3415
      echo

      Hello,
      i have made a cmd script to show the usage of my nvidia gpu. I would like to make a line chart of that data, but the chart is empty.

      CMD=active:1,interval:3,hide-no-result:1,file:cmd.exe,parameters:/C script\get-nvidia-usage.cmd,trim,show-window:0,chart:line linear 100 1 00ff00,display:%4,text:GPU Usage,color:FFFFFF

      And the cmd script:

      Did you have a hint for me?

      Greetings

    • #3416
      Glenn
      Keymaster

      i can’t test the cmd script so i will have to assume the output is giving you the single value you’re expecting. I see your chart option is displaying %1, I think this should be %4, same as the display. Check the manual for details.

      chart:line linear 100 4 00ff00

      you probably want to adjust the max option to something appropriate.

    • #3426
      echo

      Hello,
      the cmd script is working well. I get a number between 0 and 100. And this Output will printed correctly in Desktop Info.

      I have corrected the config to:
      CMD=active:1,interval:3,hide-no-result:1,file:cmd.exe,parameters:/C script\get-nvidia-usage.cmd,trim,show-window:0,chart:line linear 100 4 00ff00,display:%4,text:GPU Usage,color:FFFFFF

      Sadly, I had the 4 in the “chart:line linear 100 4” some time ago.
      But this doesn’t change the result. Look at my screenshot

      thanks for your help

    • #3431
      Glenn
      Keymaster

      Please post your screen shot here rather than on another site. You’ll need to log in.

    • #3433
      echo
      Participant

      Ok. I put the screenshot here

      Attachments:
    • #3435
      Glenn
      Keymaster

      I found two issues: the first is the trim option needs to have a true value, “trim:1”, the second is the value is coming back as a string and hence the charts are ignoring it. I’ll add a ‘last resort’ option to try to convert a string to a numeric value that can be charted.

    • #3461
      echo
      Participant

      After an update to 2.9.0 the diagram is drawn correctly.
      Thanks a lot

    • #3522
      Bazokaa
      Participant

      @Echo, can you post your desktopinfo and all additional CMD codes here??
      This would me help alot.

    • #3535
      echo
      Participant

      Hello,
      I added my config with all CMD files…
      Hope it helps you 🙂

      • This reply was modified 11 months, 3 weeks ago by echo.
    • #3538
      echo
      Participant

      I have looked into the nvidia-smi and found an easer way for the same output…

      That should be an better way to get to the same results. You have only make 4 cmd scripts with one of the lines in it and call it from desktop-info.

      You can look with “nvidia-smi –help-query-gpu” for more query thinks. Or look with “nvidia-smi –help” for generally help.

      • This reply was modified 11 months, 3 weeks ago by echo.
    • #3540
      echo
      Participant

      I have rewritten my cmd scripts for you and put it in this zip file. The old scripts are in the folder old. So the other zip is obsolete and can be deleted from this thread.

      Only the RAM display is the old script because it is easer for my display usage.

      • #3542
        Bazokaa
        Participant

        Thank you very much.
        I had similar ideas with one cmd script to get all relevant datas:

        @nvidia-smi --query-gpu=temperature.gpu,fan.speed,utilization.gpu,utilization.memory,memory.total,memory.used,memory.free,pstate,clocks.sm,clocks.mem --format=csv,noheader,nounits

        but Gleen told me I had to read each value separately. So the next “ugly” way is to create separately scripts for each value. Im not so happy with this, but i will try it next weekend.

        I found also another command useful, but not in this case:

        @nvidia-smi dmon -c 1

    • #3613
      Nathan_K
      Participant

      Here’s an updated set of lines for your INI if you don’t want to use scripts.

      • This reply was modified 11 months, 2 weeks ago by Nathan_K.
      • #3615
        Nathan_K
        Participant

        Let me correct that last line. Had an issue with my line chart.

        CMD=active:1,interval:3,hide-no-result:1,file:cmd.exe,parameters:/C "c:\program files\nvidia corporation\nvsmi\nvidia-smi.exe" --query-gpu=utilization.gpu --format=csv\,noheader\,nounits,trim:1,show-window:0,color:22ccee,Text:GPU Usage,display:Temp: %gpu_temp%C Usage: %4% Memory: %gpu_mem_used% MiB / %gpu_mem_total% MiB,chart:line2 scale:linear max:100 series1:%4 color1:00ff00,threshold1:4 40 909090,threshold2:4 60 FFBF00,threshold3:4 90 ff0000

        • #3616
          Glenn
          Keymaster

          where do those variables in the display template come from?

    • #3617
      Nathan_K
      Participant

      They are set in the prior 3 lines (code block in the above post). The line in post #3615 replaces the last line in post #3613.

      • #3618
        Glenn
        Keymaster

        ah, nice!

    • #3631
      Bazokaa
      Participant

      Dear Glenn,

      Thank you very much. I think its better to use no additional scripts.
      I tried your 4 lines and changed the path for the nvidia exe to
      “C:\Windows\System32\nvidia-smi.exe”.
      I changed the hidden:0 to see whats happen. I get a message, that the path is wrong or not exist. But it should be correct. See the attached images.

      Attachments:
      • #3635
        Bazokaa
        Participant

        I think the EDIT Button is not wirking correctly in your forum.

        I changed the lines a bit:
        directory:C:\Windows\System32,parameters:/C nvidia-smi.exe

        CMD=active:1,interval:1,hide-no-result:1,file:cmd.exe,directory:C:\Windows\System32,parameters:/C nvidia-smi.exe --query-gpu=temperature.gpu --format=csv\,noheader\,nounits,trim:1,show-window:0,set:gpu_temp,display:%4,hidden:0

        Now i get values.
        I still work on it

    • #3636
      Nathan_K
      Participant

      Hey Bazokaa.. can you provide a copy of the config lines you have in a code block for review? I want to see if there is anything you have different other than the path to the “nvidia-smi.exe” file.

      Update: Nevermind.. you beat me to it. 🙂

      • This reply was modified 11 months, 1 week ago by Nathan_K.
    • #3638
      Bazokaa
      Participant

      Actually I used this below.
      It works (still a issue with threshold in chart for GPU temp) but i run into another unexcpeted issue.
      The program consumes too many resources. I see it in the task manager. Every time it is updated the load is too high. I was not aware of this. Other programs use less load. See attached file. I marked it.

      Attachments:
    • #3640
      Glenn
      Keymaster

      yes that would be a big hit on the cpu.

    • #3641
      Glenn
      Keymaster

      Nathan, if you were to combine all of those commands into a single command that returned all the required metrics at once as csv, can you post me the resulting output please. I’d like to see what it looks like.

      • This reply was modified 11 months, 1 week ago by Glenn.
Viewing 17 reply threads
  • You must be logged in to reply to this topic.
Glenn's Page