-------- Forwarded Message -------- From: João Gorenstein Dedecca <[email protected]> To: Heinrich Schuchardt <[email protected]> Cc: Andrew Makhorin <[email protected]>, [email protected] Subject: Re: [Bug-glpk] [Fwd: Windows appdata write error - Permission denied] Date: Tue, 26 Jul 2016 14:11:42 +0200
Hi Heinrich, Looking further into the issue I think I am seeing a memory leak in the GLPK tempfile creation. Every tempfile creates a 4K page table memory leak which accumulates and results in insufficient memory space. Hence I don't think it is an existing file conflict. I will investigate further and post if I find a solution. Best, João On Mon, Jul 25, 2016 at 12:28 AM, Heinrich Schuchardt <[email protected]> wrote: Hello João, this seems to be a problem that is not related to GLPK but to the generation of temporary file names in your Python code. Could it be that you try to create a file that is already in use? You could append os.getpid() to the file name to make sure that two processes do not use the same temporary file. Best regards Heinrich Schuchardt On 07/23/2016 01:37 PM, Andrew Makhorin wrote: > -------- Forwarded Message -------- > Subject: Windows appdata write error - Permission denied > Date: Sat, 23 Jul 2016 10:21:17 +0200 > > Hi, > I am running an optimization problem in python using pyomo 4.3.11388 and > the GLPK solver 4.57 on Windows 7. While running 8 calls in parallel > with multiprocessing.Pool GLPK has a rare write problem to the \Users > \user\AppData\Local\Temp folder: This happens only once out of more than > thousands of successful runs. Anyone can help? Thanks! > ERROR: "[base]\site-packages\pyomo\opt\base\solvers.py", 575, solve > Solver log: GLPSOL: GLPK LP/MIP Solver, v4.57 Parameter(s) specified in > the command line: --write C:\Users\JGOREN~1\AppData\Local\Temp > \tmp4fo_8eqx.glpk.raw --wglp C:\Users\JGOREN~1\AppData\Local \Temp > \tmps7viej_q.glpk.glp --cpxlp C:\Users\JGOREN~1\AppData\Local \Temp > \tmpjnqvqljx.pyomo.lp Reading problem data from 'C:\Users \JGOREN~1 > \AppData\Local\Temp\tmpjnqvqljx.pyomo.lp'... 25 rows, 45 columns, 69 > non-zeros 223 lines were read Writing problem data to 'C: \Users\JGOREN~1 > \AppData\Local\Temp\tmps7viej_q.glpk.glp'... Unable to create 'C:\Users > \JGOREN~1\AppData\Local\Temp\tmps7viej_q.glpk.glp' - Permission denied > Unable to write problem in GLPK format > > > > > > _______________________________________________ > Bug-glpk mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/bug-glpk > _______________________________________________ Bug-glpk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-glpk
