Skip to content

Fix client tracking memory overhead calculation#2360

Merged
enjoy-binbin merged 3 commits into
valkey-io:unstablefrom
enjoy-binbin:fix_tracking
Jul 22, 2025
Merged

Fix client tracking memory overhead calculation#2360
enjoy-binbin merged 3 commits into
valkey-io:unstablefrom
enjoy-binbin:fix_tracking

Conversation

@enjoy-binbin

@enjoy-binbin enjoy-binbin commented Jul 16, 2025

Copy link
Copy Markdown
Member

This should be + instread of *, otherwise it does not make any sense.
Otherwise we would have to calculate 20 more bytes for each prefix rax
node in 64 bits build.

This should be + instread of *, otherwise it does not make any sense.

Signed-off-by: Binbin <binloveplay1314@qq.com>
@enjoy-binbin

Copy link
Copy Markdown
Member Author

I'll try to add a test when i am free.

@codecov

codecov Bot commented Jul 16, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.45%. Comparing base (78e7208) to head (b080676).
⚠️ Report is 81 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #2360      +/-   ##
============================================
+ Coverage     71.42%   71.45%   +0.02%     
============================================
  Files           123      123              
  Lines         67135    67122      -13     
============================================
+ Hits          47952    47962      +10     
+ Misses        19183    19160      -23     
Files with missing lines Coverage Δ
src/networking.c 88.16% <100.00%> (ø)

... and 18 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@enjoy-binbin enjoy-binbin added the run-extra-tests Run extra tests on this PR (Runs all tests from daily except valgrind and RESP) label Jul 21, 2025
Signed-off-by: Binbin <binloveplay1314@qq.com>
@enjoy-binbin enjoy-binbin requested a review from zuiderkwast July 21, 2025 03:11

@zuiderkwast zuiderkwast left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good catch.

We have many flakt tests now? The CI has many failures but not from this PR i think.

Comment thread tests/unit/tracking.tcl Outdated
Comment thread tests/unit/tracking.tcl Outdated
Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
Signed-off-by: Binbin <binloveplay1314@qq.com>
@enjoy-binbin

Copy link
Copy Markdown
Member Author

We have many flakt tests now? The CI has many failures but not from this PR i think.

yes, there is one failure realted to slot migration, and i push the new PR to fix it (just waitting for Ping to review it), i haven't watched the others yet.

@enjoy-binbin enjoy-binbin merged commit e5956d0 into valkey-io:unstable Jul 22, 2025
54 of 57 checks passed
@github-project-automation github-project-automation Bot moved this to To be backported in Valkey 8.1 Jul 22, 2025
@github-project-automation github-project-automation Bot moved this to To be backported in Valkey 7.2 Jul 22, 2025
@github-project-automation github-project-automation Bot moved this to To be backported in Valkey 8.0 Jul 22, 2025
@enjoy-binbin enjoy-binbin deleted the fix_tracking branch July 22, 2025 09:19
@zuiderkwast zuiderkwast added the release-notes This issue should get a line item in the release notes label Aug 19, 2025
@zuiderkwast zuiderkwast moved this from To be backported to 8.0.5 (to be released) in Valkey 8.0 Aug 19, 2025
zuiderkwast pushed a commit to vitarb/valkey that referenced this pull request Aug 19, 2025
This should be + instread of *, otherwise it does not make any sense.
Otherwise we would have to calculate 20 more bytes for each prefix rax
node in 64 bits build.

Signed-off-by: Binbin <binloveplay1314@qq.com>
zuiderkwast pushed a commit to vitarb/valkey that referenced this pull request Aug 21, 2025
This should be + instread of *, otherwise it does not make any sense.
Otherwise we would have to calculate 20 more bytes for each prefix rax
node in 64 bits build.

Signed-off-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
zuiderkwast pushed a commit that referenced this pull request Aug 22, 2025
This should be + instread of *, otherwise it does not make any sense.
Otherwise we would have to calculate 20 more bytes for each prefix rax
node in 64 bits build.

Signed-off-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
sarthakaggarwal97 pushed a commit to sarthakaggarwal97/valkey that referenced this pull request Sep 16, 2025
This should be + instread of *, otherwise it does not make any sense.
Otherwise we would have to calculate 20 more bytes for each prefix rax
node in 64 bits build.

Signed-off-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
@ranshid ranshid moved this from To be backported to In Progress in Valkey 8.1 Sep 30, 2025
ranshid pushed a commit to ranshid/valkey that referenced this pull request Sep 30, 2025
This should be + instread of *, otherwise it does not make any sense.
Otherwise we would have to calculate 20 more bytes for each prefix rax
node in 64 bits build.

Signed-off-by: Binbin <binloveplay1314@qq.com>
ranshid pushed a commit to ranshid/valkey that referenced this pull request Sep 30, 2025
This should be + instread of *, otherwise it does not make any sense.
Otherwise we would have to calculate 20 more bytes for each prefix rax
node in 64 bits build.

Signed-off-by: Binbin <binloveplay1314@qq.com>
@ranshid ranshid moved this from In Progress to 8.1.4 in Valkey 8.1 Sep 30, 2025
@ranshid ranshid moved this from 8.1.4 to To be backported in Valkey 8.1 Sep 30, 2025
@zuiderkwast zuiderkwast moved this from To be backported to 7.2.11 (to be released) in Valkey 7.2 Sep 30, 2025
zuiderkwast pushed a commit to zuiderkwast/valkey that referenced this pull request Sep 30, 2025
This should be + instread of *, otherwise it does not make any sense.
Otherwise we would have to calculate 20 more bytes for each prefix rax
node in 64 bits build.

Signed-off-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
zuiderkwast pushed a commit that referenced this pull request Oct 1, 2025
This should be + instread of *, otherwise it does not make any sense.
Otherwise we would have to calculate 20 more bytes for each prefix rax
node in 64 bits build.

Signed-off-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
zuiderkwast pushed a commit that referenced this pull request Oct 1, 2025
This should be + instread of *, otherwise it does not make any sense.
Otherwise we would have to calculate 20 more bytes for each prefix rax
node in 64 bits build.

Signed-off-by: Binbin <binloveplay1314@qq.com>
@zuiderkwast zuiderkwast moved this from To be backported to 8.1.4 in Valkey 8.1 Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes This issue should get a line item in the release notes run-extra-tests Run extra tests on this PR (Runs all tests from daily except valgrind and RESP)

Projects

Status: 7.2.11
Status: 8.0.5
Status: 8.1.4

Development

Successfully merging this pull request may close these issues.

3 participants