How to check amount of memory pinning used by cuda and driver
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!!