diff options
author | Radoslaw Zarzynski <rzarzyns@redhat.com> | 2020-06-16 15:25:10 +0200 |
---|---|---|
committer | Radoslaw Zarzynski <rzarzyns@redhat.com> | 2020-06-23 10:16:31 +0200 |
commit | b55919071fc872d880bebe70bc270b9d66d02ab0 (patch) | |
tree | 4a32d74e3b8f494ce572dbb8293ba273f7d77adf /src/common/Thread.cc | |
parent | os/bluestore: configure Seastar's allocator for RocksDB's threads. (diff) | |
download | ceph-b55919071fc872d880bebe70bc270b9d66d02ab0.tar.xz ceph-b55919071fc872d880bebe70bc270b9d66d02ab0.zip |
common/Thread: configure Seastar's memory allocator.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Diffstat (limited to 'src/common/Thread.cc')
-rw-r--r-- | src/common/Thread.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/Thread.cc b/src/common/Thread.cc index 45451040c4a..ccee3bc84d9 100644 --- a/src/common/Thread.cc +++ b/src/common/Thread.cc @@ -18,6 +18,10 @@ #include <sys/syscall.h> /* For SYS_xxx definitions */ #endif +#ifdef WITH_SEASTAR +#include "crimson/os/alienstore/alien_store.h" +#endif + #include "common/Thread.h" #include "common/code_environment.h" #include "common/debug.h" @@ -81,6 +85,9 @@ void *Thread::entry_wrapper() _set_affinity(cpuid); ceph_pthread_setname(pthread_self(), thread_name); +#ifdef WITH_SEASTAR + crimson::os::AlienStore::configure_thread_memory(); +#endif return entry(); } |