Home
last modified time | relevance | path

Searched refs:CACHE_LINE_SIZE (Results 1 – 15 of 15) sorted by relevance

/rocksdb-6.9/table/plain/
Dplain_table_bloom.cc20 (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()
Dplain_table_bloom.h72 folly::constexpr_log2(CACHE_LINE_SIZE);
/rocksdb-6.9/port/
Dport_posix.h184 #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,
Dport_posix.cc210 errno = posix_memalign(&m, CACHE_LINE_SIZE, size); in cacheline_aligned_alloc()
/rocksdb-6.9/util/
Dbloom_test.cc508 #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 …]
Dcompression_context_cache.cc33 padding[(CACHE_LINE_SIZE -
35 CACHE_LINE_SIZE)]; // unused padding field
64 static_assert(sizeof(ZSTDCachedData) % CACHE_LINE_SIZE == 0,
Ddynamic_bloom_test.cc67 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/
Dstatistics.h83 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/
Dfilter_policy.cc314 (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()
Dpartitioned_filter_block_test.cc99 return num_keys * bits_per_key_ + (CACHE_LINE_SIZE * 8 + /*metadata*/ 5); in MaxFilterSize()
/rocksdb-6.9/port/win/
Dport_win.h242 #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/
Dcuckoo_table_reader.cc29 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/
Dlru_cache.h194 class ALIGN_AS(CACHE_LINE_SIZE) LRUCacheShard final : public CacheShard { in ALIGN_AS() argument
/rocksdb-6.9/db/
Dplain_table_db_test.cc851 } 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()
Ddb_properties_test.cc215 double filter_size_bias = CACHE_LINE_SIZE >= 256 ? 0.15 : 0.1, in VerifyTableProperties()
269 /*average-ish overhead*/ CACHE_LINE_SIZE / 2); in GetExpectedTableProperties()