I am Anbarasan and I am new to perlmonks.
Problem: My script hangs during execution.
Objective: I read a file (trace file of a simulation), parse it and calculate values. This trace file is the input to my script.
Scenario where no problem occur:I have small trace file (with 800 lines) and run my script on that. The script produces the desired output.
Scenario where problem occurs: The trace file is big (approx: 100MB) and the program stops at some point. I use another trace file which is around 80MB the program runs for some more time (than the 100MB file) and freezes.
If I use another trace file which is approximately 107MB the program freezes very quickly.
I am using SUSE Linux and I use System Monitor. Before running the program CPU utilization is fine but after I run the program, when the program freezes, CPU utilization reaches 100% in one of the CPUs (I see 2 CPUs CPU0 and CPU1). The CPU is normal.
Kindly help me to make my program work.
If needed I can share the code with you.