Skip to content
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

enhance: record memory size (uncompressed) item for index #38770

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

chyezh
Copy link
Contributor

@chyezh chyezh commented Dec 26, 2024

issue: #38715

  • Current milvus use a serialized index size(compressed) for estimate resource for loading.
  • Add a new field MemSize (before compressing) for index to estimate resource.

@sre-ci-robot sre-ci-robot added area/internal-api size/XXL Denotes a PR that changes 1000+ lines. labels Dec 26, 2024
@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: chyezh
To complete the pull request process, please assign yanliang567 after the PR has been reviewed.
You can assign the PR to them by writing /assign @yanliang567 in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mergify mergify bot added dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement labels Dec 26, 2024
Copy link
Contributor

mergify bot commented Dec 26, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

Copy link
Contributor

mergify bot commented Dec 26, 2024

@chyezh go-sdk check failed, comment rerun go-sdk can trigger the job again.

@chyezh
Copy link
Contributor Author

chyezh commented Dec 26, 2024

rerun cpp-unit-test

Copy link
Contributor

mergify bot commented Dec 26, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

Copy link
Contributor

mergify bot commented Dec 26, 2024

@chyezh go-sdk check failed, comment rerun go-sdk can trigger the job again.

Copy link
Contributor

mergify bot commented Dec 26, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

@chyezh chyezh force-pushed the enhance_serialized_index_file_multiply_factor branch from 4cb8035 to 1ebba3e Compare December 26, 2024 11:44
Copy link
Contributor

mergify bot commented Dec 26, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

Copy link
Contributor

mergify bot commented Dec 26, 2024

@chyezh go-sdk check failed, comment rerun go-sdk can trigger the job again.

@chyezh
Copy link
Contributor Author

chyezh commented Dec 26, 2024

rerun cpp-unit-test

Copy link
Contributor

mergify bot commented Dec 26, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

Copy link

codecov bot commented Dec 26, 2024

Codecov Report

Attention: Patch coverage is 68.90244% with 51 lines in your changes missing coverage. Please review.

Project coverage is 81.13%. Comparing base (dd81a13) to head (dbf4b36).
Report is 16 commits behind head on master.

Files with missing lines Patch % Lines
internal/core/src/index/CreateIndexResult.cpp 68.75% 10 Missing ⚠️
internal/util/indexcgowrapper/index.go 37.50% 9 Missing and 1 partial ⚠️
internal/core/src/index/TextMatchIndex.cpp 0.00% 8 Missing ⚠️
internal/core/src/common/protobuf_utils.cpp 50.00% 6 Missing ⚠️
internal/core/src/indexbuilder/index_c.cpp 0.00% 6 Missing ⚠️
internal/core/src/index/StringIndexMarisa.cpp 0.00% 5 Missing ⚠️
internal/core/src/index/ScalarIndexSort.cpp 0.00% 4 Missing ⚠️
internal/core/src/common/protobuf_utils.h 83.33% 1 Missing ⚠️
internal/core/src/storage/DiskFileManagerImpl.cpp 50.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #38770    +/-   ##
========================================
  Coverage   81.12%   81.13%            
========================================
  Files        1385     1389     +4     
  Lines      195922   196151   +229     
========================================
+ Hits       158939   159138   +199     
- Misses      31396    31422    +26     
- Partials     5587     5591     +4     
Components Coverage Δ
Client 79.12% <ø> (ø)
Core 69.43% <59.40%> (-0.03%) ⬇️
Go 83.11% <84.12%> (+0.01%) ⬆️
Files with missing lines Coverage Δ
internal/core/src/index/BitmapIndex.cpp 81.09% <100.00%> (+0.08%) ⬆️
internal/core/src/index/BitmapIndex.h 44.44% <ø> (ø)
internal/core/src/index/CreateIndexResult.h 100.00% <100.00%> (ø)
internal/core/src/index/HybridScalarIndex.cpp 79.12% <100.00%> (-0.33%) ⬇️
internal/core/src/index/HybridScalarIndex.h 39.02% <ø> (ø)
internal/core/src/index/Index.h 100.00% <ø> (ø)
internal/core/src/index/InvertedIndexTantivy.cpp 92.41% <100.00%> (-0.23%) ⬇️
internal/core/src/index/InvertedIndexTantivy.h 53.84% <ø> (ø)
internal/core/src/index/ScalarIndexSort.h 38.46% <ø> (ø)
internal/core/src/index/StringIndexMarisa.h 71.42% <ø> (ø)
... and 29 more

... and 36 files with indirect coverage changes

@chyezh
Copy link
Contributor Author

chyezh commented Dec 27, 2024

rerun cpp-unit-test

Copy link
Contributor

mergify bot commented Dec 27, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

@chyezh
Copy link
Contributor Author

chyezh commented Dec 27, 2024

rerun cpp-unit-test

@chyezh
Copy link
Contributor Author

chyezh commented Dec 27, 2024

rerun go-sdk

Copy link
Contributor

mergify bot commented Dec 27, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

Copy link
Contributor

mergify bot commented Dec 27, 2024

@chyezh go-sdk check failed, comment rerun go-sdk can trigger the job again.

@chyezh
Copy link
Contributor Author

chyezh commented Dec 27, 2024

rerun go-sdk

@chyezh
Copy link
Contributor Author

chyezh commented Dec 27, 2024

rerun cpp-unit-test

Copy link
Contributor

mergify bot commented Dec 27, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

@chyezh
Copy link
Contributor Author

chyezh commented Dec 28, 2024

rerun cpp-unit-test

Copy link
Contributor

mergify bot commented Dec 28, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

@chyezh
Copy link
Contributor Author

chyezh commented Dec 28, 2024

rerun cpp-unit-test

Copy link
Contributor

mergify bot commented Dec 28, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

@chyezh
Copy link
Contributor Author

chyezh commented Dec 28, 2024

rerun cpp-unit-test

Copy link
Contributor

mergify bot commented Dec 28, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

@chyezh
Copy link
Contributor Author

chyezh commented Dec 29, 2024

rerun cpp-unit-test

Copy link
Contributor

mergify bot commented Dec 29, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

@chyezh
Copy link
Contributor Author

chyezh commented Dec 29, 2024

rerun cpp-unit-test

Copy link
Contributor

mergify bot commented Dec 29, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

@chyezh
Copy link
Contributor Author

chyezh commented Dec 29, 2024

rerun cpp-unit-test

Copy link
Contributor

mergify bot commented Dec 29, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

@chyezh
Copy link
Contributor Author

chyezh commented Dec 29, 2024

rerun cpp-unit-test

Copy link
Contributor

mergify bot commented Dec 29, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

@chyezh chyezh force-pushed the enhance_serialized_index_file_multiply_factor branch from 1ebba3e to 07910b5 Compare December 30, 2024 06:20
- Current milvus use a serialized index size(compressed) for estimate resource for loading.
- Add a new field MemSize (before compressing) for index to estimate resource.

Signed-off-by: chyezh <[email protected]>
@chyezh chyezh force-pushed the enhance_serialized_index_file_multiply_factor branch from 07910b5 to 5a89096 Compare December 30, 2024 06:21
Copy link
Contributor

mergify bot commented Dec 30, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

@chyezh
Copy link
Contributor Author

chyezh commented Dec 30, 2024

rerun cpp-unit-test

Copy link
Contributor

mergify bot commented Dec 30, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

@chyezh
Copy link
Contributor Author

chyezh commented Dec 30, 2024

rerun cpp-unit-test

Copy link
Contributor

mergify bot commented Dec 30, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

@chyezh
Copy link
Contributor Author

chyezh commented Dec 30, 2024

rerun cpp-unit-test

Copy link
Contributor

mergify bot commented Dec 30, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

@chyezh
Copy link
Contributor Author

chyezh commented Dec 31, 2024

rerun cpp-unit-test

Copy link
Contributor

mergify bot commented Dec 31, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

Signed-off-by: chyezh <[email protected]>
Copy link
Contributor

mergify bot commented Dec 31, 2024

@chyezh go-sdk check failed, comment rerun go-sdk can trigger the job again.

Copy link
Contributor

mergify bot commented Dec 31, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

Signed-off-by: chyezh <[email protected]>
Copy link
Contributor

mergify bot commented Dec 31, 2024

@chyezh go-sdk check failed, comment rerun go-sdk can trigger the job again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/internal-api dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement size/XXL Denotes a PR that changes 1000+ lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants