wsfull memory swap full - Kdb+ / qStudio

Home Forums Kdb+ / qStudio wsfull memory swap full

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #137

    Stephen Withers
    Guest

    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?

    #153

    Ryan Hamilton
    Keymaster

    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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.