Skip to content

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

@n0099

Description

@n0099

从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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions