Skip to content

Conversation

@raakella1
Copy link
Contributor

… lru cache

@codecov-commenter
Copy link

codecov-commenter commented Apr 15, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 66.73%. Comparing base (1a0cef8) to head (a633946).
Report is 175 commits behind head on master.

Files with missing lines Patch % Lines
src/lib/index/wb_cache.cpp 50.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #690       +/-   ##
===========================================
+ Coverage   56.51%   66.73%   +10.22%     
===========================================
  Files         108      109        +1     
  Lines       10300    11499     +1199     
  Branches     1402     1572      +170     
===========================================
+ Hits         5821     7674     +1853     
+ Misses       3894     3074      -820     
- Partials      585      751      +166     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@raakella1 raakella1 force-pushed the cache_overflow_test branch from e85dbaf to 552aae6 Compare April 17, 2025 22:29
yamingk
yamingk previously approved these changes Apr 21, 2025
@raakella1 raakella1 force-pushed the cache_overflow_test branch from 80c59c3 to fd9a9fa Compare April 24, 2025 22:30
@raakella1 raakella1 force-pushed the cache_overflow_test branch from fd9a9fa to a633946 Compare April 24, 2025 22:30
Copy link
Contributor

@shosseinimotlagh shosseinimotlagh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how did test validate if the eviction functionality is as expected, (so only evict the clean ones)? number of eviction and/or number of objects in the cache.

Also is it needed to validate it in case of concurrency?

@raakella1 raakella1 merged commit ad91021 into eBay:master Apr 24, 2025
21 checks passed
@raakella1 raakella1 deleted the cache_overflow_test branch April 24, 2025 23:52
cache_min_throttle_cnt : uint32 = 4; // writeback cache min q deoth
cache_min_throttle_cnt : uint32 = 4; // writeback cache min q depth

cache_hashmap_nbuckets : uint32 = 1000000; // num buckets for sisl::SimpleHashmap used in wbcache
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have similar parameters in Table Cache. Can't we use it and remove it from here?

@xiaoxichen
Copy link
Collaborator

how did test validate if the eviction functionality is as expected, (so only evict the clean ones)? number of eviction and/or number of objects in the cache.

Also is it needed to validate it in case of concurrency?

I asked same question in the NuObject standup, can we tune down the cache size to force all our Index related testing(at least long running) go through the eviction path?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants