cuda-samples icon indicating copy to clipboard operation
cuda-samples copied to clipboard

memory leak in memMapIpc

Open DualHappiness opened this issue 1 year ago • 1 comments

OS: Windows11 Platform: Visual Studio 2022 Debug X64 Version: NVIDIA-SMI 516.94 Driver Version: 516.94 CUDA Version: 11.7

In the sample memMapIPCDrv, seems like memory does not release to the OS (Both GPU memory and CPU memory) utile child process exit. Is this a bug? or I miss some cleanup?

PS.

  • I change DATA_BUF_SIZE to 4G.
  • I move the cuMemRelease in parent process ahead of waitProcess, and both child process and parent process pause just before call exit.

GPU before

GPU after

CPU

DualHappiness avatar Oct 09 '22 02:10 DualHappiness