Adaptive process for data sharing with selection of lock elision and locking

US9524195B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-9524195-B2
Application numberUS-201414191581-A
CountryUS
Kind codeB2
Filing dateFeb 27, 2014
Priority dateFeb 27, 2014
Publication dateDec 20, 2016
Grant dateDec 20, 2016

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

In a Hardware Lock Elision (HLE) Environment, predictively determining whether a HLE transaction should actually acquire a lock and execute non-transactionally, is provided. Included is, based on encountering an HLE lock-acquire instruction, determining, based on an HLE predictor, whether to elide the lock and proceed as an HLE transaction or to acquire the lock and proceed as a non-transaction; based on the HLE predictor predicting to elide, setting the address of the lock as a read-set of the transaction, and suppressing any write by the lock-acquire instruction to the lock and proceeding in HLE transactional execution mode until an xrelease instruction is encountered wherein the xrelease instruction releases the lock or the HLE transaction encounters a transactional conflict; and based on the HLE predictor predicting not-to-elide, treating the HLE lock-acquire instruction as a non-HLE lock-acquire instruction, and proceeding in non-transactional mode.

First claim

Opening claim text (preview).

What is claimed is: 1. A computer program product for predictively determining an execution mode, the computer program product comprising: a computer readable storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising: in response to detecting, a transaction-starting prefix instruction added to a lock acquire instruction, by a processor having Hardware Lock Elision (HLE) support, beginning a transaction in lock elision mode, based on a count of mispredictions not exceeding a threshold number of failed transaction executions, otherwise entering non-transactional lock mode based on the count of mispredictions exceeding the threshold number of failed transaction executions; in response to detecting a transaction-ending prefix instruction added to a lock release instruction, committing the transaction based on the processor not detecting an interference by an other processor, and incrementing a count of successful predictions; and in response to the processor detecting the interference by the other processor, obtaining a lock, restarting the transaction in non-transactional lock mode, and incrementing the count of mispredictions. 2. The computer program product according to claim 1 , further comprising: in response to accessing a memory region by a processor not having HLE support, invoking by the processor a conflict predictor wherein the processor enters lock elision mode based on a count of mispredictions not exceeding a threshold number of failed executions, and wherein the processor enters non-transactional lock mode based on the count of mispredictions exceeding the threshold number of failed executions; incrementing the count of mispredictions and retrying the memory region access in non-transactional lock mode, based on the processor in lock elision mode detecting the interference by the other processor, and incrementing the count of successful predictions based on the processor not detecting the interference by the other processor; and based on completion of the non-transactional lock mode memory region access, resetting, by the conflict predictor, the count of mispredictions and the count of successful predictions. 3. The computer program product according to claim 1 , wherein: the prefix instruction is a processor hint, wherein the processor hint includes: the prefix instruction, a compiler instruction to prefer non-transactional lock mode or lock elision mode, and a calculated estimated relative cost of executing in non-transactional lock mode or lock elision mode. 4. A computer system for predictively determining an execution mode, the computer system comprising: a memory; and a processor in communications with the memory, wherein the computer system is configured to perform a method, the method comprising: in response to detecting, by a processor having Hardware Lock Elision (HLE) support, a transaction-starting prefix instruction added to a lock acquire instruction, beginning a transaction in lock elision mode, based on a count of mispredictions not exceeding a threshold number of failed transaction executions, otherwise entering non-transactional lock mode based on the count of mispredictions exceeding the threshold number of failed transaction executions; in response to detecting a transaction-ending prefix instruction added to a lock release instruction, committing the transaction based on the processor not detecting an interference by an other processor, and incrementing a count of successful predictions; and in response to the processor detecting the interference by the other processor, obtaining a lock, restarting the transaction in non-transactional lock mode, and incrementing the count of mispredictions. 5. The computer system according to claim 1 , further comprising: in response to accessing a memory region by a processor not having HLE support, invoking by the processor a conflict predictor wherein the processor enters lock elision mode based on a count of mispredictions not exceeding a threshold number of failed executions, and wherein the processor enters non-transactional lock mode based on the count of mispredictions exceeding the threshold number of failed executions; incrementing the count of mispredictions and retrying the memory region access in lock mode, based on the processor in lock elision mode detecting the interference by the other processor, and incrementing the count of successful predictions based on the processor not detecting the interference by the other processor; and based on completion of the non-transactional lock mode memory region access, resetting, by the conflict predictor, the count of mispredictions and the count of successful predictions. 6. The computer system according to claim 4 , wherein: the prefix instruction is a processor hint, wherein the processor hint includes: the prefix instruction, a compiler instruction to prefer non-transactional lock mode or lock elision mode, and a calculated estimated relative cost of executing in non-transactional lock mode or lock elision mode.

Assignees

Inventors

Classifications

  • by assessing time · CPC title

  • G06F9/526Primary

    Mutual exclusion algorithms · CPC title

  • where the computing system component is a central processing unit [CPU] · CPC title

  • Resetting or repowering · CPC title

  • Knowledge representation; Symbolic representation · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US9524195B2 cover?
In a Hardware Lock Elision (HLE) Environment, predictively determining whether a HLE transaction should actually acquire a lock and execute non-transactionally, is provided. Included is, based on encountering an HLE lock-acquire instruction, determining, based on an HLE predictor, whether to elide the lock and proceed as an HLE transaction or to acquire the lock and proceed as a non-transaction…
Who is the assignee on this patent?
IBM
What technology area does this patent fall under?
Primary CPC classification G06F9/526. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Dec 20 2016 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 1 related publication on this page (citations in our corpus or others sharing the same primary CPC).