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

   ## Proposed changes
   
   Issue Number: close #xxx
   
   Jemalloc dirty page only use madvise `MADV_FREE`, memory is not release back 
to system, RSS won't reduce in time,
   
   So when the process memory exceed limit or system available memory is 
insufficient, 
   manually transfer dirty page to the muzzy page, which will call 
`MADV_DONTNEED` to release the physical memory back to the system.
   
   https://jemalloc.net/jemalloc.3.html#opt.dirty_decay_ms
   ```
   stats.arenas.<i>.pdirty (size_t) r-
   Number of pages within unused extents that are potentially dirty, and for 
which madvise() or similar has not been called. See 
[opt.dirty_decay_ms](https://jemalloc.net/jemalloc.3.html#opt.dirty_decay_ms) 
for a description of dirty pages.
   ```
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[[email protected]](mailto:[email protected]) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


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

Reply via email to