You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/07/30 14:41:21 UTC
[GitHub] [incubator-nuttx] patacongo opened a new issue #1488: Use fair spinlocks in SMP
patacongo opened a new issue #1488:
URL: https://github.com/apache/incubator-nuttx/issues/1488
The spinlock implementation is very simple. It is just a simple first-come, first-served spinlock.
This kind of spinlock and have adverse effects in SMP because under certain conditions other CPUs can always get the spinlock and one CPU can randomly be delayed for a significant amount of time.
We should consider replacing a fair spinlock implementation that enforces first-in, first out spinlocks. There are several fair spinlock algorithms. Some established and in common use (like ticket locks), some simple and some complex, some straight-forward and some more controversial. A first step would be to decide on an appropriate fair spinlock algorithm.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] patacongo commented on issue #1488: Use fair spinlocks in SMP
Posted by GitBox <gi...@apache.org>.
patacongo commented on issue #1488:
URL: https://github.com/apache/incubator-nuttx/issues/1488#issuecomment-666421856
> We should consider replacing a fair spinlock implementation that enforces first-in, first out spinlocks.
Most fair spinlock algorithms try to maintain FIFO spinlock access. I would think for a real time system, priority based access would lead to better control over response latencies.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org