Skip to content

Include system memory to StatementStats#40

Merged
miniway merged 1 commit intohotfix-317from
system_memory
Feb 10, 2022
Merged

Include system memory to StatementStats#40
miniway merged 1 commit intohotfix-317from
system_memory

Conversation

@miniway
Copy link
Copy Markdown
Member

@miniway miniway commented Feb 9, 2022

From Trino 369, it will not separate user and system memories trinodb#10574 . So it should be fine to include system memory to StatementStats as a workaround

@miniway miniway requested a review from takezoe February 9, 2022 04:15
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

getPeakNonRevocableMemoryReservation() was added in 337: trinodb@11b7d19

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I've changed it to getPeakTotalMemoryReservation here. As we don't use evocableMemory (spill), the values will be the same. In 350, we can use getPeakNonRevocableMemoryReservation.

Copy link
Copy Markdown
Member

@takezoe takezoe left a comment

Choose a reason for hiding this comment

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

LGTM

@miniway miniway merged commit 33ae708 into hotfix-317 Feb 10, 2022
@miniway miniway deleted the system_memory branch February 10, 2022 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants