Check for memory errors on NVIDIA GPUs

Revision for “Check for memory errors on NVIDIA GPUs” created on February 14, 2019 @ 13:10:35

TitleContentExcerpt
Check for memory errors on NVIDIA GPUs
Professional NVIDIA GPUs (the Tesla and Quadro products) are equipped with error-correcting code (ECC) memory, which allows the system to detect when memory errors occur. Smaller "single-bit" errors are transparently corrected. Larger "double-bit" memory errors will cause applications to crash, but are at least detected (GPUs without ECC memory would continue operating on the corrupted data).

There are conditions under which GPU events are reported to the Linux kernel, in which case you will see such errors in the <a href="https://www.microway.com/knowledge-center-articles/high-level-linux-troubleshooting/" rel="noopener" target="_blank">system logs</a>. However, the GPUs themselves will also store the type and date of the event.

<em>It’s important to note that not all ECC errors are due to hardware failures. Stray cosmic rays are known to cause bit flips. For this reason, memory is not considered "bad" when a single error occurs (or even when a number of errors occurs). <strong>If you have a device reporting tens or hundreds of Double Bit errors, please contact Microway tech support for review.</strong> You may also wish to review the <a href="https://docs.nvidia.com/deploy/dynamic-page-retirement/index.html" rel="noopener" target="_blank">NVIDIA documentation</a></em>

To review the current health of the GPUs in a system, use the nvidia-smi utility:
<pre>[root@node7 ~]# <strong>nvidia-smi -q -d PAGE_RETIREMENT</strong>

==============NVSMI LOG==============

Timestamp : Thu Feb 14 10:58:34 2019
Driver Version : 410.48

Attached GPUs : 4
GPU 00000000:18:00.0
Retired Pages
Single Bit ECC : 0
Double Bit ECC : 0
Pending : No

GPU 00000000:3B:00.0
Retired Pages
Single Bit ECC : 15
Double Bit ECC : 0
Pending : No
</pre>
<em>The output above shows one card with no issues and one card with a minor quantity of single-bit errors (the card is still functional and in operation).</em>

If the above report indicates that memory pages have been retired, then you may wish to see additional details (including when the pages were retired). If nvidia-smi reports <code>Pending: Yes</code>, then memory errors have occurred since the last time the system rebooted. In either case, there may be older page retirements that took place.

To review a complete listing of the GPU memory pages which have been retired (including the unique ID of each GPU), run:
<pre>[root@node7 ~]# <strong>nvidia-smi –query-retired-pages=gpu_uuid,retired_pages.address,retired_pages.cause –format=csv</strong>

gpu_uuid, retired_pages.address, retired_pages.cause
GPU-9fa5168d-97bf-98aa-33b9-45329682f627, 0x000000000005c05e, Single Bit ECC
GPU-9fa5168d-97bf-98aa-33b9-45329682f627, 0x000000000005ca0d, Single Bit ECC
GPU-9fa5168d-97bf-98aa-33b9-45329682f627, 0x000000000005c72e, Single Bit ECC

</pre>

A different type of output must be selected in order to read the timestamps of page retirements. The output is in XML format and may require a bit more effort to parse. In short, try running a report such as shown below:
<pre>[root@node7 ~]# <strong>nvidia-smi -i 1 -q -x| grep -i -A1 retired_page_addr</strong>

&lt;retired_page_address&gt;0x000000000005c05e&lt;/retired_page_address&gt;
&lt;retired_page_timestamp&gt;Mon Dec 18 06:25:25 2017&lt;/retired_page_timestamp&gt;

&lt;retired_page_address&gt;0x000000000005ca0d&lt;/retired_page_address&gt;
&lt;retired_page_timestamp&gt;Mon Dec 18 06:25:25 2017&lt;/retired_page_timestamp&gt;

&lt;retired_page_address&gt;0x000000000005c72e&lt;/retired_page_address&gt;
&lt;retired_page_timestamp&gt;Mon Dec 18 06:25:31 2017&lt;/retired_page_timestamp&gt;

</pre>



Old New Date Created Author Actions
February 14, 2019 @ 13:10:35 Eliot Eshelman
February 14, 2019 @ 13:09:46 Eliot Eshelman
February 14, 2019 @ 13:08:02 Eliot Eshelman
February 14, 2019 @ 11:43:05 Eliot Eshelman
February 14, 2019 @ 10:59:15 Eliot Eshelman

Comments are closed.