首页> 外国专利> Lingering locks with fairness control for multi-node computer systems

Lingering locks with fairness control for multi-node computer systems

机译:多节点计算机系统具有公平控制的持久锁

摘要

The processors in a multiprocessor computer system are grouped into nodes. The processors can request a lock, but the lock is granted to only one processor at any given time to provide exclusive processor access to the resource protected by the lock. When a processor releases the lock, the lock is made available to another processor at the same node, even though a processor at a different node may have requested the lock earlier. To maintain fairness, the lock is forced to another node after granting a certain number of consecutive requests at a node or after a certain time period. In one embodiment, a specialized data structure representing a lock request from a processor at a particular node is placed into a queue. A later requesting processor can acquire a preemptive position in the queue by spinning on a data structure already in the queue if the data structure corresponds to the processor's node. To maintain fairness, the data structure is limited to a certain number of uses, after which additional processors are not permitted to spin on it. When the data structure has no more active spinners, it is dequeued, and the lock is made available to a processor spinning on the next structure in the queue. Logic for handling interrupts is included, and the bitfield arrangement of the data structure is tailored to the locking scheme. Preallocating data structures for the queue increases performance.
机译:多处理器计算机系统中的处理器被分组为节点。处理器可以请求锁,但是在任何给定时间仅将锁授予一个处理器,以提供对锁保护的资源的独占处理器访问。当处理器释放锁时,即使其他节点上的处理器可能更早请求了锁,该锁也可用于同一节点上的另一个处理器。为了保持公平,在节点上准许一定数量的连续请求之后或在一定时间段之后,将锁定强制到另一个节点。在一个实施例中,将表示来自特定节点处的处理器的锁定请求的专用数据结构放入队列中。如果数据结构对应于处理器的节点,则稍后请求的处理器可以通过旋转队列中已有的数据结构来获取队列中的抢占位置。为了保持公平,将数据结构限制为一定数量的用途,然后再不允许其他处理器对其进行旋转。当数据结构不再有活动的微调器时,将其出队,并将锁提供给在队列中下一个结构上旋转的处理器使用。包括用于处理中断的逻辑,并且数据结构的位域排列适合锁定方案。为队列预分配数据结构可提高性能。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号