killxdcj opened a new issue #5606:
URL: https://github.com/apache/incubator-doris/issues/5606


   After increased ScannerThread num, i encountered serious lock competition 
problems. Judging from the flamegraph, the main problem lies in the 
construction and destructuring of Memtracker in RowBlock.
   
   
![image](https://user-images.githubusercontent.com/8370710/113865298-81bb4600-97de-11eb-82a2-c58fc94f41e4.png)
   
   Checked the relevant code, i found the current RowBlock's parent MemTracker 
is root Memtracker(one per process). When the concurrency becomes high, the 
lock competition must be serious.
   
   So should we set RowBlock's parent MemTracker as instance_mem_tracker? On 
the other hand, for Query, should RowBlock's memory be limited by 
instance_mem_tracker?
   
   Tested after changing RowBlock's Parent MemTracker to instance_mem_tracker, 
the lock competition problem disappeared, and in our scenario, the performance 
was also improved several times
   
   
![image](https://user-images.githubusercontent.com/8370710/113865373-9566ac80-97de-11eb-8c3a-6f96e8485d14.png)
   


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

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