We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f07f668 commit 7eef396Copy full SHA for 7eef396
cachelib/allocator/tests/AllocatorMemoryTiersTest.h
@@ -96,10 +96,13 @@ class AllocatorMemoryTiersTest : public AllocatorTest<AllocatorT> {
96
ASSERT_NE(nullptr, handle);
97
const uint8_t cid = allocator->getAllocInfo(handle->getMemory()).classId;
98
99
- //wait for bg movers
100
- std::this_thread::sleep_for(std::chrono::seconds(1));
101
102
auto stats = allocator->getGlobalCacheStats();
+ while (stats.evictionStats.runCount < 1) {
+ std::this_thread::sleep_for(std::chrono::seconds(1));
103
+ stats = allocator->getGlobalCacheStats();
104
+ }
105
+
106
auto perclassEstats = allocator->getBackgroundMoverClassStats(MoverDir::Evict);
107
auto perclassPstats = allocator->getBackgroundMoverClassStats(MoverDir::Promote);
108
0 commit comments