add tmpdir to use /var/tmp instead of /tmp to avoid tmpfs/swap