Stephen WithersGuest
We often run out of swap on our linux kdb server, memory never seems to be freed.
Is there anyway to force Kdb to free memory without restarting it?
Hi Stephen,
What version of kdb are you running? as your options vary a lot depending on version.
We have a tutorial on kdb memory usage that should give you insight into where your memory is being used particularly garbage collection:
http://www.timestored.com/kdb-guides/memory-management#garbage_collection
Example of heap space only being freed after calling the garbage collector:
q)b:10000000?100.
q).Q.w[]`used`heap
134352896 201326592
q)b:1
q).Q.w[]`used`heap
135184 201326592
q).Q.gc[]
134217728
q).Q.w[]`used`heap
135184 67108864