Re: [sage-devel] why sagemath creates so many file in TMPDIR and how to prevent this?

2023-08-15 Thread Michael Orlitzky
On Tue, 2023-08-15 at 08:09 -0700, 'Nasser M. Abbasi' via sage-devel wrote: > Here is the basic flow of the script: (this is not the real script but > a stripped down version) > For now at least, initializing the sage library creates one directory under /tmp where all of sage's other temporary

Re: [sage-devel] why sagemath creates so many file in TMPDIR and how to prevent this?

2023-08-15 Thread John H Palmieri
For what it's worth, the `alarm` function (provided by the cysignals package) allows for interrupting a command after a given amount of time. sage: alarm? Signature: alarm(seconds) Call signature: alarm(*args, **kwargs) Type: cython_function_or_method String form: File:

Re: [sage-devel] why sagemath creates so many file in TMPDIR and how to prevent this?

2023-08-15 Thread 'Nasser M. Abbasi' via sage-devel
May be it is Python's multiprocessing then?. The script does a LOOP calling integrate command. But it does each call in separate process, using Python's MP. Each command seems to create few folders. I just did one command and saw these created: rwx-- 2 me me4096 Aug 15

Re: [sage-devel] why sagemath creates so many file in TMPDIR and how to prevent this?

2023-08-15 Thread Michael Orlitzky
On Tue, 2023-08-15 at 03:33 -0700, 'Nasser M. Abbasi' via sage-devel wrote: > Each time I run a sagemath script, I see 10's of thousands of files created > in my TMPDIR which I have to keep manually deleting. There aren't too many parts of sage that use temporary files. What's the script doing?

[sage-devel] why sagemath creates so many file in TMPDIR and how to prevent this?

2023-08-15 Thread 'Nasser M. Abbasi' via sage-devel
Each time I run a sagemath script, I see 10's of thousands of files created in my TMPDIR which I have to keep manually deleting. I am using sagemath on Linux under Virtual box. In my .bashrc I set export TMPDIR=/home/me/TMP/ Each start I start sagemath and run commands in loop, it starts