How to check amount of memory pinning used by cuda and driver

이하운 0 Reputation points
2023-03-31T00:01:34.2433333+00:00

In an ongoing project, GPU cuda or some device driver services use the ability to pin memory so that the memory you are currently installing does not page swap.

The cuda uses the cudaHostAlloc() function and the kernel driver uses the mmProbeAndLockPages function.

I need to use memory in such a way that it's not swapped with virtual memory but always resides in physical memory, and I'm wondering if there's a way to see what area the memory allocated in this way is in and how much it's allocated.

Currently, I'm trying to allocate about 128GB of these functions and check them on RamMap or Process Explorer, but I don't think it's possible to check them. I would appreciate it if you could share how if anyone knows!!

Developer technologies | C++
Developer technologies | Visual Studio | Other
Developer technologies | C#
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.