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

Use correct number of bytes in query cache accounting #9479

Merged
merged 1 commit into from Jan 29, 2015

Conversation

s1monw
Copy link
Contributor

@s1monw s1monw commented Jan 29, 2015

today we use the length of the BytesReference which is misleading since
the reference is paged such that the length != ramBytesUsed. This can lead
to a way higher memory consuption than expected if query results are tiny
since each query result requires at least 16kb. Yet, we should rethink this
strategy for query results that are very small ie. less than 20% of the ramBytesUsed
but this commit first tries to make the acocunting correct.

today we use the length of the BytesReference which is misleading since
the reference is paged such that the length != ramBytesUsed. This can lead
to a way higher memory consuption than expected if query results are tiny
since each query result requires at least 16kb. Yet, we should rethink this
strategy for query results that are very small ie. less than 20% of the ramBytesUsed
but this commit first tries to make the acocunting correct.
@jpountz
Copy link
Contributor

jpountz commented Jan 29, 2015

LGTM

@s1monw s1monw merged commit 15a7660 into elastic:master Jan 29, 2015
@clintongormley clintongormley changed the title [CACHE] Use correct number of bytes in query cache accounting Use correct number of bytes in query cache accounting Jun 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants