free slabs during shutdown
commit788031e3e29a0a8ea82a6ea999671c095b157a21
authorBin Liu <binliu@fb.com>
Wed, 7 Jul 2021 15:24:36 +0000 (7 08:24 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 7 Jul 2021 15:26:45 +0000 (7 08:26 -0700)
treeea40ad8975536b1a46ccc8da83be2a3a1ab56686
parent067e7fccb18262de08c574cd344f50017e3b6d5b
free slabs during shutdown

Summary: MemoryManager may grab slabs from SlabManager, which often manages a list of slabs from hugetlb pages.  When the server is about to shutdown (but is still finishing ongoing requests), we want to free the hugetlb pages faster.

Reviewed By: ottoni

Differential Revision: D29352348

fbshipit-source-id: 0322d4692da7207571fa7e302fea77d1ad1f94b6
hphp/runtime/base/memory-manager.h
hphp/runtime/base/sparse-heap.cpp
hphp/runtime/server/http-server.cpp
hphp/util/alloc.cpp
hphp/util/alloc.h
hphp/util/slab-manager.h