发明名称 SYSTEM AND METHOD FOR SUPPORTING AN ADAPTIVE SELF-TUNING LOCKING MECHANISM IN A TRANSACTIONAL MIDDLEWARE MACHINE ENVIRONMENT
摘要 A system and method can support an adaptive self-tuning locking mechanism in a transactional middleware machine environment. The system allows each process in a plurality of processes to perform one or more test-and-set (TAS) operations in order to obtain a lock for data in a shared memory. Then, the system can obtain a spin failed rate for a current tuning period, wherein a spin failure happens when a process fails to obtain the lock after performing a maximum number of rounds of TAS operations that are allowed. Furthermore, the system can adaptively configuring a spin count for a next tuning period based on the obtained spin failure rate, wherein the spin count specifies the maximum number of rounds of TAS operations that are allowed for the next tuning period.
申请公布号 US2015317191(A1) 申请公布日期 2015.11.05
申请号 US201414309328 申请日期 2014.06.19
申请人 Oracle International Corporation 发明人 Shen Xugang;Zhang Qingsheng;Jin Yongshun
分类号 G06F9/52;G06F11/07 主分类号 G06F9/52
代理机构 代理人
主权项 1. A method for supporting an adaptive locking mechanism in a transactional middleware machine environment, comprising: performing, via each process in a plurality of processes, one or more test-and-set (TAS) operations in order to obtain a lock for data in a shared memory; obtaining a spin failed rate for a current tuning period, wherein a spin failure happens when a process fails to obtain the lock after performing a maximum number of rounds of TAS operations that are allowed; and adaptively configuring a spin count for a next tuning period based on the obtained spin failure rate, wherein the spin count specifies the maximum number of rounds of TAS operations that are allowed for the next tuning period.
地址 Redwood Shores CA US