Jump to content
b3rs3rk

[PLUGIN] GPU Statistics

135 posts in this topic Last Reply

Recommended Posts

Posted (edited)

This thread will serve as the support thread for the GPU statistics plugin (gpustat).  Currently, a single nVidia card is supported.  No testing outside this scenario has been done and is not guaranteed to work in any fashion.

 

UPDATE: 2020-04-18 Released - Allow user-selectable display of metrics on plugin widget

 

Prerequisite:  6.7.1+ Unraid-Nvidia plugin with nVidia build installed.

 

Plugin is now live on CA but if you want to manually install see the below --

 

To review the source before installing (**You should always do this**):  https://github.com/b3rs3rk/gpustat-unraid

 

Manual Plugin Installation URL:  https://raw.githubusercontent.com/b3rs3rk/gpustat-unraid/master/gpustat.plg

 

Enjoy!

 

======================================================================

 

Information to Include when asking for Support:

 

1) the result of 'nvidia-smi -q -x -i 0' from the UnRAID console (via SSH or the webterminal is fine)

2) the result of 'cd /usr/local/emhttp/plugins/gpustat/ && php ./gpustatus.php'

3) a screenshot of the dashboard plugin (if issue is only seen during transcoding, then a snippet during transcode is best)

Edited by b3rs3rk
Update test command to include GPU id
  • Like 2
  • Thanks 7

Share this post


Link to post

Nice work! Reddit thought to plugin in less that 24 hours!

  • Like 1
  • Haha 1

Share this post


Link to post

I'm assuming the Power:N/A will switch to something once an encode is happening?

Share this post


Link to post
18 minutes ago, CoZ said:

I'm assuming the Power:N/A will switch to something once an encode is happening?

I can only speak from my limited dataset of two machines, but it should always show a wattage with the default being 0W.  Can you attach the result of "nvidia-smi -q -x" from your UnRAID console?  Feel free to remove the device serial number/GPU GUID before attaching it.  Attaching a snippet of what your dashboard plugin is displaying may also be helpful.

Share this post


Link to post
Posted (edited)
<!DOCTYPE nvidia_smi_log SYSTEM "nvsmi_device_v10.dtd">
<nvidia_smi_log>
        <timestamp>Sat Mar  7 18:50:00 2020</timestamp>
        <driver_version>440.44</driver_version>
        <cuda_version>10.2</cuda_version>
        <attached_gpus>1</attached_gpus>
        <gpu id="00000000:01:00.0">
                <product_name>GeForce GTX 1050</product_name>
                <product_brand>GeForce</product_brand>
                <display_mode>Disabled</display_mode>
                <display_active>Disabled</display_active>
                <persistence_mode>Disabled</persistence_mode>
                <accounting_mode>Disabled</accounting_mode>
                <accounting_mode_buffer_size>4000</accounting_mode_buffer_size>
                <driver_model>
                        <current_dm>N/A</current_dm>
                        <pending_dm>N/A</pending_dm>
                </driver_model>
                <serial>N/A</serial>
                <uuid>XXXXXXXXXXXXXXXXXXXXXXXXXXXXX</uuid>
                <minor_number>0</minor_number>
                <vbios_version>86.07.25.00.65</vbios_version>
                <multigpu_board>No</multigpu_board>
                <board_id>0x100</board_id>
                <gpu_part_number>N/A</gpu_part_number>
                <inforom_version>
                        <img_version>G001.0000.01.04</img_version>
                        <oem_object>1.1</oem_object>
                        <ecc_object>N/A</ecc_object>
                        <pwr_object>N/A</pwr_object>
                </inforom_version>
                <gpu_operation_mode>
                        <current_gom>N/A</current_gom>
                        <pending_gom>N/A</pending_gom>
                </gpu_operation_mode>
                <gpu_virtualization_mode>
                        <virtualization_mode>None</virtualization_mode>
                        <host_vgpu_mode>N/A</host_vgpu_mode>
                </gpu_virtualization_mode>
                <ibmnpu>
                        <relaxed_ordering_mode>N/A</relaxed_ordering_mode>
                </ibmnpu>
                <pci>
                        <pci_bus>01</pci_bus>
                        <pci_device>00</pci_device>
                        <pci_domain>0000</pci_domain>
                        <pci_device_id>1C8110DE</pci_device_id>
                        <pci_bus_id>00000000:01:00.0</pci_bus_id>
                        <pci_sub_system_id>8C971462</pci_sub_system_id>
                        <pci_gpu_link_info>
                                <pcie_gen>
                                        <max_link_gen>3</max_link_gen>
                                        <current_link_gen>3</current_link_gen>
                                </pcie_gen>
                                <link_widths>
                                        <max_link_width>16x</max_link_width>
                                        <current_link_width>8x</current_link_width>
                                </link_widths>
                        </pci_gpu_link_info>
                        <pci_bridge_chip>
                                <bridge_chip_type>N/A</bridge_chip_type>
                                <bridge_chip_fw>N/A</bridge_chip_fw>
                        </pci_bridge_chip>
                        <replay_counter>0</replay_counter>
                        <replay_rollover_counter>0</replay_rollover_counter>
                        <tx_util>0 KB/s</tx_util>
                        <rx_util>0 KB/s</rx_util>
                </pci>
                <fan_speed>43 %</fan_speed>
                <performance_state>P0</performance_state>
                <clocks_throttle_reasons>
                        <clocks_throttle_reason_gpu_idle>Not Active</clocks_throttle_reason_gpu_idle>
                        <clocks_throttle_reason_applications_clocks_setting>Not Active</clocks_throttle_reason_applications_clocks_setting>
                        <clocks_throttle_reason_sw_power_cap>Not Active</clocks_throttle_reason_sw_power_cap>
                        <clocks_throttle_reason_hw_slowdown>Not Active</clocks_throttle_reason_hw_slowdown>
                        <clocks_throttle_reason_hw_thermal_slowdown>Not Active</clocks_throttle_reason_hw_thermal_slowdown>
                        <clocks_throttle_reason_hw_power_brake_slowdown>Not Active</clocks_throttle_reason_hw_power_brake_slowdown>
                        <clocks_throttle_reason_sync_boost>Not Active</clocks_throttle_reason_sync_boost>
                        <clocks_throttle_reason_sw_thermal_slowdown>Not Active</clocks_throttle_reason_sw_thermal_slowdown>
                        <clocks_throttle_reason_display_clocks_setting>Not Active</clocks_throttle_reason_display_clocks_setting>
                </clocks_throttle_reasons>
                <fb_memory_usage>
                        <total>1999 MiB</total>
                        <used>300 MiB</used>
                        <free>1699 MiB</free>
                </fb_memory_usage>
                <bar1_memory_usage>
                        <total>256 MiB</total>
                        <used>2 MiB</used>
                        <free>254 MiB</free>
                </bar1_memory_usage>
                <compute_mode>Default</compute_mode>
                <utilization>
                        <gpu_util>0 %</gpu_util>
                        <memory_util>0 %</memory_util>
                        <encoder_util>0 %</encoder_util>
                        <decoder_util>0 %</decoder_util>
                </utilization>
                <encoder_stats>
                        <session_count>0</session_count>
                        <average_fps>0</average_fps>
                        <average_latency>0</average_latency>
                </encoder_stats>
                <fbc_stats>
                        <session_count>0</session_count>
                        <average_fps>0</average_fps>
                        <average_latency>0</average_latency>
                </fbc_stats>
                <ecc_mode>
                        <current_ecc>N/A</current_ecc>
                        <pending_ecc>N/A</pending_ecc>
                </ecc_mode>
                <ecc_errors>
                        <volatile>
                                <single_bit>
                                        <device_memory>N/A</device_memory>
                                        <register_file>N/A</register_file>
                                        <l1_cache>N/A</l1_cache>
                                        <l2_cache>N/A</l2_cache>
                                        <texture_memory>N/A</texture_memory>
                                        <texture_shm>N/A</texture_shm>
                                        <cbu>N/A</cbu>
                                        <total>N/A</total>
                                </single_bit>
                                <double_bit>
                                        <device_memory>N/A</device_memory>
                                        <register_file>N/A</register_file>
                                        <l1_cache>N/A</l1_cache>
                                        <l2_cache>N/A</l2_cache>
                                        <texture_memory>N/A</texture_memory>
                                        <texture_shm>N/A</texture_shm>
                                        <cbu>N/A</cbu>
                                        <total>N/A</total>
                                </double_bit>
                        </volatile>
                        <aggregate>
                                <single_bit>
                                        <device_memory>N/A</device_memory>
                                        <register_file>N/A</register_file>
                                        <l1_cache>N/A</l1_cache>
                                        <l2_cache>N/A</l2_cache>
                                        <texture_memory>N/A</texture_memory>
                                        <texture_shm>N/A</texture_shm>
                                        <cbu>N/A</cbu>
                                        <total>N/A</total>
                                </single_bit>
                                <double_bit>
                                        <device_memory>N/A</device_memory>
                                        <register_file>N/A</register_file>
                                        <l1_cache>N/A</l1_cache>
                                        <l2_cache>N/A</l2_cache>
                                        <texture_memory>N/A</texture_memory>
                                        <texture_shm>N/A</texture_shm>
                                        <cbu>N/A</cbu>
                                        <total>N/A</total>
                                </double_bit>
                        </aggregate>
                </ecc_errors>
                <retired_pages>
                        <multiple_single_bit_retirement>
                                <retired_count>N/A</retired_count>
                                <retired_pagelist>N/A</retired_pagelist>
                        </multiple_single_bit_retirement>
                        <double_bit_retirement>
                                <retired_count>N/A</retired_count>
                                <retired_pagelist>N/A</retired_pagelist>
                        </double_bit_retirement>
                        <pending_blacklist>N/A</pending_blacklist>
                        <pending_retirement>N/A</pending_retirement>
                </retired_pages>
                <temperature>
                        <gpu_temp>39 C</gpu_temp>
                        <gpu_temp_max_threshold>102 C</gpu_temp_max_threshold>
                        <gpu_temp_slow_threshold>99 C</gpu_temp_slow_threshold>
                        <gpu_temp_max_gpu_threshold>N/A</gpu_temp_max_gpu_threshold>
                        <memory_temp>N/A</memory_temp>
                        <gpu_temp_max_mem_threshold>N/A</gpu_temp_max_mem_threshold>
                </temperature>
                <power_readings>
                        <power_state>P0</power_state>
                        <power_management>Supported</power_management>
                        <power_draw>N/A</power_draw>
                        <power_limit>75.00 W</power_limit>
                        <default_power_limit>75.00 W</default_power_limit>
                        <enforced_power_limit>75.00 W</enforced_power_limit>
                        <min_power_limit>52.50 W</min_power_limit>
                        <max_power_limit>75.00 W</max_power_limit>
                </power_readings>
                <clocks>
                        <graphics_clock>1354 MHz</graphics_clock>
                        <sm_clock>1354 MHz</sm_clock>
                        <mem_clock>3504 MHz</mem_clock>
                        <video_clock>1215 MHz</video_clock>
                </clocks>
                <applications_clocks>
                        <graphics_clock>N/A</graphics_clock>
                        <mem_clock>N/A</mem_clock>
                </applications_clocks>
                <default_applications_clocks>
                        <graphics_clock>N/A</graphics_clock>
                        <mem_clock>N/A</mem_clock>
                </default_applications_clocks>
                <max_clocks>
                        <graphics_clock>1911 MHz</graphics_clock>
                        <sm_clock>1911 MHz</sm_clock>
                        <mem_clock>3504 MHz</mem_clock>
                        <video_clock>1708 MHz</video_clock>
                </max_clocks>
                <max_customer_boost_clocks>
                        <graphics_clock>N/A</graphics_clock>
                </max_customer_boost_clocks>
                <clock_policy>
                        <auto_boost>N/A</auto_boost>
                        <auto_boost_default>N/A</auto_boost_default>
                </clock_policy>
                <supported_clocks>N/A</supported_clocks>
                <processes>
                        <process_info>
                                <pid>9555</pid>
                                <type>C</type>
                                <process_name>/usr/lib/plexmediaserver/Plex Transcoder</process_name>
                                <used_memory>289 MiB</used_memory>
                        </process_info>
                </processes>
                <accounted_processes>
                </accounted_processes>
        </gpu>

 

8 hours ago, b3rs3rk said:

I can only speak from my limited dataset of two machines, but it should always show a wattage with the default being 0W.  Can you attach the result of "nvidia-smi -q -x" from your UnRAID console?  Feel free to remove the device serial number/GPU GUID before attaching it.  Attaching a snippet of what your dashboard plugin is displaying may also be helpful.

 

Just 'forced' a HW transcode via Plex.  Using the CLI watch nvidia-smi shows that it's using the GPU.  However, the plug-in on the dashboard reflects no change as far as power draw:

image.png.a78d7d979b691ca3476a5ad9884711be.png

 

 

 

Edited by CoZ
left out information that was requested

Share this post


Link to post

https://stackoverflow.com/questions/47679472/nvidia-smi-nvml-power-usage-not-supported

It would seem there are other instances of 1050s not reporting power draw. Also some instances out there where users report certain driver versions broke some of this reporting for some cards. We’d probably need someone else with a 1050 to confirm it. Either way, if that data doesn’t get reported my code does not have access to any other method at this time.

We might be able to try a test with the NVML library but I will have to check if they have it for PHP.


Sent from my iPhone using Tapatalk

Share this post


Link to post

is there a minimum driver or unraid version for this plugin?  i am on 6.7.0 and have been using a 1050 to hw transcode for quite some time -- but after installing this plugin it doesnt seem to do anything, nothing appears on the dashboard?

 

ps i can confirm that my 1050 reports N/A / 75w

i think the lower end cards dont report power usage as my VM utilized 1070 reports fine

Share this post


Link to post
Posted (edited)
10 hours ago, therapist said:

is there a minimum driver or unraid version for this plugin?  i am on 6.7.0 and have been using a 1050 to hw transcode for quite some time -- but after installing this plugin it doesnt seem to do anything, nothing appears on the dashboard?

 

ps i can confirm that my 1050 reports N/A / 75w

i think the lower end cards dont report power usage as my VM utilized 1070 reports fine

I don't think there is a minimum version other than having an Unraid-Nvidia build running.  All of the functions I used in PHP are at least 5.x plus and UnRAID is currently 7.x.

 

That being said, my guess is you're reaching a program error due to the dual video cards in your system if nothing is displaying at all.  I will need two things from you to fix this:

 

1) the output of nvidia-smi -q -x

2) the output of:

 

cd /usr/local/emhttp/plugins/gpustat
php ./gpustatus.php

It should echo out a JSON string or an error depending upon what's happening.  Again, as my first post stated I did not have the ability to test more than one GPU being installed.  You can help me blaze the trail with this info!

Edited by b3rs3rk

Share this post


Link to post
12 hours ago, b3rs3rk said:

https://stackoverflow.com/questions/47679472/nvidia-smi-nvml-power-usage-not-supported

It would seem there are other instances of 1050s not reporting power draw. Also some instances out there where users report certain driver versions broke some of this reporting for some cards. We’d probably need someone else with a 1050 to confirm it. Either way, if that data doesn’t get reported my code does not have access to any other method at this time.

We might be able to try a test with the NVML library but I will have to check if they have it for PHP.


Sent from my iPhone using Tapatalk

No worries. Either way, power draw displayed or not, it's a great plug-in!  I just wanted to make sure that it wasn't ME that screwed something up installing it. 

;)

Share this post


Link to post
2 hours ago, b3rs3rk said:

1) the output of nvidia-smi -q -x

root@OCHO:~# nvidia-smi -q -x
<?xml version="1.0" ?>
<!DOCTYPE nvidia_smi_log SYSTEM "nvsmi_device_v10.dtd">
<nvidia_smi_log>
        <timestamp>Sun Mar  8 10:00:09 2020</timestamp>
        <driver_version>418.56</driver_version>
        <cuda_version>10.1</cuda_version>
        <attached_gpus>1</attached_gpus>
        <gpu id="00000000:03:00.0">
                <product_name>GeForce GTX 1050 Ti</product_name>
                <product_brand>GeForce</product_brand>
                <display_mode>Disabled</display_mode>
                <display_active>Disabled</display_active>
                <persistence_mode>Disabled</persistence_mode>
                <accounting_mode>Disabled</accounting_mode>
                <accounting_mode_buffer_size>4000</accounting_mode_buffer_size>
                <driver_model>
                        <current_dm>N/A</current_dm>
                        <pending_dm>N/A</pending_dm>
                </driver_model>
                <serial>N/A</serial>
                <uuid>GPU-44ed723b-7f9c-07da-236b-347ab81deddf</uuid>
                <minor_number>0</minor_number>
                <vbios_version>86.07.39.00.30</vbios_version>
                <multigpu_board>No</multigpu_board>
                <board_id>0x300</board_id>
                <gpu_part_number>N/A</gpu_part_number>
                <inforom_version>
                        <img_version>G001.0000.01.04</img_version>
                        <oem_object>1.1</oem_object>
                        <ecc_object>N/A</ecc_object>
                        <pwr_object>N/A</pwr_object>
                </inforom_version>
                <gpu_operation_mode>
                        <current_gom>N/A</current_gom>
                        <pending_gom>N/A</pending_gom>
                </gpu_operation_mode>
                <gpu_virtualization_mode>
                        <virtualization_mode>None</virtualization_mode>
                </gpu_virtualization_mode>
                <ibmnpu>
                        <relaxed_ordering_mode>N/A</relaxed_ordering_mode>
                </ibmnpu>
                <pci>
                        <pci_bus>03</pci_bus>
                        <pci_device>00</pci_device>
                        <pci_domain>0000</pci_domain>
                        <pci_device_id>1C8210DE</pci_device_id>
                        <pci_bus_id>00000000:03:00.0</pci_bus_id>
                        <pci_sub_system_id>A45419DA</pci_sub_system_id>
                        <pci_gpu_link_info>
                                <pcie_gen>
                                        <max_link_gen>3</max_link_gen>
                                        <current_link_gen>3</current_link_gen>
                                </pcie_gen>
                                <link_widths>
                                        <max_link_width>16x</max_link_width>
                                        <current_link_width>16x</current_link_width>
                                </link_widths>
                        </pci_gpu_link_info>
                        <pci_bridge_chip>
                                <bridge_chip_type>N/A</bridge_chip_type>
                                <bridge_chip_fw>N/A</bridge_chip_fw>
                        </pci_bridge_chip>
                        <replay_counter>0</replay_counter>
                        <replay_rollover_counter>0</replay_rollover_counter>
                        <tx_util>0 KB/s</tx_util>
                        <rx_util>12000 KB/s</rx_util>
                </pci>
                <fan_speed>51 %</fan_speed>
                <performance_state>P0</performance_state>
                <clocks_throttle_reasons>
                        <clocks_throttle_reason_gpu_idle>Not Active</clocks_throttle_reason_gpu_idle>
                        <clocks_throttle_reason_applications_clocks_setting>Not Active</clocks_throttle_reason_applications_clocks_setting>
                        <clocks_throttle_reason_sw_power_cap>Not Active</clocks_throttle_reason_sw_power_cap>
                        <clocks_throttle_reason_hw_slowdown>Not Active</clocks_throttle_reason_hw_slowdown>
                        <clocks_throttle_reason_hw_thermal_slowdown>Not Active</clocks_throttle_reason_hw_thermal_slowdown>
                        <clocks_throttle_reason_hw_power_brake_slowdown>Not Active</clocks_throttle_reason_hw_power_brake_slowdown>
                        <clocks_throttle_reason_sync_boost>Not Active</clocks_throttle_reason_sync_boost>
                        <clocks_throttle_reason_sw_thermal_slowdown>Not Active</clocks_throttle_reason_sw_thermal_slowdown>
                        <clocks_throttle_reason_display_clocks_setting>Not Active</clocks_throttle_reason_display_clocks_setting>
                </clocks_throttle_reasons>
                <fb_memory_usage>
                        <total>4040 MiB</total>
                        <used>286 MiB</used>
                        <free>3754 MiB</free>
                </fb_memory_usage>
                <bar1_memory_usage>
                        <total>256 MiB</total>
                        <used>2 MiB</used>
                        <free>254 MiB</free>
                </bar1_memory_usage>
                <compute_mode>Default</compute_mode>
                <utilization>
                        <gpu_util>0 %</gpu_util>
                        <memory_util>0 %</memory_util>
                        <encoder_util>0 %</encoder_util>
                        <decoder_util>2 %</decoder_util>
                </utilization>
                <encoder_stats>
                        <session_count>0</session_count>
                        <average_fps>0</average_fps>
                        <average_latency>0</average_latency>
                </encoder_stats>
                <fbc_stats>
                        <session_count>0</session_count>
                        <average_fps>0</average_fps>
                        <average_latency>0</average_latency>
                </fbc_stats>
                <ecc_mode>
                        <current_ecc>N/A</current_ecc>
                        <pending_ecc>N/A</pending_ecc>
                </ecc_mode>
                <ecc_errors>
                        <volatile>
                                <single_bit>
                                        <device_memory>N/A</device_memory>
                                        <register_file>N/A</register_file>
                                        <l1_cache>N/A</l1_cache>
                                        <l2_cache>N/A</l2_cache>
                                        <texture_memory>N/A</texture_memory>
                                        <texture_shm>N/A</texture_shm>
                                        <cbu>N/A</cbu>
                                        <total>N/A</total>
                                </single_bit>
                                <double_bit>
                                        <device_memory>N/A</device_memory>
                                        <register_file>N/A</register_file>
                                        <l1_cache>N/A</l1_cache>
                                        <l2_cache>N/A</l2_cache>
                                        <texture_memory>N/A</texture_memory>
                                        <texture_shm>N/A</texture_shm>
                                        <cbu>N/A</cbu>
                                        <total>N/A</total>
                                </double_bit>
                        </volatile>
                        <aggregate>
                                <single_bit>
                                        <device_memory>N/A</device_memory>
                                        <register_file>N/A</register_file>
                                        <l1_cache>N/A</l1_cache>
                                        <l2_cache>N/A</l2_cache>
                                        <texture_memory>N/A</texture_memory>
                                        <texture_shm>N/A</texture_shm>
                                        <cbu>N/A</cbu>
                                        <total>N/A</total>
                                </single_bit>
                                <double_bit>
                                        <device_memory>N/A</device_memory>
                                        <register_file>N/A</register_file>
                                        <l1_cache>N/A</l1_cache>
                                        <l2_cache>N/A</l2_cache>
                                        <texture_memory>N/A</texture_memory>
                                        <texture_shm>N/A</texture_shm>
                                        <cbu>N/A</cbu>
                                        <total>N/A</total>
                                </double_bit>
                        </aggregate>
                </ecc_errors>
                <retired_pages>
                        <multiple_single_bit_retirement>
                                <retired_count>N/A</retired_count>
                                <retired_pagelist>N/A</retired_pagelist>
                        </multiple_single_bit_retirement>
                        <double_bit_retirement>
                                <retired_count>N/A</retired_count>
                                <retired_pagelist>N/A</retired_pagelist>
                        </double_bit_retirement>
                        <pending_retirement>N/A</pending_retirement>
                </retired_pages>
                <temperature>
                        <gpu_temp>45 C</gpu_temp>
                        <gpu_temp_max_threshold>102 C</gpu_temp_max_threshold>
                        <gpu_temp_slow_threshold>99 C</gpu_temp_slow_threshold>
                        <gpu_temp_max_gpu_threshold>N/A</gpu_temp_max_gpu_threshold>
                        <memory_temp>N/A</memory_temp>
                        <gpu_temp_max_mem_threshold>N/A</gpu_temp_max_mem_threshold>
                </temperature>
                <power_readings>
                        <power_state>P0</power_state>
                        <power_management>Supported</power_management>
                        <power_draw>N/A</power_draw>
                        <power_limit>75.00 W</power_limit>
                        <default_power_limit>75.00 W</default_power_limit>
                        <enforced_power_limit>75.00 W</enforced_power_limit>
                        <min_power_limit>52.50 W</min_power_limit>
                        <max_power_limit>75.00 W</max_power_limit>
                </power_readings>
                <clocks>
                        <graphics_clock>1746 MHz</graphics_clock>
                        <sm_clock>1746 MHz</sm_clock>
                        <mem_clock>3504 MHz</mem_clock>
                        <video_clock>1569 MHz</video_clock>
                </clocks>
                <applications_clocks>
                        <graphics_clock>N/A</graphics_clock>
                        <mem_clock>N/A</mem_clock>
                </applications_clocks>
                <default_applications_clocks>
                        <graphics_clock>N/A</graphics_clock>
                        <mem_clock>N/A</mem_clock>
                </default_applications_clocks>
                <max_clocks>
                        <graphics_clock>1923 MHz</graphics_clock>
                        <sm_clock>1923 MHz</sm_clock>
                        <mem_clock>3504 MHz</mem_clock>
                        <video_clock>1708 MHz</video_clock>
                </max_clocks>
                <max_customer_boost_clocks>
                        <graphics_clock>N/A</graphics_clock>
                </max_customer_boost_clocks>
                <clock_policy>
                        <auto_boost>N/A</auto_boost>
                        <auto_boost_default>N/A</auto_boost_default>
                </clock_policy>
                <supported_clocks>N/A</supported_clocks>
                <processes>
                        <process_info>
                                <pid>10067</pid>
                                <type>C</type>
                                <process_name>/usr/lib/plexmediaserver/Plex Transcoder</process_name>
                                <used_memory>276 MiB</used_memory>
                        </process_info>
                </processes>
                <accounted_processes>
                </accounted_processes>
        </gpu>

</nvidia_smi_log>
root@OCHO:~#

 

2 hours ago, b3rs3rk said:

2) the output of:

 


cd /usr/local/emhttp/plugins/gpustat
php ./gpustat.php

 

root@OCHO:~# cd /usr/local/emhttp/plugins/gpustat
root@OCHO:/usr/local/emhttp/plugins/gpustat# php ./gpustat.php
Could not open input file: ./gpustat.php
root@OCHO:/usr/local/emhttp/plugins/gpustat# ls
GPUStatSettings.page  gpustatus.page  icons/   license/
README.md             gpustatus.php   images/
root@OCHO:/usr/local/emhttp/plugins/gpustat# php ./gpustatus.php
{"name":"GeForce GTX 1050 Ti","util":"0%","memutil":"0%","temp":"43C","fan":"51%","power":"N\/A","encoders":1,"vendor":"nVidia"}root@OCHO:/usr/local/emhttp/plugins/gpustat#

I think you may have a typo somewhere which is causing my issue?

Share this post


Link to post
4 minutes ago, therapist said:

 

I think you may have a typo somewhere which is causing my issue?

 

My fault, I put an old filename in there but you found the right one.  What's interesting is that your GPU is using the decoder/frame buffer when transcoding.  I must admit I'm new to this, so I may have to calculate this differently or represent it differently in the plugin.  Can you attach a screen snip of the dashboard plugin because everything should be displaying based on the JSON output you provided.

Share this post


Link to post
1 minute ago, b3rs3rk said:

 

My fault, I put an old filename in there but you found the right one.  What's interesting is that your GPU is using the decoder/frame buffer when transcoding.  I must admit I'm new to this, so I may have to calculate this differently or represent it differently in the plugin.  Can you attach a screen snip of the dashboard plugin because everything should be displaying based on the JSON output you provided.

that the funny thing --- it doesnt show up on my dash

 

3.thumb.jpg.dcf770a3c07e0a6aa98191724b27f840.jpg

 

 

its in the page map, but when i click there its literally a blank page

4.thumb.jpg.e6715c05ca76e37ddadf5f484d3b8518.jpg

Share this post


Link to post
8 minutes ago, therapist said:

that the funny thing --- it doesnt show up on my dash...

...its in the page map, but when i click there its literally a blank page

 

Every plugin I've seen so far that adds a dashboard widget has only blank pages in the page map under that section so this should be normal.  I have three extra widgets (mine, corsairpsu, and disk location) and on my 6.8.2 system all of those dashboard section pages come up blank.  Don't think that is cause for concern.

 

Did you check the very top of the first section on the dashboard?  It isn't going to load down at the bottom because of the sort numbers of the default widgets.  You can move it to the bottom which will store in a user cookie and be semi-persistent.

Share this post


Link to post
4 minutes ago, b3rs3rk said:

Every plugin I've seen so far that adds a dashboard widget has only blank pages in the page map under that section so this should be normal.  I have three extra widgets (mine, corsairpsu, and disk location) and on my 6.8.2 system all of those dashboard section pages come up blank.  Don't think that is cause for concern.

 

Did you check the very top of the first section on the dashboard?  It isn't going to load down at the bottom because of the sort numbers of the default widgets.  You can move it to the bottom which will store in a user cookie and be semi-persistent.

My NUT & IPMI summary dash show up, but no GPU

Immediately under those are the default widgets

Share this post


Link to post

It must not be including the page for some reason.  Check /var/log/nginx/error.log for any errors that may help me.  Also view the source of the dashboard page and send me that as well.

Share this post


Link to post
29 minutes ago, b3rs3rk said:

It must not be including the page for some reason.  Check /var/log/nginx/error.log for any errors that may help me.  Also view the source of the dashboard page and send me that as well.

2020/03/08 10:13:45 [error] 17316#17316: *5876683 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.1.4, server: , request: "GET /usr/local/emhttp/plugins/gpustat/gpustatus.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "8357a7086dfbe113cb69d62fbf03b2cb7f5d8e39.unraid.net", referrer: "https://8357a7086dfbe113cb69d62fbf03b2cb7f5d8e39.unraid.net/Dashboard"
2020/03/08 10:14:58 [error] 17316#17316: *5876683 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.1.4, server: , request: "GET /usr/local/emhttp/plugins/gpustat/gpustatus.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "8357a7086dfbe113cb69d62fbf03b2cb7f5d8e39.unraid.net", referrer: "https://8357a7086dfbe113cb69d62fbf03b2cb7f5d8e39.unraid.net/gpustatus"

 

page source.txt

Share this post


Link to post

I think I see what's happening.  At least a part of it.  If you look in the source you attached, you'll see my code is there at the bottom of the page.  It's just not being displayed.  I think that's because my plugin does not inject it inline with box1 like your other plugins.  I believe that's the old way to do it before it was sortable.

 

This is what the dashboard table for the leftmost panel looks like in 6.8.2:

<table id='db-box1' class='share_status dashboard box1'>

In 6.7, there is no table id set:

<table class='share_status dashboard box1'>

In order to render my table data within UnRAID's default box1, we have to append it with JavaScript:

$(function() {
  // append data from the table into the correct one
  $("#db-box1").append($(".dash_gpustat").html());

  // reload toggle to get the correct state
  toggleView('dash_gpustat_toggle', true);

  // reload sorting to get the stored data (cookie)
  sortTable($('#db-box1'),$.cookie('db-box1'));
});

The JS is trying to append it to ID db-box1, but can't because it doesn't exist in 6.7.

 

According to the announcement notes, 6.7.1 is likely when they switched over to the new dashboard sorting format.  For now, I'm probably going to change my minimum UnRAID version to 6.7.1 in lieu of making this backwards compatible.  I would uninstall the plugin and try again once you've upgraded to 6.7.1+ and go from there.

 

 

 

Share this post


Link to post

Not that this has anything to do with the plug-in but I really wish they would let you customize the columns / rows on the dashboard a bit more.  You can only move the 'tiles' up or down, not to the left and right as well.

Share this post


Link to post

Nice update to the Plug-In,  I like the layout much better this way @b3rs3rk

Share this post


Link to post

Dude this is an awesome plugin!!!  I love it!  Works great on 6.8rc7 with my P2000.

 

Think you could add more detail on the vram usage?  Instead of just a percentage, the actual amount used/available would be amazing to have.  Plex transcodes are often limited by vram so knowing that would be helpful. 

 

And, maybe as a stretch goal, the ability to customize what shows up?  Like for example I wouldn't care to see clock speeds.

Share this post


Link to post

I'd like the ability to have Fahrenheit if at all possible instead of Celsius.

Share this post


Link to post
Posted (edited)
2 hours ago, CoZ said:

I'd like the ability to have Fahrenheit if at all possible instead of Celsius.

Should be simple enough.  I will add it to the list of options I plan to implement in the next release.

 

EDIT:  It's been added.  Will be available when I release the next plugin version.  Default is Celsius but you can change it on the settings page.

Edited by b3rs3rk

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.