You can get and set the name of the temporary directory used to create VM files using xmemory_settmpdir() and xmemory_gettmpdir(). See the documentation in xmemory.h about these two functions.