|
[Sponsors] |
January 12, 2010, 11:21 |
wmkdep: too many open-files
|
#1 |
New Member
Patrick Begou
Join Date: Mar 2009
Location: Grenoble, France
Posts: 17
Rep Power: 17 |
I get a problem with wmkdep. This application recurse in the included file to build the dependance list for each file to compile. The algorithm opens many and many files (following the recursivly included files) and reach the system limits.
My default configuration was 100 open files in a session. I asked the admin for an increased limit up to 500, but 500 seams also to low for some OpenFOAM files ! Isn't it posible to modify this behavior of wmkdep ? On some super-computer with a lot of users, administrators may not accept to increase the maximum number of simultanous open files. OpenFOAM: OpenFOAM-1.6.x OS: Suse SLES10 Hardware: SGI Altix450 Patrick |
|
January 13, 2010, 07:47 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Bernhard |
||
January 13, 2010, 10:08 |
|
#3 |
New Member
Patrick Begou
Join Date: Mar 2009
Location: Grenoble, France
Posts: 17
Rep Power: 17 |
||
January 14, 2010, 03:58 |
|
#4 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
Instead of triggering nextFile() immediately for each "#'include" lex, you would simply add them into the linked-list. When the lexer hits the local EOF, you would then fclose() this file handle before walking through the list. For each name in the list, open it and repeat the procedure of lexing and creating the linked-list etc. You would retain the recursive behaviour, the hash table (to avoid unnecessary lookups) but only have a single file handle open ever. This would not only solve your problem, but if done correctly would also eliminate the current limit of 300 open files that is hard-coded in the wmkdep source. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 08:21 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 02:24 |
OpenFOAM with IBM AIX | matthias | OpenFOAM Installation | 20 | March 25, 2008 03:36 |
Results saving in CFD | hawk | Main CFD Forum | 16 | July 21, 2005 21:51 |
Open old files in a new Gambit version | toni | FLUENT | 2 | February 10, 2005 11:31 |