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

ubuntu2204+mkldnn下使用mimalloc替换掉glibc中的ptmalloc可节省50%内存 #67

Open
n0099 opened this issue Sep 7, 2023 · 4 comments

Comments

@n0099
Copy link
Contributor

n0099 commented Sep 7, 2023

从7.5GiB降到3.5GiB

image
image
image

git clone https://github.com/microsoft/mimalloc
cd mimalloc
mkdir -p out/release
cd out/release
cmake ../..
make
mv libmimalloc.so{.2.1,}
mv libmimalloc.so ../../../
MIMALLOC_VERBOSE=1 MIMALLOC_SHOW_STATS=1 MIMALLOC_SHOW_ERRORS=1 LD_PRELOAD=./libmimalloc.so your_dotnet_program

详见 https://z.n0099.net/#narrow/near/81317

@sdcb
Copy link
Owner

sdcb commented Sep 15, 2023

师傅,你是做什么工作的?

@n0099
Copy link
Contributor Author

n0099 commented Sep 15, 2023

@wangning08115
Copy link

很 牛逼啊

@xlg-go
Copy link

xlg-go commented Oct 24, 2023

相当可以

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

4 participants