creating memory snapshot with named pipe