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

Unnecessary ByteArrayDataInput allocations during aggregation query #14112

Closed
jainankitk opened this issue Jan 8, 2025 · 1 comment · Fixed by #14113
Closed

Unnecessary ByteArrayDataInput allocations during aggregation query #14112

jainankitk opened this issue Jan 8, 2025 · 1 comment · Fixed by #14113

Comments

@jainankitk
Copy link
Contributor

Description

While doing some experiments with big5 workload on Opensearch, I noticed significant ByteArrayDataInput allocations during aggregation query execution. I noticed the allocations were coming from Lucene90DocValuesProducer$TermsDict.decompressBlock. I used below query for this experiment:

POST big5/_search?request_cache=false
{ "size": 0,"aggs": {"agent": {"cardinality": {"field": "event.id"}}}}

This is the snapshot from allocation flamegraph:
Screenshot 2025-01-07 at 10 47 25 PM

@jainankitk
Copy link
Contributor Author

These allocations disappeared after running the experiment again with the changes proposed in the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant