Skip to content

Commit e5f8df4

Browse files
Reduce cardinality (#579)
* Redude cardinalities * reduce test files --------- Co-authored-by: Brian Szmyd <[email protected]>
1 parent 2ca8fcc commit e5f8df4

File tree

13 files changed

+57
-27
lines changed

13 files changed

+57
-27
lines changed

.github/workflows/build_dependencies.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,13 @@ jobs:
164164
fail_on_cache_miss: true
165165
if: ${{ inputs.testing == 'True' && github.event_name != 'pull_request' && steps.restore-cache.outputs.cache-hit != 'true' }}
166166

167+
- name: Check disk space and mount
168+
run: |
169+
sudo mkdir -p /mnt/tmp
170+
sudo chmod 1777 /mnt/tmp
171+
sudo mount --bind /mnt/tmp /tmp
172+
df -h /tmp
173+
167174
- name: Code Coverage Run
168175
run: |
169176
conan install \
@@ -177,6 +184,13 @@ jobs:
177184
.
178185
conan build .
179186
if: ${{ inputs.testing == 'True' && inputs.platform == 'ubuntu-22.04' && inputs.build-type == 'Debug' && inputs.malloc-impl == 'libc' && inputs.prerelease == 'False' }}
187+
continue-on-error: true
188+
189+
- name: Check disk space if previous step failed
190+
if: failure() && steps.code_coverage_run.outcome == 'failure'
191+
run: |
192+
echo "Code Coverage Run. Checking disk space..."
193+
df -h
180194
181195
- name: Upload coverage reports to Codecov
182196
uses: codecov/codecov-action@v3
@@ -201,3 +215,10 @@ jobs:
201215
--build missing \
202216
.
203217
if: ${{ inputs.testing == 'True' && ( inputs.platform != 'ubuntu-22.04' || inputs.build-type != 'Debug' || inputs.malloc-impl != 'libc' || inputs.prerelease != 'False' ) }}
218+
continue-on-error: true
219+
220+
- name: Check disk space if previous step failed
221+
if: failure() && steps.create_and_test_package.outcome == 'failure'
222+
run: |
223+
echo "Create and Test Package step failed. Checking disk space..."
224+
df -h

.github/workflows/pr_conan_build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Homestore PR Build
22

33
on:
4+
workflow_dispatch:
45
pull_request:
56
branches:
67
- master

conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
class HomestoreConan(ConanFile):
44
name = "homestore"
5-
version = "3.7.3"
5+
version = "3.7.4"
66

77
homepage = "https://github.corp.ebay.com/SDS/homestore"
88
description = "HomeStore"

src/engine/blkalloc/varsize_blk_allocator.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,9 @@ void VarsizeBlkAllocator::fill_cache_in_portion(const blk_num_t portion_num, blk
368368
HS_DBG_ASSERT_GE(end_blk_id, b.start_bit, "Expected start bit to be smaller than portion end bit");
369369
HS_DBG_ASSERT_GE(end_blk_id, (b.start_bit + b.nbits - 1),
370370
"Expected end bit to be smaller than portion end bit");
371+
#ifndef NDEBUG
371372
HISTOGRAM_OBSERVE(m_metrics, frag_pct_distribution, 100 / (static_cast< double >(b.nbits)));
373+
#endif
372374

373375
// Fill the blk cache and keep accounting of number of blks added
374376
fill_req.start_blk_num = b.start_bit;

src/engine/blkalloc/varsize_blk_allocator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,10 @@ class BlkAllocMetrics : public sisl::MetricsGroup {
196196
REGISTER_COUNTER(num_alloc_partial, "Number of blk alloc partial allocations");
197197
REGISTER_COUNTER(num_retries, "Number of times it retried because of empty cache");
198198
REGISTER_COUNTER(num_blks_alloc_direct, "Number of blks alloc attempt directly because of empty cache");
199-
199+
#ifndef NDEBUG
200200
REGISTER_HISTOGRAM(frag_pct_distribution, "Distribution of fragmentation percentage",
201201
HistogramBucketsType(LinearUpto64Buckets));
202-
202+
#endif
203203
register_me_to_farm();
204204
}
205205

src/engine/blkstore/blkstore.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,8 @@ class BlkStoreMetrics : public sisl::MetricsGroupWrapper {
168168
HistogramBucketsType(LinearUpto64Buckets))
169169
REGISTER_HISTOGRAM(blkstore_cache_read_latency, "BlkStore cache read latency");
170170
REGISTER_HISTOGRAM(blkstore_cache_write_latency, "BlkStore cache write latency");
171-
REGISTER_HISTOGRAM(blkstore_drive_write_latency, "BlkStore drive write latency");
172-
REGISTER_HISTOGRAM(blkstore_drive_read_latency, "BlkStore drive read latency");
173-
REGISTER_HISTOGRAM(blkstore_wbcache_hold_time, "Time data is held in writeback cache before flush");
171+
REGISTER_HISTOGRAM(blkstore_drive_write_latency, "BlkStore drive write latency", HistogramBucketsType(OpLatecyBuckets));
172+
REGISTER_HISTOGRAM(blkstore_drive_read_latency, "BlkStore drive read latency", HistogramBucketsType(OpLatecyBuckets));
174173

175174
register_me_to_farm();
176175
}

src/engine/device/device.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,8 @@ class PhysicalDevMetrics : public sisl::MetricsGroupWrapper {
450450
REGISTER_COUNTER(drive_spurios_events, "Total number of spurious events per drive");
451451
REGISTER_COUNTER(drive_skipped_chunk_bm_writes, "Total number of skipped writes for chunk bitmap");
452452

453-
REGISTER_HISTOGRAM(drive_write_latency, "BlkStore drive write latency in us");
454-
REGISTER_HISTOGRAM(drive_read_latency, "BlkStore drive read latency in us");
453+
REGISTER_HISTOGRAM(drive_write_latency, "BlkStore drive write latency in us", HistogramBucketsType(OpLatecyBuckets));
454+
REGISTER_HISTOGRAM(drive_read_latency, "BlkStore drive read latency in us", HistogramBucketsType(OpLatecyBuckets));
455455

456456
REGISTER_HISTOGRAM(write_io_sizes, "Write IO Sizes", "io_sizes", {"io_direction", "write"},
457457
HistogramBucketsType(ExponentialOfTwoBuckets));

src/engine/index/indx_mgr.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,6 @@ void IndxMgr::unmap_indx_async(const indx_req_ptr& ireq) {
12081208
void IndxMgr::do_remaining_unmap(void* unmap_meta_blk_cntx, const sisl::byte_array& key, const seq_id_t seqid,
12091209
const std::shared_ptr< homeds::btree::BtreeQueryCursor >& btree_cur) {
12101210
/* persist superblock */
1211-
COUNTER_INCREMENT(m_metrics, indx_unmap_async_count, 1);
12121211
write_cp_unmap_sb(unmap_meta_blk_cntx, key->size, seqid, *(btree_cur.get()), key->bytes);
12131212
#ifdef _PRERELEASE
12141213
if (homestore_flip->test_flip("unmap_post_sb_write_abort")) {

src/engine/index/indx_mgr.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,6 @@ class StaticIndxMgr {
563563
class IndxMgrMetrics : public sisl::MetricsGroupWrapper {
564564
public:
565565
explicit IndxMgrMetrics(const char* const indx_name) : sisl::MetricsGroupWrapper{"Index", indx_name} {
566-
REGISTER_COUNTER(indx_unmap_async_count, "Total number of async unmaps");
567566
REGISTER_HISTOGRAM(btree_msg_time, "time spent in sending message to btree", "btree_msg_time");
568567
register_me_to_farm();
569568
}

src/homeblks/home_blks.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ typedef std::map< boost::uuids::uuid, std::shared_ptr< homestore::Volume > > vol
105105
class HomeBlksMetrics : public sisl::MetricsGroupWrapper {
106106
public:
107107
explicit HomeBlksMetrics(const char* homeblks_name) : sisl::MetricsGroupWrapper("HomeBlks", homeblks_name) {
108-
REGISTER_HISTOGRAM(scan_volumes_latency, "Scan Volumes latency");
109108
REGISTER_COUNTER(boot_cnt, "boot cnt", sisl::_publish_as::publish_as_gauge);
110109
REGISTER_GAUGE(recovery_phase0_latency, "recovery phase0 latency");
111110
REGISTER_GAUGE(recovery_phase1_latency, "recovery phase1 latency");

0 commit comments

Comments
 (0)