Hello there,
Is there anyway I can force the garbage collection to release the idle memory? I could call runtime.GC(), but that routine only mark what memory is not inuse. I still have to wait 5 min defined in mheap.c for the memory to return. I hope I could force the runtime to return the idle memory immediately.
A little bit more background. I am doing something like a merge sort with data size larger than my memory. Since it is not a in-place algorithm, I have to keep make a new slice to merge old two, and hope garbage collector could return the old two back to system memory. If the return in not in time, it will cause more trips to disk which significantly degrade the performance. That's why I hope the idle memory shown by "scvg: GC forced" could be released immediately.
Thanks a lot.
Cheers,
Zheng
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
golang-nuts...@googlegroups.com.
For more options, visit
https://groups.google.com/groups/opt_out.