IP Library Granted Patent US 9,323,568
Granted Patent B2
US 9,323,568 · App. 14/163,297 · Granted Apr 26, 2016

Indicating a low priority transaction

Inventors: Fadi Y. Busaba (Poughkeepsie, NY); Michael Karl Gschwind (Chappaqua, NY); Eric M. Schwarz (Gardiner, NY)
Assignee: International Business Machines Corporation
G06F9/467G06F9/3004G06F9/30087G06F9/30185G06F9/3834
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,323,568
App. No.
14/163,297
Granted
Apr 26, 2016
Kind
B2
Abstract

Accessing at least one memory location by one of a plurality of transactions in a multi-processor transactional execution environment is provided. Included is assigning, by a computer system, a conflict priority to a transaction; based on encountering a conflict with another process for a memory location, comparing, by the computer system, the assigned conflict priority of the transaction with another priority of the another process; and based on the conflict priority of the transaction being the higher priority continuing the transaction; and based on the conflict priority of the transaction being the lower priority, aborting the transaction.

Claims (57)

1. A method for accessing at least one memory location by one of a plurality of transactions in a multi-processor transactional execution environment, the method comprising:

assigning, by a local processor, a conflict priority to a local transaction wherein the conflict priority is set by a conflict priority setting instruction;

receiving, by the local processor executing the local transaction, a protocol request packet from a remote processor executing a remote transaction, wherein the protocol request packet includes a request for a cache line of data from the local processor and a conflict priority of the remote transaction;

based on encountering a conflict with the remote transaction for a memory location, comparing, by the local processor, the assigned conflict priority of the local transaction with the conflict priority of the remote transaction; and

based on the conflict priority of the local transaction being a higher priority, the local processor continuing the local transaction, sending a protocol response packet rejecting the request, and the remote processor aborting the remote transaction; and

based on the conflict priority of the local transaction being a lower priority, aborting, by the local processor, the local transaction, and sending a protocol response packet including the requested cache line of data.

2. The method according to claim 1 , wherein a process includes one or more transactions and wherein the one or more transactions include one or more of a legacy transaction, a constrained transaction, and a nested transaction.

3. The method according to claim 2 , wherein a legacy transaction is assigned a default conflict priority.

4. The method according to claim 1 , wherein the assigning the conflict priority further comprises:

executing, by the local processor, the conflict priority setting instruction comprising a mnemonic field having a mnemonic value, and an operand corresponding to the conflict priority; and

immediately starting the local transaction with the assigned conflict priority.

5. The method according to claim 1 , wherein the protocol request packet comprises: a keyword; the conflict priority of the remote transaction; a tag field; an indicator corresponding to an access type; a target field identifying a storage location; and a cyclic redundancy check (CRC) field.

6. The method of claim 1 , wherein a non-transactional memory access is assigned a conflict priority including either the default conflict priority or a conflict priority specified by a thread.

7. A computer program product for accessing at least one memory location by one of a plurality of transactions in a multi-processor transactional execution environment, 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:

assigning, by a local processor, a conflict priority to a local transaction wherein the conflict priority is set by a conflict priority setting instruction;

receiving, by the local processor executing the local transaction, a protocol request packet from a remote processor executing a remote transaction, wherein the protocol request packet includes a request for a cache line of data from the local processor and a conflict priority of the remote transaction;

based on encountering a conflict with the remote transaction for a memory location, comparing, by the local processor, the assigned conflict priority of the local transaction with the conflict priority of the remote transaction;

based on the conflict priority of the local transaction being a higher priority, the local processor continuing the local transaction, sending a protocol response packet rejecting the request, and the remote processor aborting the remote transaction; and

based on the conflict priority of the local transaction being a lower priority, aborting, by the local processor, the local transaction, and sending a protocol response packet including the requested cache line of data.

8. The computer program product according to claim 7 , wherein a process includes one or more transactions and wherein the one or more transactions include one or more of a legacy transaction, a constrained transaction, and a nested transaction.

9. The computer program product according to claim 8 , wherein a legacy transaction is assigned a default conflict priority.

10. The computer program product according to claim 7 , wherein the assigning the conflict priority further comprises:

executing, by the local processor, the conflict priority setting instruction comprising a mnemonic field having a mnemonic value, and an operand corresponding to the conflict priority; and

immediately starting the local transaction with the assigned conflict priority.

11. The computer program product according to claim 7 , wherein the protocol request packet comprises: a keyword; the conflict priority of the remote transaction; a tag field; an indicator corresponding to an access type; a target field identifying a storage location; and a cyclic redundancy check (CRC) field.

12. The computer program product according to claim 7 , wherein the conflict priority further comprises at least one of:

a continuous range of values;

a Boolean value;

an integer value;

a floating point value;

a decimal value;

a hexadecimal value; and

a binary value.

13. The computer program product of claim 7 , wherein a non-transactional memory access is assigned a conflict priority including either the default conflict priority or a conflict priority specified by a thread.

14. A computer system for accessing at least one memory location by one of a plurality of transactions in a multi-processor transactional execution environment, the computer system comprising:

a memory; and

a processor in communications with the memory, wherein the computer system is configured to perform a method, said method comprising:

assigning, by a local processor, a conflict priority to a local transaction wherein the conflict priority is set by a conflict priority setting instruction;

receiving, by the local processor executing the local transaction, a protocol request packet from a remote processor executing a remote transaction, wherein the protocol request packet includes a request for a cache line of data from the local processor and a conflict priority of the remote transaction;

based on encountering a conflict with the remote transaction for a memory location, comparing, by the local processor, the assigned conflict priority of the local transaction with the conflict priority of the remote transaction; and

based on the conflict priority of the local transaction being a higher priority, the local processor continuing the local transaction, sending a protocol response packet rejecting the request, and the remote processor aborting the remote transaction; and

based on the conflict priority of the local transaction being a lower priority, aborting, by the local processor, the local transaction, and sending a protocol response packet including the requested cache line of data.

15. The computer system according to claim 14 , wherein a process includes one or more transactions and wherein the one or more transactions include one or more of a legacy transaction, a constrained transaction, and a nested transaction.

16. The computer system according to claim 15 , wherein a legacy transaction is assigned a default conflict priority.

17. The computer system of claim 14 , wherein a non-transactional memory access is assigned a conflict priority including either the default conflict priority or a conflict priority specified by a thread.

18. The computer system according to claim 14 , wherein the protocol request packet comprises: a keyword; the conflict priority of the remote transaction; a tag field; an indicator corresponding to an access type; a target field identifying a storage location; and a cyclic redundancy check (CRC) field.

19. The computer system according to claim 14 , wherein the assigning the conflict priority further comprises:

executing, by the local processor, the conflict priority setting instruction comprising a mnemonic field having a mnemonic value, and an operand corresponding to the conflict priority; and

immediately starting the local transaction with the assigned conflict priority.

20. The computer system according to claim 19 , wherein the operand further comprises at least one of:

a control register;

a special purpose register;

a general purpose register;

a location calculated as an offset from a base address;

a floating point register; and

an immediate parameter.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 24, 2014
From: BUSABA, FADI Y.; GSCHWIND, MICHAEL KARL; SCHWARZ, ERIC M.
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 032040/0529 →
Continuity (1)
Related Publication 20150212851A1 · Jul 30, 2015