RenderToolbox / RenderToolbox3

Matlab toolbox for managing graphics rendering for psychophysics
Other
5 stars 2 forks source link

Output file size checking #22

Closed benjamin-heasly closed 8 years ago

benjamin-heasly commented 9 years ago

Issue by DavidBrainard Sunday Jan 05, 2014 at 14:58 GMT Originally opened as https://github.com/DavidBrainard/RenderToolbox3/issues/50


RTB3 does not contain any mechanisms for predicting and then warning about setting loose renderings that might fill up the entire disk with large files. If we could figure out a reasonable way to implement such error checking, it might save some headaches. A workaround is to point RTB3 output at a disk that does not contain the system, so that filling it will not crash the computer.

benjamin-heasly commented 9 years ago

Comment by npcottaris Monday Jan 06, 2014 at 14:50 GMT


An alternative mechanism is to monitor free hard disk space before each rendering and to alert the user / suspend execution if the free space falls below a threshold value, say 1GByte. This would be useful for users with a single hard disk.

On Jan 5, 2014, at 9:58 AM, David Brainard notifications@github.com wrote:

RTB3 does not contain any mechanisms for predicting and then warning about setting loose renderings that might fill up the entire disk with large files. If we could figure out a reasonable way to implement such error checking, it might save some headaches. A workaround is to point RTB3 output at a disk that does not contain the system, so that filling it will not crash the computer.

— Reply to this email directly or view it on GitHub.

benjamin-heasly commented 9 years ago

Comment by benjamin-heasly Friday Jan 10, 2014 at 15:17 GMT


I did a little bit of checking on how we might monitor free disk space. I don't see a built-in Matlab way to do this, but maybe I missed it?

On Unix-like systems, I think we can use the df command (http://unixhelp.ed.ac.uk/CGI/man-cgi?df). Something like this should work, and then we'd have scan the output: system('df -f')

On Windows, we might be able to use the wmic command, which I've never tried (http://serverfault.com/questions/68300/check-free-disk-space-using-batch-commands). Something like this, maybe: system('wmic logicaldisk where "DeviceID=''C:''" get FreeSpace')

benjamin-heasly commented 8 years ago

Closing this to clean up the issue list.