You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This do a dump to a temp file and then move it to the destination. This is safer in case of a crash during the dump. But it cause problem as by default save the tmp file under /tmp. If there is a crash, this will left over file there and would consume space in a shared directory. THis is bad. Also, it is possible that this path don't have enough memory.
Also, the move if they aren't on the same partition will take times and could crash too.
A much better default tmp directory is the same directory as the destination. The user should have checked there is enough space there. He will see the partial dump in case of crash or ctrl-C of the job so would do the clean up. It will prevent a copy between partition. You just need to use a different file name, and appending some (maybe random) letters to the file name of the destination file.
This caused problemes many times already. This is not just theoretical problems.
The text was updated successfully, but these errors were encountered:
I wouldn't append random letters but just do what e.g. Chrome does when downloading, and add a suffix like .dump at the end. This avoids a situation in which the user ends up with many partial dump files taking up lots of space.
On Wed, Aug 17, 2016 at 10:50 AM, Bart van Merriënboer < [email protected]> wrote:
I wouldn't append random letters but just do what e.g. Chrome does when
downloading, and add a suffix like .dump at the end. This avoids a
situation in which the user ends up with many partial dump files taking up
lots of space.
https://github.com/mila-udem/blocks/blob/master/blocks/serialization.py#L226
This do a dump to a temp file and then move it to the destination. This is safer in case of a crash during the dump. But it cause problem as by default save the tmp file under /tmp. If there is a crash, this will left over file there and would consume space in a shared directory. THis is bad. Also, it is possible that this path don't have enough memory.
Also, the move if they aren't on the same partition will take times and could crash too.
A much better default tmp directory is the same directory as the destination. The user should have checked there is enough space there. He will see the partial dump in case of crash or ctrl-C of the job so would do the clean up. It will prevent a copy between partition. You just need to use a different file name, and appending some (maybe random) letters to the file name of the destination file.
This caused problemes many times already. This is not just theoretical problems.
The text was updated successfully, but these errors were encountered: