-
Notifications
You must be signed in to change notification settings - Fork 715
fix: result cache & aggs cache max size needs to honor for entire dir #9376
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
|
Failed to generate code suggestions for PR |
Greptile OverviewGreptile SummaryFixed cache configuration bug where
Confidence Score: 5/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant Config as Config Initialization
participant CDC as check_disk_cache_config()
participant BucketCalc as Bucket Calculation
participant SizeDistribution as Size Distribution
participant DiskCache as Disk Cache Buckets
Config->>CDC: Initialize disk cache config
CDC->>CDC: Set bucket_num based on CPU threads
CDC->>BucketCalc: Calculate bucket_num (threads-based logic)
BucketCalc->>BucketCalc: Adjust for multi_dir count
BucketCalc-->>CDC: Final bucket_num
Note over SizeDistribution: Before this PR: Only max_size, release_size, gc_size divided
Note over SizeDistribution: After this PR: Also divide result_max_size & aggregation_max_size
CDC->>SizeDistribution: Divide max_size by bucket_num
CDC->>SizeDistribution: Divide result_max_size by bucket_num (NEW)
CDC->>SizeDistribution: Divide aggregation_max_size by bucket_num (NEW)
CDC->>SizeDistribution: Divide release_size by bucket_num
CDC->>SizeDistribution: Divide gc_size by bucket_num
SizeDistribution-->>DiskCache: Per-bucket size limits applied
Note over DiskCache: Each bucket now has correct result & aggregation limits
|
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.
1 file reviewed, no comments
fixes: #9344