memory_usage_max

Issue #17 resolved
dsmic created an issue

I have it playing with pondering and every so moves it gives the warning and has only 4 playouts done. The moves are not the best ones in this cases:)

My limit is 1024

Comments (7)

  1. Francois van Niekerk repo owner
    • changed status to open

    When does it give the warning? While pondering? Or does it only do 4 playouts during the normal move search? What is the actually memory usage of Oakfoam when this happens? 1GB?

  2. dsmic reporter

    OK, I just turned off pondering, it is still present. My feeling is, that it is introduced with the multithreading optimizations.

    It happens during usual playout, the memory usage seems far below 1GB.

    unsigned long getTreeMemoryUsage() { return (params->tree_instances)*sizeof(Tree); };

    We may count till -1?????

    I only see it on my 4 core machine...

  3. Francois van Niekerk repo owner

    I removed the global mutex for tree_instances, and I reset it to zero when the tree is cleared, as I couldn't think of a time when memory is freed during a search, but I guess I was wrong. I will have a look at it now.

  4. dsmic reporter

    Seems ok, I could only do one game, my daughter has to sleep now (the computer is in her room)

    I had to play my own, nobody challenged it:) I lost and tested the kgs feature to win:)

  5. Francois van Niekerk repo owner

    Haha ok. I will leave the bug open for now, if it doesn't come up in the next while, I will assume the fix works.

  6. Log in to comment