I am aware of that patch, having written it, but thank you
After some further testing it does seem to be just Wine that I encounter the issue with. Running WoW, logging in, and exiting in a loop causes the memory usage to rise steadily.
Apparently something is not releasing all its resources, becuase I noticed that I was unable to kldunload nvidia after stopping the X server. I normally can do that even after having used X for a while, as long as I stop everything first.
Is there any way to get a debug dump of what resources the nvidia driver is holding and what process it thinks they're associated with?