| /rocksdb-6.9/table/plain/ |
| D | plain_table_bloom.cc | 20 (total_bits + CACHE_LINE_SIZE * 8 - 1) / (CACHE_LINE_SIZE * 8); in GetTotalBitsForLocality() 28 return num_blocks * (CACHE_LINE_SIZE * 8); in GetTotalBitsForLocality() 48 kNumBlocks = (locality > 0) ? (kTotalBits / (CACHE_LINE_SIZE * 8)) : 0; in SetTotalBits() 55 sz += CACHE_LINE_SIZE - 1; in SetTotalBits() 61 auto cache_line_offset = reinterpret_cast<uintptr_t>(raw) % CACHE_LINE_SIZE; in SetTotalBits() 63 raw += CACHE_LINE_SIZE - cache_line_offset; in SetTotalBits()
|
| D | plain_table_bloom.h | 72 folly::constexpr_log2(CACHE_LINE_SIZE);
|
| /rocksdb-6.9/port/ |
| D | port_posix.h | 184 #ifndef CACHE_LINE_SIZE 189 #define CACHE_LINE_SIZE TEST_CACHE_LINE_SIZE macro 193 #define CACHE_LINE_SIZE 256U macro 195 #define CACHE_LINE_SIZE 128U macro 197 #define CACHE_LINE_SIZE 64U macro 203 static_assert((CACHE_LINE_SIZE & (CACHE_LINE_SIZE - 1)) == 0,
|
| D | port_posix.cc | 210 errno = posix_memalign(&m, CACHE_LINE_SIZE, size); in cacheline_aligned_alloc()
|
| /rocksdb-6.9/util/ |
| D | bloom_test.cc | 508 #if CACHE_LINE_SIZE == 64 in SelectByCacheLineSize() 510 #elif CACHE_LINE_SIZE == 128 in SelectByCacheLineSize() 512 #elif CACHE_LINE_SIZE == 256 in SelectByCacheLineSize() 791 OpenRaw(cft.Reset(CACHE_LINE_SIZE, 1, 6, fill)); in TEST_P() 808 OpenRaw(cft.Reset(CACHE_LINE_SIZE, 1, 30, fill)); in TEST_P() 814 OpenRaw(cft.Reset(CACHE_LINE_SIZE, 1, 1, fill)); in TEST_P() 819 OpenRaw(cft.Reset(CACHE_LINE_SIZE, 1, 0, fill)); in TEST_P() 840 OpenRaw(cft.Reset(CACHE_LINE_SIZE, 0, 6, fill)); in TEST_P() 875 OpenRaw(cft.Reset(CACHE_LINE_SIZE, 1, 31, fill)); in TEST_P() 881 OpenRaw(cft.Reset(CACHE_LINE_SIZE, 1, 127, fill)); in TEST_P() [all …]
|
| D | compression_context_cache.cc | 33 padding[(CACHE_LINE_SIZE - 35 CACHE_LINE_SIZE)]; // unused padding field 64 static_assert(sizeof(ZSTDCachedData) % CACHE_LINE_SIZE == 0,
|
| D | dynamic_bloom_test.cc | 67 DynamicBloom bloom2(&arena, CACHE_LINE_SIZE * 8 * 2 - 1, 2); in TEST_F() 82 DynamicBloom bloom2(&arena, CACHE_LINE_SIZE * 8 * 2 - 1, 2); in TEST_F() 101 DynamicBloom bloom2(&arena, CACHE_LINE_SIZE * 8 * 2 - 1, 2); in TEST_F()
|
| /rocksdb-6.9/monitoring/ |
| D | statistics.h | 83 struct ALIGN_AS(CACHE_LINE_SIZE) StatisticsData { in ALIGN_AS() argument 88 padding[(CACHE_LINE_SIZE - in ALIGN_AS() 91 CACHE_LINE_SIZE)] ROCKSDB_FIELD_UNUSED; in ALIGN_AS() 99 …static_assert(sizeof(StatisticsData) % CACHE_LINE_SIZE == 0, "Expected " TOSTRING(CACHE_LINE_SIZE)…
|
| /rocksdb-6.9/table/block_based/ |
| D | filter_policy.cc | 314 (total_bits + CACHE_LINE_SIZE * 8 - 1) / (CACHE_LINE_SIZE * 8); in GetTotalBitsForLocality() 321 return num_lines * (CACHE_LINE_SIZE * 8); in GetTotalBitsForLocality() 332 *num_lines = *total_bits / (CACHE_LINE_SIZE * 8); in CalculateSpace() 379 folly::constexpr_log2(CACHE_LINE_SIZE)); in AddHash() 655 if (num_lines * CACHE_LINE_SIZE == len) { in GetFilterBitsReader() 657 log2_cache_line_size = folly::constexpr_log2(CACHE_LINE_SIZE); in GetFilterBitsReader()
|
| D | partitioned_filter_block_test.cc | 99 return num_keys * bits_per_key_ + (CACHE_LINE_SIZE * 8 + /*metadata*/ 5); in MaxFilterSize()
|
| /rocksdb-6.9/port/win/ |
| D | port_win.h | 242 #ifndef CACHE_LINE_SIZE 243 #define CACHE_LINE_SIZE 64U macro 254 return jemalloc_aligned_alloc(size, CACHE_LINE_SIZE); in cacheline_aligned_alloc() 256 return _aligned_malloc(size, CACHE_LINE_SIZE); in cacheline_aligned_alloc()
|
| /rocksdb-6.9/table/cuckoo/ |
| D | cuckoo_table_reader.cc | 29 const uint64_t CACHE_LINE_MASK = ~((uint64_t)CACHE_LINE_SIZE - 1); 194 for (addr &= CACHE_LINE_MASK; addr < end_addr; addr += CACHE_LINE_SIZE) { in Prepare()
|
| /rocksdb-6.9/cache/ |
| D | lru_cache.h | 194 class ALIGN_AS(CACHE_LINE_SIZE) LRUCacheShard final : public CacheShard { in ALIGN_AS() argument
|
| /rocksdb-6.9/db/ |
| D | plain_table_db_test.cc | 851 } else if (CACHE_LINE_SIZE == 64U) { in TEST_P() 853 } else if (CACHE_LINE_SIZE == 128U) { in TEST_P() 856 ASSERT_EQ(CACHE_LINE_SIZE, 256U); in TEST_P()
|
| D | db_properties_test.cc | 215 double filter_size_bias = CACHE_LINE_SIZE >= 256 ? 0.15 : 0.1, in VerifyTableProperties() 269 /*average-ish overhead*/ CACHE_LINE_SIZE / 2); in GetExpectedTableProperties()
|