yiguolei commented on code in PR #32641: URL: https://github.com/apache/doris/pull/32641#discussion_r1542352340
########## be/src/runtime/workload_group/workload_group.h: ########## @@ -141,7 +166,8 @@ class WorkloadGroup : public std::enable_shared_from_this<WorkloadGroup> { const uint64_t _id; std::string _name; int64_t _version; - int64_t _memory_limit; // bytes + int64_t _memory_limit; // bytes + std::atomic_int64_t _weighted_mem_used = 0; // bytes bool _enable_memory_overcommit; std::atomic<uint64_t> _cpu_share; Review Comment: remove query_id_set and use std::map<queryid, weak_ptr<query context>> so that all memory limit info could be set to query context, not to memtracker. -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org