yaneurao / YaneuraOu

YaneuraOu is the World's Strongest Shogi engine(AI player) , WCSC29 1st winner , educational and USI compliant engine.
GNU General Public License v3.0
524 stars 140 forks source link

A suspected memory leak has occurred. #252

Closed KohakuBlueleaf closed 2 years ago

KohakuBlueleaf commented 2 years ago

I use the fukauraou 7.61 with TensorRT and use the model from dlshogi. I leave all setting default. with 32GB ram and RTX3090. At first it consume about 3GB which is make sense, but the memory it consume will increase slowly(about 50~80MB per second). Finally It will consume more than 16GB of memory after several minute. And no matter how many step I move the memory consumption is just increasing.

Althougth this situation doesn't affect anything at first, but it will cause a crash of system after it consume more than the memory I have.

Task Manager: image Program Folder: image

yaneurao commented 2 years ago

but the memory it consume will increase slowly(about 50~80MB per second).

This is normal behavior. dlshogi behaves that way too.

Since the latest version is V7.63, could you please try with V7.63? If you do the same thing with dlshogi, will the memory consumption continue to increase?

KohakuBlueleaf commented 2 years ago

@yaneurao Sorry I notice what I missed. Since fukauraou and dlshogi use AlphaZero-like algo, there is a MCTS tree in it. And this tree will grow up when searching so the memory consuming will increase. So, yes, this is normal.

yaneurao commented 2 years ago

I understand.

If the memory consumption does not decrease after the next move is made, then it is a bug. (V7.60 had this bug. There might still be that kind of bug. If so, please let me know.)

I'll close this issue.