Adaptive reader-writer lock
First Claim
1. A computer system comprising:
- multiple processors;
a counter for measuring read-side acquisitions by a unit within a computer processing system;
first and second system-wide measures of read and write acquisitions of said processors; and
a manager adapted to switch from a first synchronization mechanism to a second synchronization mechanism responsive to at least one of said measures, wherein said synchronization mechanisms are selected from the group consisting of;
a distributed reader-writer lock, a centralized reader-writer lock, an exclusive lock mode, and RCU.
0 Assignments
0 Petitions
Accused Products
Abstract
A method and computer system for dynamically selecting an optimal synchronization mechanism for a data structure in a multiprocessor environment. The method determines a quantity of read-side and write-side acquisitions, and evaluates the data to determine an optimal mode for efficiently operating the computer system while maintaining reduced overhead. The method incorporates data received from the individual units within a central processing system, the quantity of write-side acquisitions in the system, and data which has been subject to secondary measures, such as formatives of digital filters. The data subject to secondary measures includes, but is not limited to, a quantity of read-side acquisitions, a quantity of write-side acquisitions, and a quantity of read-hold durations. Based upon the individual unit data and the system-wide data, including the secondary measures, the operating system may select the most efficient synchronization mechanism from among the mechanisms available. Accordingly, efficiency of a computer system may be enhanced with the ability to selectively choose an optimal synchronization mechanism based upon selected and calculated parameters.
-
Citations
13 Claims
-
1. A computer system comprising:
-
multiple processors; a counter for measuring read-side acquisitions by a unit within a computer processing system; first and second system-wide measures of read and write acquisitions of said processors; and a manager adapted to switch from a first synchronization mechanism to a second synchronization mechanism responsive to at least one of said measures, wherein said synchronization mechanisms are selected from the group consisting of;
a distributed reader-writer lock, a centralized reader-writer lock, an exclusive lock mode, and RCU. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. In a multiprocessor system, an article comprising:
-
a computer-readable medium; means in the medium for maintaining a measure of read-side acquisitions by a unit within a computer processing system having multiple processors; means in the medium for maintaining first and second system-wide measures of read and write acquisitions; and means in the medium for switching from a first synchronization mechanism to a second synchronization mechanism responsive to at least one of said measures, wherein said synchronization mechanisms are selected from the group consisting of;
a distributed reader-writer lock, a centralized reader-writer lock, an exclusive lock mode, and RCU. - View Dependent Claims (8, 9, 10, 11, 12, 13)
-
Specification