|
[Sponsors] |
February 28, 2003, 08:22 |
RAMFILES 1 or 0 ?
|
#1 |
Guest
Posts: n/a
|
Hi, does anybody know what is the difference in writing the temporary files to the disc (RAMFILES 1) or not writing (RAMFILES 0) ? At least it takes some space when the files are written to the disc but other than that, are there any pros if not writing the temporary files to the disc ?
|
|
February 28, 2003, 10:52 |
Re: RAMFILES 1 or 0 ?
|
#2 |
Guest
Posts: n/a
|
Hey Ossi.
If not writing them to disk, you have to keep them somewhere. They will be kept in RAM, thats why the fuction is called RAMFILES. It will be significant faster to keep the files in memory, but unfortunately you will need very much physical memory (depending on the size of the job). Greetings, Marc |
|
February 28, 2003, 10:59 |
Re: RAMFILES 1 or 0 ?
|
#3 |
Guest
Posts: n/a
|
Thanks ! Ossi
|
|
February 28, 2003, 11:25 |
Re: RAMFILES 1 or 0 ?
|
#4 |
Guest
Posts: n/a
|
If you're doing some really Noddy model for testing purposes (a few hundred cells perhaps), RAMFILES=1 really speeds things up.
|
|
March 1, 2003, 01:17 |
Re: RAMFILES 1 or 0 ?
|
#5 |
Guest
Posts: n/a
|
At any rate, you wouldn't want to run out of RAM. Things become really slow (by one to two orders or magnitude) when the temporary data 'spills' over to your hard disk swap file(s).
So at the limiting condition of having barely enough RAM, is it better to have RAMFILES=1 or =0? |
|
March 1, 2003, 14:50 |
Re: RAMFILES 1 or 0 ?
|
#6 |
Guest
Posts: n/a
|
Using ramfiles is as fast or faster than not when you do not run out of physical memory. If you run out of physical memory and start swapping, then using ramfiles is usually significantly worse. The reason is that the data put on the scratch files is put there intelligiently when its not likely to be used for a while. If you just let the system swap, it really cannot match the intelligience of a programmer who knows exactly what data is needed and when. If your are marginal on ram, I would suggest not using ramfiles.
|
|
March 2, 2003, 02:38 |
Re: RAMFILES 1 or 0 ?
|
#7 |
Guest
Posts: n/a
|
Makes sense... otherwise why have the RAMFILES variable at all?
|
|
|
|