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: enable parameter for disk index memory factor(#33007) #33009

Closed

Conversation

MrPresent-Han
Copy link
Contributor

related: #33007

@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: MrPresent-Han
To complete the pull request process, please assign czs007 after the PR has been reviewed.
You can assign the PR to them by writing /assign @czs007 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

@sre-ci-robot sre-ci-robot added the size/S Denotes a PR that changes 10-29 lines. label May 13, 2024
@mergify mergify bot added dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement labels May 13, 2024
@@ -61,7 +62,7 @@ func (c *IndexAttrCache) GetIndexResourceUsage(indexInfo *querypb.FieldIndexInfo
return 0, 0, fmt.Errorf("index type not exist in index params")
}
if indexType == indexparamcheck.IndexDISKANN {
neededMemSize := indexInfo.IndexSize / UsedDiskMemoryRatio
neededMemSize := int64(float64(indexInfo.IndexSize) * paramtable.Get().QueryNodeCfg.DiskIndexMemoryFactor.GetAsFloat())
Copy link
Contributor

Choose a reason for hiding this comment

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

DISKANN has not been changed. Why need this update?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ran into oom when loading disk index under the case of LRU

Signed-off-by: MrPresent-Han <chun.han@zilliz.com>
Copy link

codecov bot commented May 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.10%. Comparing base (230c88b) to head (88d01b7).
Report is 19 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #33009      +/-   ##
==========================================
+ Coverage   82.07%   82.10%   +0.03%     
==========================================
  Files        1007     1005       -2     
  Lines      127668   127655      -13     
==========================================
+ Hits       104778   104815      +37     
+ Misses      18915    18882      -33     
+ Partials     3975     3958      -17     
Files Coverage Δ
internal/querynodev2/segments/index_attr_cache.go 100.00% <100.00%> (ø)
internal/querynodev2/segments/segment_loader.go 73.49% <ø> (ø)
pkg/util/paramtable/component_param.go 98.49% <100.00%> (+0.01%) ⬆️

... and 55 files with indirect coverage changes

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

Successfully merging this pull request may close these issues.

None yet

3 participants