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/05/30 08:00:00 UTC

[jira] [Updated] (DISPATCH-1348) Save qdr_error_t allocation if not necessary

     [ https://issues.apache.org/jira/browse/DISPATCH-1348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francesco Nigro updated DISPATCH-1348:
--------------------------------------
    Description: 
qdr_error_from_pn on error.c is allocating qdr_error_t on the hot path ie AMQP_disposition_handler: saving those allocations would reduce CPU usage (and cache misses) on both core and worker threads, making the router able to scale better while under load.
Initial tests has shown some improvements under load (ie with core CPU thread ~97% with the new version and ~99% with master):
5 pairs with master - 490 K msg/sec
5 pairs with new version - 530 K msg/sec

  was:
qdr_error_from_pn on error.c is allocating qdr_error_t on the hot path ie AMQP_disposition_handler: saving those allocations would reduce CPU usage (and cache misses) on both core and worker threads, making the router able to scale better while under load.
Initial tests has shown some improvements under load (ie with core CPU thread ~97%):
5 pairs with master - 490 K msg/sec
5 pairs with new version - 530 K msg/sec


> Save qdr_error_t allocation if not necessary
> --------------------------------------------
>
>                 Key: DISPATCH-1348
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1348
>             Project: Qpid Dispatch
>          Issue Type: Improvement
>          Components: Routing Engine
>    Affects Versions: 1.7.0
>            Reporter: Francesco Nigro
>            Priority: Major
>
> qdr_error_from_pn on error.c is allocating qdr_error_t on the hot path ie AMQP_disposition_handler: saving those allocations would reduce CPU usage (and cache misses) on both core and worker threads, making the router able to scale better while under load.
> Initial tests has shown some improvements under load (ie with core CPU thread ~97% with the new version and ~99% with master):
> 5 pairs with master - 490 K msg/sec
> 5 pairs with new version - 530 K msg/sec



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