You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "wangbo (via GitHub)" <gi...@apache.org> on 2023/11/28 09:10:42 UTC

[PR] [fix](executor)Fix memtracker not set to task group [doris]

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

       1 Fix memtracker not set to task group
       2 Fix cgroup log cpu info error


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](executor)Fix memtracker not set to task group [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #27699:
URL: https://github.com/apache/doris/pull/27699#issuecomment-1829410065

   PR approved by at least one committer and no changes requested.


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](executor)Fix memtracker not set to task group [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #27699:
URL: https://github.com/apache/doris/pull/27699#issuecomment-1829586469

   
   <details>
   <summary>TPC-H test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'</summary>
   
   ```
   Tpch sf100 test result on commit c8a121930690aef734075244a121cc5abd12bf88, data reload: true
   
   run tpch-sf100 query with default conf and session variables
   q1	4826	4647	4621	4621
   q2	389	128	121	121
   q3	2032	1872	1857	1857
   q4	1400	1249	1259	1249
   q5	3986	3923	3934	3923
   q6	245	123	125	123
   q7	1340	828	859	828
   q8	2810	2770	2747	2747
   q9	9664	9563	9497	9497
   q10	9893	3506	3511	3506
   q11	381	240	233	233
   q12	440	280	285	280
   q13	12958	3812	3798	3798
   q14	318	286	290	286
   q15	594	531	519	519
   q16	499	466	446	446
   q17	1164	931	882	882
   q18	8062	7567	7534	7534
   q19	1715	1683	1665	1665
   q20	580	307	301	301
   q21	4479	4007	4028	4007
   q22	469	373	374	373
   Total cold run time: 68244 ms
   Total hot run time: 48796 ms
   
   run tpch-sf100 query with default conf and set session variable runtime_filter_mode=off
   q1	4573	4580	4565	4565
   q2	333	229	256	229
   q3	4016	4030	3994	3994
   q4	2745	2725	2710	2710
   q5	9659	9591	9563	9563
   q6	248	119	123	119
   q7	2974	2536	2483	2483
   q8	4456	4478	4446	4446
   q9	13039	13043	12877	12877
   q10	4059	4144	4168	4144
   q11	820	651	675	651
   q12	980	818	812	812
   q13	7307	3595	3587	3587
   q14	392	331	333	331
   q15	570	523	524	523
   q16	615	554	556	554
   q17	3866	3844	3859	3844
   q18	9725	9187	9258	9187
   q19	1836	1784	1778	1778
   q20	2414	2061	2067	2061
   q21	8989	8665	8605	8605
   q22	913	811	803	803
   Total cold run time: 84529 ms
   Total hot run time: 77866 ms
   ```
   </details>
   


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](executor)Fix memtracker not set to task group [doris]

Posted by "wangbo (via GitHub)" <gi...@apache.org>.
wangbo commented on PR #27699:
URL: https://github.com/apache/doris/pull/27699#issuecomment-1829398459

   run buildall


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](executor)Fix memtracker not set to task group [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #27699:
URL: https://github.com/apache/doris/pull/27699#issuecomment-1829410166

   PR approved by anyone and no changes requested.


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](executor)Fix memtracker not set to task group [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #27699:
URL: https://github.com/apache/doris/pull/27699#issuecomment-1829542903

   (From new machine)TeamCity pipeline, clickbench performance test result:
    the sum of best hot time: 43.07 seconds
    stream load tsv:          579 seconds loaded 74807831229 Bytes, about 123 MB/s
    stream load json:         18 seconds loaded 2358488459 Bytes, about 124 MB/s
    stream load orc:          65 seconds loaded 1101869774 Bytes, about 16 MB/s
    stream load parquet:          33 seconds loaded 861443392 Bytes, about 24 MB/s
    insert into select:          29.0 seconds inserted 10000000 Rows, about 344K ops/s
    storage size: 17098831075 Bytes


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](executor)Fix memtracker not set to task group [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on code in PR #27699:
URL: https://github.com/apache/doris/pull/27699#discussion_r1407450622


##########
be/src/agent/cgroup_cpu_ctl.cpp:
##########
@@ -41,7 +41,7 @@ Status CgroupCpuCtl::init() {
     return Status::OK();
 }
 
-void CgroupCpuCtl::get_cgroup_cpu_info(uint64_t* cpu_shares, uint64_t* cpu_hard_limit) {
+void CgroupCpuCtl::get_cgroup_cpu_info(uint64_t* cpu_shares, int* cpu_hard_limit) {

Review Comment:
   warning: method 'get_cgroup_cpu_info' can be made const [readability-make-member-function-const]
   
   ```suggestion
   void CgroupCpuCtl::get_cgroup_cpu_info(uint64_t* cpu_shares, int* cpu_hard_limit) const {
   ```
   
   be/src/agent/cgroup_cpu_ctl.h:50:
   ```diff
   -     void get_cgroup_cpu_info(uint64_t* cpu_shares, int* cpu_hard_limit);
   +     void get_cgroup_cpu_info(uint64_t* cpu_shares, int* cpu_hard_limit) const;
   ```
   



##########
be/src/runtime/task_group/task_group_manager.cpp:
##########
@@ -67,7 +67,7 @@ TaskGroupPtr TaskGroupManager::get_task_group_by_id(uint64_t tg_id) {
     return nullptr;
 }
 
-bool TaskGroupManager::set_task_sche_for_query_ctx(uint64_t tg_id, QueryContext* query_ctx_ptr) {
+bool TaskGroupManager::set_cg_task_sche_for_query_ctx(uint64_t tg_id, QueryContext* query_ctx_ptr) {

Review Comment:
   warning: method 'set_cg_task_sche_for_query_ctx' can be made static [readability-convert-member-functions-to-static]
   
   be/src/runtime/task_group/task_group_manager.h:67:
   ```diff
   -     bool set_cg_task_sche_for_query_ctx(uint64_t tg_id, QueryContext* query_ctx_ptr);
   +     static bool set_cg_task_sche_for_query_ctx(uint64_t tg_id, QueryContext* query_ctx_ptr);
   ```
   



##########
be/src/runtime/task_group/task_group_manager.cpp:
##########
@@ -83,8 +83,8 @@
     return true;
 }
 
-Status TaskGroupManager::upsert_task_scheduler(taskgroup::TaskGroupInfo* tg_info,
-                                               ExecEnv* exec_env) {
+Status TaskGroupManager::upsert_cg_task_scheduler(taskgroup::TaskGroupInfo* tg_info,

Review Comment:
   warning: method 'upsert_cg_task_scheduler' can be made static [readability-convert-member-functions-to-static]
   
   be/src/runtime/task_group/task_group_manager.h:53:
   ```diff
   -     Status upsert_cg_task_scheduler(taskgroup::TaskGroupInfo* tg_info, ExecEnv* exec_env);
   +     static Status upsert_cg_task_scheduler(taskgroup::TaskGroupInfo* tg_info, ExecEnv* exec_env);
   ```
   



-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](executor)Fix memtracker not set to task group [doris]

Posted by "yiguolei (via GitHub)" <gi...@apache.org>.
yiguolei merged PR #27699:
URL: https://github.com/apache/doris/pull/27699


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org