yiguolei commented on code in PR #17820:
URL: https://github.com/apache/doris/pull/17820#discussion_r1138372090
##########
be/src/olap/memtable.h:
##########
@@ -48,7 +49,8 @@ class MemTable {
int64_t tablet_id() const { return _tablet->tablet_id(); }
size_t memory_usage() const {
- return _insert_mem_tracker->consumption() +
_flush_mem_tracker->consumption();
+ return _insert_mem_tracker->consumption() + _arena->size() +
Review Comment:
If arena allocated some unused memory, then the memory usage maybe larger
than actual usage. It will flush out many small segments.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]