xinyiZzz opened a new pull request, #38168:
URL: https://github.com/apache/doris/pull/38168

   Modify `refresh_wg_memory_info` to `refresh_wg_weighted_memory_ratio`,
   1. Previously, `total memory used` and `weighted memory` of wordload groups 
were refreshed periodically, and they no longer change during the refresh 
period.
   2. Now only `weighted memory ratio` is refreshed periodically, and `weighted 
memory` will use (`total memory used` + `refresh interval memory growth`) * 
`weighted memory ratio` in real time. Wordload groups and queries only save 
`weighted memory ratio`, which is more accurate.
   3. wordload groups `total memory used` is refreshed when 
`make_memory_tracker_snapshots` is executed, which is called by `workload 
gorups memory GC` and `refresh_wg_weighted_memory_ratio`.
   4. wordload groups no longer save all `query context` weak ptr, and only use 
the existing `_mem_tracker_limiter_pool`.
   5. Make `refresh_wg_weighted_memory_ratio` clearer! It was too confusing 
before.


-- 
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

Reply via email to