It's a cool idea; as other posters have mentioned, there have been other projects mapping VRAM for swap, etc.<p>I'd personally be wary of putting anything too important into VRAM. About five years ago I did a bunch of work testing consumer GPU memory for reliability [1, 2]. Because until that time GPUs were primarily used for error-tolerant applications (graphics) storing only short-lived data (textures) in memory, there wasn't a whole lot of pressure to make sure the memory was as reliable as that found on the main system board. We found that indeed, there was a persistent, low level of memory errors that could be triggered depending on access pattern. I haven't followed up for recent generations, but the fact that the "professional" GPGPU boards both clock their memory slower and include hardware ECC is possible cause for concern with leaving anything too important on the GPU for a long time.<p>There's code [3,4], too, but I haven't actively worked on it in a few years, so no guarantees on how well it runs nowadays...<p>[1] <a href="http://cs.stanford.edu/people/ihaque/papers/gpuser.pdf" rel="nofollow">http://cs.stanford.edu/people/ihaque/papers/gpuser.pdf</a><p>[2] <a href="http://cs.stanford.edu/people/ihaque/talks/gpuser_lacss_oct_2010.pdf" rel="nofollow">http://cs.stanford.edu/people/ihaque/talks/gpuser_lacss_oct_...</a><p>[3] <a href="https://github.com/ihaque/memtestG80" rel="nofollow">https://github.com/ihaque/memtestG80</a><p>[4] <a href="https://github.com/ihaque/memtestCL" rel="nofollow">https://github.com/ihaque/memtestCL</a>