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/24 09:24: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 ]

Francesco Nigro updated DISPATCH-1342:
--------------------------------------
    Description: 
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,

> 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
>
> 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
(v7.6.3#76005)

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