I'm writing 2 text files using FORTRAN each file being 50 MB and I'm opening both files simultaneously and writing.
I find that the tiem taken for writing is perhaps taking longer.
What could be the rpoblem?Can anyoen help
Christy
Welcome to our forums
I'm writing 2 text files using FORTRAN each file being 50 MB and I'm opening both files simultaneously and writing.
I find that the tiem taken for writing is perhaps taking longer.
What could be the rpoblem?Can anyoen help
Christy
Please can anyone help?
If you can provide a short sample program, help may be available.
I have 2 files to which I'm writing soem information, they are both text files
open (file_1)
write...I write information to furst file
open (file_2
write...I write info to second file
do something......
again write info to first file
write info to second file
Could there be a problem if I write info simultaneously?
The files are just 50 MB each
Christy
Can you post small working prototype code which measures time for writing two files consequently versus writing two files simultaneously?
Yes.
Simultaneosly- 19 minutes
If I generate just one of any of the two files 3 minutes
That is unusual indeed unless you write on punchcards, lineprinter or use 40 years old floppy disks LOL.
Post as Paul said above small 20 lines working code demonstrating that difference which we can run on our computers. It takes 3 min to write it. Don't be shy of your code style or dumb errors, we all make mistakes.
Or if the code is tricky to extract small snippet, run the whole code on free Qsoft RAMdrive which has speed 5 GB per second, 10-100 times faster then any harddrive or SSD, and see if this was a hardware issue.