You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Ganesh Murthy (Jira)" <ji...@apache.org> on 2019/09/17 20:21:00 UTC

[jira] [Updated] (DISPATCH-1342) Replaced mutex with spin lock on qd_message content

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

Ganesh Murthy updated DISPATCH-1342:
------------------------------------
    Labels: performance  (was: )

> Replaced mutex with spin lock on qd_message content
> ---------------------------------------------------
>
>                 Key: DISPATCH-1342
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1342
>             Project: Qpid Dispatch
>          Issue Type: Improvement
>          Components: Routing Engine
>    Affects Versions: 1.7.0
>            Reporter: Francesco Nigro
>            Priority: Minor
>              Labels: performance
>
> Given that qd_message creation and qd_message_free involves sys_mutex allocation/free and they are OS resources too, using spin locks will reduce the CPU/memory usage while performing such frequent operations.
> In addition it would make the router more reactive and resilient to OS thread scheduling while message->content is being concurrently accessed too, given that such accesses are meant to not last long and there is no need to involve OS arbitration to park/awake threads,



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org