Hi Mat,
This thread might well be in the wrong forum section, so please feel free to move it if needed. Unfortunately, this time I don’t have a minimal reproducible example, so I’ll try to explain what is happening as best as I can.
We have this Fortran code that uses OpenMP offloading and managed memory. With driver versions 590.44.01 and 590.48.01, its performance is more than 3x worse than it was with version 580.105.08. This is fully reproducible: I can, while using the exact same machine and binary, upgrade to 590.48.01 with the expected performance hit and rollback to 580.105.08 (without changing anything else) to regain performance. I’ve noticed that the number of unified memory copies - especially from device to host - has increased dramatically, though, interestingly, the total size of moved data actually (slightly) decreases with the newer driver.
580.105.08:
** CUDA GPU MemOps Summary (by Time) (cuda_gpu_mem_time_sum):
Time (%) Total Time (ns) Count Avg (ns) Med (ns) Min (ns) Max (ns) StdDev (ns) Operation
-------- --------------- ------- -------- -------- -------- -------- ----------- ------------------------------------
60.6 2,233,133,820 858,153 2,602.3 2,111.0 1,951 102,944 2,087.9 [CUDA memcpy Unified Host-to-Device]
24.6 905,466,170 203,701 4,445.1 2,431.0 1,791 36,352 4,583.6 [CUDA memcpy Unified Device-to-Host]
7.8 286,461,272 317,236 903.0 896.0 800 2,976 65.7 [CUDA memcpy Host-to-Device]
7.1 262,724,932 127,246 2,064.7 2,080.0 1,601 3,713 80.4 [CUDA memcpy Device-to-Host]
0.0 1,664 2 832.0 832.0 800 864 45.3 [CUDA memset]
** CUDA GPU MemOps Summary (by Size) (cuda_gpu_mem_size_sum):
Total (MB) Count Avg (MB) Med (MB) Min (MB) Max (MB) StdDev (MB) Operation
---------- ------- -------- -------- -------- -------- ----------- ------------------------------------
28,124.111 858,153 0.033 0.008 0.004 1.044 0.086 [CUDA memcpy Unified Host-to-Device]
24,682.500 203,701 0.121 0.004 0.004 1.044 0.240 [CUDA memcpy Unified Device-to-Host]
196.298 317,236 0.001 0.000 0.000 0.031 0.001 [CUDA memcpy Host-to-Device]
156.386 127,246 0.001 0.002 0.000 0.031 0.001 [CUDA memcpy Device-to-Host]
0.000 2 0.000 0.000 0.000 0.000 0.000 [CUDA memset]
** OS Runtime Summary (osrt_sum):
Time (%) Total Time (ns) Num Calls Avg (ns) Med (ns) Min (ns) Max (ns) StdDev (ns) Name
-------- --------------- --------- --------------- --------------- ------------- ------------- ------------ ----------------------
63.9 38,052,444,945 2,010 18,931,564.6 10,066,212.0 1,000 132,625,963 27,797,520.2 poll
33.6 20,000,386,527 5 4,000,077,305.4 4,000,082,735.0 4,000,050,875 4,000,087,666 14,964.6 pthread_cond_timedwait
1.8 1,083,504,024 75 14,446,720.3 17,281,522.0 1,030 29,850,115 13,174,035.7 pthread_mutex_lock
** CUDA API Summary (cuda_api_sum):
Time (%) Total Time (ns) Num Calls Avg (ns) Med (ns) Min (ns) Max (ns) StdDev (ns) Name
-------- --------------- --------- ------------ ------------ ---------- ---------- ----------- --------------------
54.2 4,397,323,702 146,172 30,083.2 1,290.0 1,080 46,908,555 721,274.2 cuStreamSynchronize
34.0 2,763,496,327 127,246 21,717.7 8,930.0 8,110 7,592,592 163,780.6 cuMemcpyDtoHAsync_v2
7.1 580,236,577 317,236 1,829.0 1,740.0 1,350 117,571 751.2 cuMemcpyHtoDAsync_v2
4.0 328,275,778 146,172 2,245.8 2,110.0 1,630 131,051 894.7 cuLaunchKernel
590.48.01:
** CUDA GPU MemOps Summary (by Time) (cuda_gpu_mem_time_sum):
Time (%) Total Time (ns) Count Avg (ns) Med (ns) Min (ns) Max (ns) StdDev (ns) Operation
-------- --------------- --------- -------- -------- -------- -------- ----------- ------------------------------------
47.6 2,959,088,626 1,203,472 2,458.8 2,144.0 1,664 34,624 1,803.3 [CUDA memcpy Unified Device-to-Host]
43.6 2,710,120,248 1,095,510 2,473.8 2,111.0 1,951 86,016 1,799.5 [CUDA memcpy Unified Host-to-Device]
4.6 286,505,898 317,236 903.1 896.0 800 2,816 65.8 [CUDA memcpy Host-to-Device]
4.2 263,187,667 127,246 2,068.3 2,080.0 1,632 3,936 85.4 [CUDA memcpy Device-to-Host]
0.0 1,664 2 832.0 832.0 800 864 45.3 [CUDA memset]
** CUDA GPU MemOps Summary (by Size) (cuda_gpu_mem_size_sum):
Total (MB) Count Avg (MB) Med (MB) Min (MB) Max (MB) StdDev (MB) Operation
---------- --------- -------- -------- -------- -------- ----------- ------------------------------------
27,319.493 1,095,510 0.025 0.008 0.004 1.044 0.073 [CUDA memcpy Unified Host-to-Device]
23,706.038 1,203,472 0.020 0.004 0.004 1.044 0.099 [CUDA memcpy Unified Device-to-Host]
196.298 317,236 0.001 0.000 0.000 0.031 0.001 [CUDA memcpy Host-to-Device]
156.386 127,246 0.001 0.002 0.000 0.031 0.001 [CUDA memcpy Device-to-Host]
0.000 2 0.000 0.000 0.000 0.000 0.000 [CUDA memset]
** OS Runtime Summary (osrt_sum):
Time (%) Total Time (ns) Num Calls Avg (ns) Med (ns) Min (ns) Max (ns) StdDev (ns) Name
-------- --------------- --------- --------------- --------------- ------------- ------------- ------------ ----------------------
73.9 196,954,899,272 7,349 26,800,231.2 10,066,376.0 1,020 106,505,496 35,510,825.6 poll
25.5 68,001,308,749 17 4,000,076,985.2 4,000,075,087.0 4,000,045,466 4,000,098,837 12,827.9 pthread_cond_timedwait
0.4 1,116,295,844 81 13,781,430.2 13,668,450.0 1,010 31,144,623 13,067,462.0 pthread_mutex_lock
** CUDA API Summary (cuda_api_sum):
Time (%) Total Time (ns) Num Calls Avg (ns) Med (ns) Min (ns) Max (ns) StdDev (ns) Name
-------- --------------- --------- ------------ ------------ ---------- ---------- ----------- --------------------
50.4 5,256,400,779 146,172 35,960.4 1,290.0 1,080 82,768,070 839,761.3 cuStreamSynchronize
40.4 4,211,911,778 127,246 33,100.5 8,900.0 8,120 53,519,053 323,280.1 cuMemcpyDtoHAsync_v2
5.6 584,016,632 317,236 1,841.0 1,760.0 1,370 134,121 762.6 cuMemcpyHtoDAsync_v2
3.2 334,288,149 146,172 2,287.0 2,150.0 1,700 130,070 971.0 cuLaunchKernel
Let me know if you need any more information.

