Hi guys,
I ran small test (loading big data into memory and processing)
And I used debug.FreeOSMemory() to clear memory after using those data.
I ran 2 test each for 1.4 compiler and 1.5b1 compiler.
In 1.4, whenever I call FreeOSMemory, the allocated memory went down.
However with 1.5, it seems like debug.FreeOSMemory doesn't do anything.
Is there some change I need to make?
Thank you
with 1.4 compiler
[ INFO ] 15:27:16 Job started
[ INFO ] 15:27:16 Input file process started
[ INFO ] 15:28:11 2,005,289 records loaded
[ INFO ] 15:28:11 Memory allocated: 7129.02 MB
[ INFO ] 15:28:11 Cleaning memory
[ INFO ] 15:28:29 Memory usage after cleaning: 6175.7MB
[ INFO ] 15:28:30 Detail calculation finished for requirement 4vi
[ INFO ] 15:28:31 Detail calculation finished for requirement 4vii
[ INFO ] 15:28:32 Detail calculation finished for requirement 4v
[ INFO ] 15:28:34 Detail calculation finished for requirement 4ii & 4ii-a
[ INFO ] 15:28:34 All detail calculation finished
[ INFO ] 15:28:34 Memory allocated: 6180.92 MB
[ INFO ] 15:28:34 Cleaning memory
[ INFO ] 15:28:51 Memory allocated: 5677.43 MB
[ INFO ] 15:28:51 Printing reports started
[ INFO ] 15:28:51 Writing files
[ INFO ] 15:28:52 Cleaning memory
[ INFO ] 15:28:53 Memory allocated: 0.05 MB
[ INFO ] 15:28:53 Job finished
with 1.5 compiler
[ INFO ] 15:29:04 Job started
[ INFO ] 15:29:04 Input file process started
[ INFO ] 15:30:11 2,005,289 records loaded
[ INFO ] 15:30:11 Memory allocated: 6861.63 MB
[ INFO ] 15:30:11 Cleaning memory
[ INFO ] 15:30:21 Memory usage after cleaning: 6175.7MB
[ INFO ] 15:30:22 Detail calculation finished for requirement 4vi
[ INFO ] 15:30:23 Detail calculation finished for requirement 4vii
[ INFO ] 15:30:23 Detail calculation finished for requirement 4v
[ INFO ] 15:30:25 Detail calculation finished for requirement 4ii & 4ii-a
[ INFO ] 15:30:25 All detail calculation finished
[ INFO ] 15:30:26 Memory allocated: 6259.62 MB
[ INFO ] 15:30:26 Cleaning memory
[ INFO ] 15:30:35 Memory allocated: 6175.69 MB
[ INFO ] 15:30:35 Printing reports started
[ INFO ] 15:30:35 Writing files
[ INFO ] 15:30:36 Cleaning memory
[ INFO ] 15:30:46 Memory allocated: 6175.69 MB
[ INFO ] 15:30:46 Job finished