Dear all,
I tried to run LES
Dear all,
I tried to run LES with timeVaryingMappedPatch However, I got the following error Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' -------------------------------------------- I found some information from the website: Step 1: Find out the current limit To find out the current file descripter limit for a given use, log in as the particular user and run the following command. $ ulimit -n By default on Debian it would be 1024. Step 2: Increase the limit You would have to edit /etc/security/limits.conf. You will find details on how to setup different limits in limits.conf itself. The record that you have to put in should look like the following. username hard nofile 2048 Step 3: Log out and Log back in You would have to log out and log back in as the user that we updated the file descripter limit. Then run the following command. $ ulimit -n You should see the updated file descripter limit. ------------------------------------------------ However, the solution above is for general Linux case. Now, it is related to OpenFOAM. Does anyone what happen to this? Can I continue? Regards, Ivan |
Hi Ivan!
Hi Ivan!
<bernhard> Are you using by any chance PyFoam to run your solver? Because the error and the message looks suspiciously like something PyFoam would say when it has to open a huge lot of files in the analyzed directory. Usually because it can't tell one timestep from the next and therefor opens a new file for (for instance) for every solver call. So it might be a PyFoam problem. If so: could you tell me which solver it is (some have a different format for "Time = 3.45" and then PyFoam can't distinguish time-steps) and could you check whether for consecutive time-steps the "Time = " LEXICALLY differs (for instance with "Time = 1.000456" and a time-step of 10^-7 the next timestep might print "Time = 1.000456" too) Bernhard |
Hi, Bernhard,
You are so ri
Hi, Bernhard,
You are so right! I use your pyFoamPlotRunner.py script to run LES (solver = oodles). My time step = 0.0005s and write interval = 0.005s This error start to around 1.2s (I resume the run from 0.5s). The consecutive time step should be ok as I allow enough significant number. Anyway, I hope this is helpful. Thanks for your quick reply. Please advise what I should do as I plan to stop the solver and run from the previous steps. Should I restart from the "first" time step that has this error? Or, can I let it continue from last time step? Regards, Ivan -- A sample log is as the follow: -- Time = 1.2735 Courant Number mean: 0.00055676365 max: 0.65250404 Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' Updating boundary gradient of U::outlet by CrankNicholson and normal schemes Saving old-time boundary values of U::outlet Boundary gradient of U::outlet has already been updated Boundary gradient of U::outlet has already been updated DILUPBiCG: Solving for Ux, Initial residual = 0.00022111803, Final residual = 3.7128709e-09, No Iterations 1 Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' DILUPBiCG: Solving for Uy, Initial residual = 0.003009986, Final residual = 6.0641951e-08, No Iterations 1 DILUPBiCG: Solving for Uz, Initial residual = 0.0021211077, Final residual = 3.167597e-08, No Iterations 1 Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' GAMG: Solving for p, Initial residual = 0.067676383, Final residual = 9.03386e-07, No Iterations 94 GAMG: Solving for p, Initial residual = 8.6775994e-07, Final residual = 8.6775994e-07, No Iterations 0 GAMG: Solving for p, Initial residual = 8.6775994e-07, Final residual = 8.6775994e-07, No Iterations 0 time step continuity errors : sum local = 1.1017799e-12, global = 1.3554078e-13, cumulative = -5.9256848e-12 Updating boundary gradient of U::outlet by CrankNicholson and normal schemes GAMG: Solving for p, Initial residual = 9.1227694e-05, Final residual = 9.7391603e-07, No Iterations 9 GAMG: Solving for p, Initial residual = 9.7391419e-07, Final residual = 9.7391419e-07, No Iterations 0 GAMG: Solving for p, Initial residual = 9.7391419e-07, Final residual = 9.7391419e-07, No Iterations 0 time step continuity errors : sum local = 1.2365641e-12, global = -2.2237115e-13, cumulative = -6.148056e-12 Updating boundary gradient of U::outlet by CrankNicholson and normal schemes ExecutionTime = 103027.35 s ClockTime = 105399 s Calculating averages Time = 1.274 Courant Number mean: 0.00055674882 max: 0.65367521 Updating boundary gradient of U::outlet by CrankNicholson and normal schemes Saving old-time boundary values of U::outlet Boundary gradient of U::outlet has already been updated Boundary gradient of U::outlet has already been updated DILUPBiCG: Solving for Ux, Initial residual = 0.00023278593, Final residual = 3.8494851e-09, No Iterations 1 DILUPBiCG: Solving for Uy, Initial residual = 0.0030740255, Final residual = 6.0290512e-08, No Iterations 1 DILUPBiCG: Solving for Uz, Initial residual = 0.002194585, Final residual = 3.2188904e-08, No Iterations 1 GAMG: Solving for p, Initial residual = 0.058895772, Final residual = 8.8040836e-07, No Iterations 86 GAMG: Solving for p, Initial residual = 8.6251892e-07, Final residual = 8.6251892e-07, No Iterations 0 GAMG: Solving for p, Initial residual = 8.6251892e-07, Final residual = 8.6251892e-07, No Iterations 0 time step continuity errors : sum local = 1.1464957e-12, global = -1.298191e-13, cumulative = -6.2778751e-12 Updating boundary gradient of U::outlet by CrankNicholson and normal schemes GAMG: Solving for p, Initial residual = 8.5971209e-05, Final residual = 8.7121062e-07, No Iterations 10 GAMG: Solving for p, Initial residual = 8.7121287e-07, Final residual = 8.7121287e-07, No Iterations 0 GAMG: Solving for p, Initial residual = 8.7121287e-07, Final residual = 8.7121287e-07, No Iterations 0 time step continuity errors : sum local = 1.1580491e-12, global = -2.3653425e-13, cumulative = -6.5144093e-12 Updating boundary gradient of U::outlet by CrankNicholson and normal schemes ExecutionTime = 103084.46 s ClockTime = 105456 s Calculating averages Time = 1.2745 Courant Number mean: 0.00055674721 max: 0.65478406 Updating boundary gradient of U::outlet by CrankNicholson and normal schemes Saving old-time boundary values of U::outlet Boundary gradient of U::outlet has already been updated Boundary gradient of U::outlet has already been updated Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' DILUPBiCG: Solving for Ux, Initial residual = 0.0002272263, Final residual = 3.7851613e-09, No Iterations 1 DILUPBiCG: Solving for Uy, Initial residual = 0.0030371887, Final residual = 5.9868971e-08, No Iterations 1 DILUPBiCG: Solving for Uz, Initial residual = 0.002188867, Final residual = 3.1912482e-08, No Iterations 1 Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' Getting LinuxMem: [Errno 24] Too many open files: '/proc/28165/status' GAMG: Solving for p, Initial residual = 0.053964779, Final residual = 9.4404547e-07, No Iterations 76 GAMG: Solving for p, Initial residual = 9.215077e-07, Final residual = 9.215077e-07, No Iterations 0 GAMG: Solving for p, Initial residual = 9.215077e-07, Final residual = 9.215077e-07, No Iterations 0 time step continuity errors : sum local = 1.2835445e-12, global = 1.4119057e-13, cumulative = -6.3732188e-12 Updating boundary gradient of U::outlet by CrankNicholson and normal schemes GAMG: Solving for p, Initial residual = 8.0300075e-05, Final residual = 8.6677323e-07, No Iterations 10 GAMG: Solving for p, Initial residual = 8.6677062e-07, Final residual = 8.6677062e-07, No Iterations 0 GAMG: Solving for p, Initial residual = 8.6677062e-07, Final residual = 8.6677062e-07, No Iterations 0 time step continuity errors : sum local = 1.2073061e-12, global = 2.3840291e-13, cumulative = -6.1348159e-12 Updating boundary gradient of U::outlet by CrankNicholson and normal schemes ExecutionTime = 103137.21 s ClockTime = 105509 s |
Hi Ivan!
Restart shouldn't
Hi Ivan!
Restart shouldn't be a problem. Could you check the PyFoamRunner.oodles.analyzed-directory (name may be slightly different depending on the PyFoam-Version) how many files are there (my suspcion is it should be hundreds for that error to occur). Which options are you using for the Runner? Are you using a customRegexp-file? Does the same error occur when you do "pyFoamPlotWatcher.py PyFoamRunner.oodles.logfile" (again: fileame may be slightly different) Strange. Bernhard |
Hi Bernhard,
Sorry, I didn'
Hi Bernhard,
Sorry, I didn't notice your reply and I was working on something else during this period. I restarted it too without using pyFoamPlotRunner.py! ulimit -n gives me 1024 which is default. Yes, it is over 1024, and this is the error. I didn't set any option, I just do pyFoamPlotRunner.py (not pyFoamPlotWatcher.py) mpirun --hostfile ... oodles -parallel Oops! As my harddrive was full, I cleaned up and lost that folder. Sorry. Regards, ivan |
Hi Bernhard,
I just stumbled over the problems mentioned above. The PyFoamRunner crashed with error "IOError: [Errno 24] Too many open files". Here are the last log lines. Code:
Time = 1.99539 If you need additional information just tell. Regards, Jean-Peer |
Quote:
Try this to fix this: set timePrecision in system/controlDict to a higher value (9 should be sufficient for your case). This should (never tried it) give you more digits of the time and thus the chance to distinguish the time-steps Bernhard |
All times are GMT -4. The time now is 10:36. |