Details

    • Type: Problem report
    • Status: Closed
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Agent (G)
    • Labels:
      None

      Description

      I need to monitor GPU statistics on a Windows machine.

      I have found out that there are performance counters that can do it.

      So I ran this:

      C:\Users\admin>typeperf -q | find "GPU"
      \GPU Local Adapter Memory(*)\Local Usage
      \GPU Engine(*)\Utilization Percentage
      \GPU Engine(*)\Running Time
      \GPU Adapter Memory(*)\Shared Usage
      \GPU Adapter Memory(*)\Dedicated Usage
      \GPU Adapter Memory(*)\Total Committed
      \GPU Process Memory(*)\Shared Usage
      \GPU Process Memory(*)\Dedicated Usage
      \GPU Process Memory(*)\Non Local Usage
      \GPU Process Memory(*)\Local Usage
      \GPU Process Memory(*)\Total Committed
      \GPU Non Local Adapter Memory(*)\Non Local Usage

      Now I query "\GPU Engine\Utilization Percentage" from CLI:

       

      PS C:\Users\admin> Get-Counter -Counter "\GPU Engine(*)\Utilization Percentage"
      Timestamp CounterSamples
      --------- --------------
      13/11/2018 17:58:38 \\tc-elecard-08\gpu
       engine(pid_16188_luid_0x00000000_0x00006013_phys_0_eng_8_engtype_3d)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_16188_luid_0x00000000_0x00006013_phys_0_eng_7_engtype_3d)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_16188_luid_0x00000000_0x00006013_phys_0_eng_6_engtype_3d)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_16188_luid_0x00000000_0x00006013_phys_0_eng_5_engtype_3d)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_16188_luid_0x00000000_0x00006013_phys_0_eng_4_engtype_3d)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_16188_luid_0x00000000_0x00006013_phys_0_eng_3_engtype_3d)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_16188_luid_0x00000000_0x00006013_phys_0_eng_2_engtype_3d)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_16188_luid_0x00000000_0x00006013_phys_0_eng_1_engtype_3d)\utilization percentage :
       0.111372031119455
      \\tc-elecard-08\gpu
       engine(pid_16188_luid_0x00000000_0x00006013_phys_0_eng_0_engtype_3d)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_1028_luid_0x00000000_0x000060cd_phys_0_eng_9_engtype_videoprocessing)\utilization
       percentage :
       0
      \\tc-elecard-08\gpu engine(pid_1028_luid_0x00000000_0x000060cd_phys_0_eng_8_engtype_gdi
       render)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_1028_luid_0x00000000_0x000060cd_phys_0_eng_7_engtype_legacyoverlay)\utilization
       percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_1028_luid_0x00000000_0x000060cd_phys_0_eng_6_engtype_)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_1028_luid_0x00000000_0x000060cd_phys_0_eng_5_engtype_)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_1028_luid_0x00000000_0x000060cd_phys_0_eng_4_engtype_videodecode)\utilization
       percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_1028_luid_0x00000000_0x000060cd_phys_0_eng_3_engtype_videoprocessing)\utilization
       percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_1028_luid_0x00000000_0x000060cd_phys_0_eng_2_engtype_copy)\utilization percentage
       :
       0
      \\tc-elecard-08\gpu
       engine(pid_1028_luid_0x00000000_0x000060cd_phys_0_eng_1_engtype_videodecode)\utilization
       percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_1028_luid_0x00000000_0x000060cd_phys_0_eng_0_engtype_3d)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_3916_luid_0x00000000_0x00006013_phys_0_eng_8_engtype_3d)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_3916_luid_0x00000000_0x00006013_phys_0_eng_7_engtype_3d)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_3916_luid_0x00000000_0x00006013_phys_0_eng_6_engtype_3d)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_3916_luid_0x00000000_0x00006013_phys_0_eng_5_engtype_3d)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_3916_luid_0x00000000_0x00006013_phys_0_eng_4_engtype_3d)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_3916_luid_0x00000000_0x00006013_phys_0_eng_3_engtype_3d)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_3916_luid_0x00000000_0x00006013_phys_0_eng_2_engtype_3d)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_3916_luid_0x00000000_0x00006013_phys_0_eng_1_engtype_3d)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_3916_luid_0x00000000_0x00006013_phys_0_eng_0_engtype_3d)\utilization percentage :
       0
      \\tc-elecard-08\gpu engine(pid_14632_luid_0x00000000_0x000060cd_phys_0_eng_9_engtype_videopro
       cessing)\utilization percentage :
       0
      \\tc-elecard-08\gpu engine(pid_14632_luid_0x00000000_0x000060cd_phys_0_eng_8_engtype_gdi
       render)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_14632_luid_0x00000000_0x000060cd_phys_0_eng_7_engtype_legacyoverlay)\utilization
       percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_14632_luid_0x00000000_0x000060cd_phys_0_eng_6_engtype_)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_14632_luid_0x00000000_0x000060cd_phys_0_eng_5_engtype_)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_14632_luid_0x00000000_0x000060cd_phys_0_eng_4_engtype_videodecode)\utilization
       percentage :
       0
      \\tc-elecard-08\gpu engine(pid_14632_luid_0x00000000_0x000060cd_phys_0_eng_3_engtype_videopro
       cessing)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_14632_luid_0x00000000_0x000060cd_phys_0_eng_2_engtype_copy)\utilization
       percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_14632_luid_0x00000000_0x000060cd_phys_0_eng_1_engtype_videodecode)\utilization
       percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_14632_luid_0x00000000_0x000060cd_phys_0_eng_0_engtype_3d)\utilization percentage :
       0
      \\tc-elecard-08\gpu engine(pid_10556_luid_0x00000000_0x000060cd_phys_0_eng_9_engtype_videopro
       cessing)\utilization percentage :
       0
      \\tc-elecard-08\gpu engine(pid_10556_luid_0x00000000_0x000060cd_phys_0_eng_8_engtype_gdi
       render)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_10556_luid_0x00000000_0x000060cd_phys_0_eng_7_engtype_legacyoverlay)\utilization
       percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_10556_luid_0x00000000_0x000060cd_phys_0_eng_6_engtype_)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_10556_luid_0x00000000_0x000060cd_phys_0_eng_5_engtype_)\utilization percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_10556_luid_0x00000000_0x000060cd_phys_0_eng_4_engtype_videodecode)\utilization
       percentage :
       0
      \\tc-elecard-08\gpu engine(pid_10556_luid_0x00000000_0x000060cd_phys_0_eng_3_engtype_videopro
       cessing)\utilization percentage :
       3.96203603891869
      \\tc-elecard-08\gpu
       engine(pid_10556_luid_0x00000000_0x000060cd_phys_0_eng_2_engtype_copy)\utilization
       percentage :
       0
      \\tc-elecard-08\gpu
       engine(pid_10556_luid_0x00000000_0x000060cd_phys_0_eng_1_engtype_videodecode)\utilization
       percentage :
       3.63973424907668
      \\tc-elecard-08\gpu
       engine(pid_10556_luid_0x00000000_0x000060cd_phys_0_eng_0_engtype_3d)\utilization percentage :
       7.10984386144568
       
      (output omitted)
      

      As you can see, some processes are utilizing GPU which altogether gives me around 50%.

      But if I query with zabbix_get I get this:

      [maksimse@zabbix-server-node1 ~]$ zabbix_get -s <host> -k perf_counter["\GPU Engine(*)\Utilization Percentage"]
      0.000000

      Why? Is it a bug?

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              maksims.edelmans Maksims Edelmans
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: