@elcritch, @Araq, @termer

I was wrong about GC. This issue related to the kernel. I found the way how to 
release freed ram by GCback.
    
    
    proc malloc_trim*(size: csize_t): cint {.importc, varargs, header: 
"malloc.h", discardable.}
    
    Run

Usage example:
    
    
    discard malloc_trim(0.csize_t)
    
    
    Run

More info:

`https://man7.org/linux/man-pages/man3/malloc_trim.3.html`

P.S. from 11.2GB it dropped Resident ram to 3.2GB (processed data with little 
overhead)

Reply via email to