Some users are filling up the tmp directory of our lab server with R stuff. Best approach?

(sorry, more R than Julia, but actually pretty general question…)

Hello, I manage a “computational server” in our lab (Ubuntu 22.04), and noticed that some users are filling up very quickly the tmp folder with terabytes of “Rtmpxxxxx” stuff. They are using a RStudio server I have provided them using their browser.

What approach would you suggest to avoid this? Set up a quota on the / filesystem (there is already one in place on /home) ? Try to understand with the affected user what the hell their script or library is doing (it is something about raster data analysis) ? cron a script to clean /tmp every X seconds ?

1 Like

Ended up cleaning /tmp based on access time (2 days) using tmpreaper and moving R temp directory to ~/tmp ( echo "TMPDIR = /home/user/tmp" > /home/user/.Renviron)

3 Likes