-
Notifications
You must be signed in to change notification settings - Fork 0
Fix total overhead memory #103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| 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; |
There was a problem hiding this comment.
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(), | |||
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 | |||
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 Report✅ All modified and coverable lines are covered by tests. 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
🚀 New features to boost your workflow:
|
No description provided.