Skip to content

Conversation

@ShooterIT
Copy link
Collaborator

No description provided.

mh->asm_import_input_buffer = asmGetImportInputBufferSize();
mh->asm_migrate_output_buffer = asmGetMigrateOutputBufferSize();
mem_total += mh->asm_import_input_buffer;
mem_total += mh->asm_migrate_output_buffer;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we should update mem_total here, otherwise, we will miss updating mh->overhead_total

src/server.c Outdated
@@ -6053,6 +6053,7 @@ sds genRedisInfoString(dict *section_dict, int all_sections, int everything) {
"mem_replica_full_sync_buffer:%zu\r\n", server.repl_full_sync_buffer.mem_used,
"mem_asm_migrate_output_buffer:%zu\r\n", mh->asm_migrate_output_buffer,
"mem_asm_import_input_buffer:%zu\r\n", mh->asm_import_input_buffer,
"mem_slot_migration_sync_buffer_peak:%zu\r\n", asmGetPeakSyncBufferSize(),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

maybe mem_asm_migrate_output_buffer and mem_asm_import_input_buffer should be change to
mem_slot_migration_output_buffer and mem_slot_migration_input_buffer?

Copy link
Owner

Choose a reason for hiding this comment

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

I'm happy that I felt the same way and made the exact change without seeing this :)

@@ -840,34 +840,24 @@ start_cluster 3 3 {tags {external:skip cluster} overrides {cluster-node-timeout
}

test "Flush-like command can cancel slot migration task" {
# we set a delay to cancel
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

just find it is not stable

Copy link
Owner

Choose a reason for hiding this comment

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

yeah, it fails frequently

@codecov-commenter
Copy link

codecov-commenter commented Oct 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (cluster-asm@2d7ac25). Learn more about missing BASE report.

Additional details and impacted files
@@              Coverage Diff               @@
##             cluster-asm     #103   +/-   ##
==============================================
  Coverage               ?   76.01%           
==============================================
  Files                  ?      131           
  Lines                  ?    76247           
  Branches               ?        0           
==============================================
  Hits                   ?    57958           
  Misses                 ?    18289           
  Partials               ?        0           
Files with missing lines Coverage Δ
src/cluster_asm.c 90.74% <ø> (ø)
src/evict.c 98.51% <100.00%> (ø)
src/object.c 82.35% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ShooterIT ShooterIT requested a review from tezc October 16, 2025 08:42
@ShooterIT ShooterIT changed the title fix total overhead memory Fix total overhead memory Oct 16, 2025
@ShooterIT ShooterIT merged commit d09431b into tezc:cluster-asm Oct 16, 2025
16 of 17 checks passed
@ShooterIT ShooterIT deleted the asm-fix2 branch October 16, 2025 13:04
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.

3 participants