You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Francesco Nigro (JIRA)" <ji...@apache.org> on 2019/06/03 16:01:00 UTC
[jira] [Comment Edited] (DISPATCH-1352) qd_buffer_list_clone cost
is dominated by cache misses
[ https://issues.apache.org/jira/browse/DISPATCH-1352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16854746#comment-16854746 ]
Francesco Nigro edited comment on DISPATCH-1352 at 6/3/19 4:00 PM:
-------------------------------------------------------------------
[~kgiusti] If the POC will work "maybe" we have the chance to do the same while allocating the original qd_message_pvt_t too.
Annotations are being extracted by fields AFAIK: if they have a small-ish size (< 512 bytes) maybe it would be more beneficial to just copy them into the ones embedded into qd_message_pvt_t instead of "moving" into qd_message_pvt_t.
It would allow the allocated qd_buffer_t from the field to be short living and quick released on the same allocating thread, improving the effectiveness of the thread local qd_buffer_t pool.
was (Author: nigro.fra@gmail.com):
[~kgiusti] If the POC will work "maybe" we have the chance to do the same while allocating the original qd_message_pvt_t too: annotations are being extracted by fields AFAIK: if they have a smal size (< 512 bytes) maybe it would be more beneficial to just copy them into the ones embedded into qd_message_pvt_t: it would allow the qd_buffer_t allocated from the field to be short living on the same allocating thread, improving the effectiveness of the thread local qd_buffer_t pool.
> qd_buffer_list_clone cost is dominated by cache misses
> ------------------------------------------------------
>
> Key: DISPATCH-1352
> URL: https://issues.apache.org/jira/browse/DISPATCH-1352
> Project: Qpid Dispatch
> Issue Type: Improvement
> Components: Routing Engine
> Affects Versions: 1.7.0
> Reporter: Francesco Nigro
> Priority: Major
> Attachments: screenshot-1.png, screenshot-2.png
>
>
> qd_buffer_list_clone on qd_message_copy for qd_message_pvt_t.ma_to_override/ma_trace/ma_ingress is dominated by cache misses costs:
> * to "allocate" new qd_buffer_t
> * to reference any qd_buffer_t from the source qd_buffer_list_t
> Such cost is the main reason why the core thread is having a very low IPC (< 1 istr/cycle) and given the single threaded nature of the router while dealing with it, by solving it will bring a huge performance improvement to make the router able to scale better.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org