You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "hqx871 (via GitHub)" <gi...@apache.org> on 2023/07/03 06:07:59 UTC

[GitHub] [doris] hqx871 opened a new pull request, #21435: fix lru cache handle field order

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

   ## Proposed changes
   
   For LRUHandle, all fields should be put ahead of key_data.
   <!--Describe your changes.-->
   
   
   


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


[GitHub] [doris] github-actions[bot] commented on pull request #21435: [Fix](cache) fix lru cache handle field order

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

   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


[GitHub] [doris] github-actions[bot] commented on pull request #21435: [Fix](cache) fix lru cache handle field order

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

   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


[GitHub] [doris] hqx871 commented on pull request #21435: [Fix] (cache) fix lru cache handle field order

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

   > “For LRUHandle, all fields should be put ahead of key_data.” why? Is there anything wrong if we keep the previous order? @hqx871
   
   The LRUHandle is allocated using malloc and starting from field key_data is for key data.
   
   ```
       size_t handle_size = sizeof(LRUHandle) - 1 + key.size();
       LRUHandle* e = reinterpret_cast<LRUHandle*>(malloc(handle_size));
       e->value = value;
       e->deleter = deleter;
       e->charge = charge;
       e->key_length = key.size();
       e->total_size = (_type == LRUCacheType::SIZE ? handle_size + charge : 1);
       DCHECK(_type == LRUCacheType::SIZE || bytes != -1) << " _type " << _type;
       e->bytes = (_type == LRUCacheType::SIZE ? handle_size + charge : handle_size + bytes);
       e->hash = hash;
       e->refs = 2; // one for the returned handle, one for LRUCache.
       e->next = e->prev = nullptr;
       e->in_cache = true;
       e->priority = priority;
       e->mem_tracker = tracker;
       e->type = _type;
       memcpy(e->key_data, key.data(), key.size());
   ```
   


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


[GitHub] [doris] hqx871 commented on pull request #21435: fix lru cache handle field order

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

   the pipeline failed but seams irrelevant with pr


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


[GitHub] [doris] hqx871 commented on pull request #21435: fix lru cache handle field order

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

   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


[GitHub] [doris] yiguolei commented on pull request #21435: [Fix] (cache) fix lru cache handle field order

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

   “For LRUHandle, all fields should be put ahead of key_data.”   why? Is there anything wrong if we keep the previous order? @hqx871 


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


[GitHub] [doris] xinyiZzz merged pull request #21435: [Fix](cache) fix lru cache handle field order

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


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


[GitHub] [doris] github-actions[bot] commented on pull request #21435: fix lru cache handle field order

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

   clang-tidy review says "All clean, LGTM! :+1:"


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


[GitHub] [doris] hello-stephen commented on pull request #21435: fix lru cache handle field order

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

   TeamCity pipeline, clickbench performance test result:
    the sum of best hot time: 39.22 seconds
    stream load tsv:          454 seconds loaded 74807831229 Bytes, about 157 MB/s
    stream load json:         19 seconds loaded 2358488459 Bytes, about 118 MB/s
    stream load orc:          57 seconds loaded 1101869774 Bytes, about 18 MB/s
    stream load parquet:          28 seconds loaded 861443392 Bytes, about 29 MB/s
    insert into select:          65.9 seconds inserted 10000000 Rows, about 151K ops/s
    https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230703073056_clickbench_pr_171238.html


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


[GitHub] [doris] yiguolei commented on pull request #21435: [Fix](cache) fix lru cache handle field order

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

   This is a very deep hidden bug. Thanks for your contribution.


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