Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paillier内存泄露 #29

Open
jieheroli opened this issue Jun 9, 2022 · 1 comment
Open

Paillier内存泄露 #29

jieheroli opened this issue Jun 9, 2022 · 1 comment

Comments

@jieheroli
Copy link

运行demo发现内存在持续增长,经多番排查初步定位是Paillier内存泄露。单独把Paillier模块抽出来进行验证,确实有内存泄露的现象,请问官方有观察到这个现象吗?(用大数据集比如criteo进行测试)

@JacobiSong
Copy link
Collaborator

同态加密使用了gmplib高精度运算库。
这个内存持续增长的现象目前被认为是gmplib内置了一套内存管理机制,由gmplib申请的内存不会被及时释放,而是由gmplib决定何时释放。在C++代码中尝试过解决该问题,但目前只是起到了缓解的作用。
由于目前测试的模型训练时间不是很长,所以尚不清楚这个持续增长现象是否会一直持续下去还是会达到一个临界值。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants