The limit is entirely managed by Windows, and a typical limit is 50% of system memory. Sorry, I don’t have further details to share. No the limit is not 50% of system memory in all cases. I don’t have further details to share. I don’t have or know of any mechanisms to modify or override the observed limit, and the NVIDIA driver doesn’t control or set the limit.
I don’t have any permission to explain exactly how the driver pins memory, or confirm any of the speculation in this thread.
Because of additional WSL2->WDDM machinery that I don’t have permission to describe, the pinning limits on WSL2 are likely to be lower than what you would observe strictly on the windows side.
You’re welcome to file a bug to either 1. request additional documentation in this area, or 2. to “increase the limit”. Based on the information I have available to me, for the reasons already indicated, bugs along the line of 2 are unlikely to be actionable.