NVIDIA PerfKit has a linux version that allows real-time control of various video card properties, including the use of graphics card memory. Obviously, this only works for NVIDIA graphics cards, and also requires the use of a special instrumental driver.
user3317
source share