You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Ted Ross (JIRA)" <ji...@apache.org> on 2019/06/03 11:50:00 UTC

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

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

Ted Ross updated DISPATCH-1348:
-------------------------------
    Summary: Avoid qdr_error_t allocation if not necessary  (was: Save qdr_error_t allocation if not necessary)

> Avoid 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
>            Assignee: Ganesh Murthy
>            Priority: Major
>             Fix For: 1.8.0
>
>
> 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):
> 12 pairs master (no lock-free queues, no qdr_error_t fix): 285 K msg/sec
> 12 pairs master (no lock-free queues, yes qdr_error_t fix): 402 K msg/sec
> 12 pairs lock-free q (no qdr_error_t fix):  311 K msg/sec
> 12 pairs lock-free q (yes qdr_error_t fix):  510 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