# US 11,119,920 B2 · Systems and methods for non-speculative store coalescing and generating atomic write sets using address subsets

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 11,119,920 B2
- Document ID: US11119920B2
- Status: Granted
- Kind: B2
- Application number: 16/388,120
- Filed: 2019-04-18
- Published: 2019-10-24
- Granted: 2021-09-14
- Earliest claimed: 2018-04-19
- Assignees: Eta Scale AB
- Applicants: Eta Scale AB
- Inventors: Alberto Ros; Stefanos Kaxiras
- Web page: https://patentgrep.com/patent/US11119920B2

## CPC

- G06F 12/0806: Multiuser, multiprocessor or multiprocessing cache systems
- G06F 12/126: with special data handling, e.g. priority of data or instructions, handling errors or pinning
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0655: {Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices}
- G06F 3/0673: {Single storage device}
- G06F 12/0868: Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
- G06F 2212/62: Details of cache specific to multiprocessor cache arrangements
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for performing store buffer coalescing in a multiprocessor computer system includes forming, in a coalescing store buffer associated with a core in said multiprocessor system, an atomic group of writes; and performing each individual write in said atomic group in an order which is a function of an address in a memory system to which each of the writes in said atomic group are being written.

## Claims

### Claim 1

A multiprocessor system comprising:
multiple processor cores;
a memory system; and
multiple coalescing store buffers, each associated with a respective one of the multiple processor cores, for receiving store instructions from a respective processor core with store data to be written into said memory system;
wherein the store data are coalesced in blocks that correspond to a multitude of consecutive memory locations;
wherein a block written in the memory system, updates memory locations that correspond to memory locations of the store instructions that coalesced in said block with the corresponding store data;
wherein said multiple coalescing store buffers each form atomic groups of said store instructions by writing the resulting coalesced data blocks as an atomic group;
wherein each block within an atomic group is written to the memory system in an order which is a function of an address in the memory system to which that block is written.

### Claim 2 (depends on 1)

The system of claim 1, wherein a data block in an atomic group corresponds to a plurality of writes directed to a cacheline in said memory system.

### Claim 3 (depends on 2)

The system of claim 2, wherein the data block, from a time it is written in the memory system, prevents a cacheline, that is updated with the data of the block, from being written or read by any other core, until all data blocks of the same atomic group have been written in the memory system.

### Claim 4 (depends on 1)

The system of claim 1, wherein the multiprocessor system has a memory consistency model which requires that it appears to enforce a program order of individual stores in memory.

### Claim 5 (depends on 4)

The system of claim 4, wherein a composition of each atomic group in terms of the store instructions that coalesce their data in the blocks of the atomic group is such that store instructions whose program order is affected by coalescing are grouped in the same atomic group while the program order between any two store instructions belonging to different groups is maintained.

### Claim 6 (depends on 1)

The system of claim 1, wherein a composition of each atomic group in terms of its blocks is such that it can fit entirely in any set-associative structure, direct-mapped, or fully-associative structure, that are needed to perform writes in the memory system of said multiprocessor system.

### Claim 7 (depends on 6)

The system of claim 6, wherein the composition of an atomic group is determined based on a function of an index and an associativity of the smallest set-associative, direct-mapped, or fully-associative memory structure needed to perform writes in the memory system of said multiprocessor system.

### Claim 8 (depends on 1)

The system of claim 1, wherein the order in which each block within an atomic group is written to the memory system is a function of a portion of a complete memory address.

### Claim 9

A method for performing store buffer coalescing in a multiprocessor computer system, the method comprising:
forming, in a coalescing store buffer associated with a core in said multiprocessor system, an atomic group of writes; and
performing each individual write in said atomic group in an order which is a function of an address in a memory system to which each of the writes in said atomic group are being written.

### Claim 10 (depends on 9)

The method of claim 9, wherein the atomic group of writes are a plurality of writes directed to a cacheline in said memory system.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
preventing a same cacheline from being written or read by cores other than said core, while the atomic group of writes is being performed.

### Claim 12 (depends on 9)

The method of claim 9, wherein the multiprocessor system has a memory consistency model which requires it to appear to enforce a program order of individual stores in memory.

### Claim 13 (depends on 12)

The method of claim 12, wherein a composition of each atomic group in terms of store instructions that coalesce their data in the blocks of the atomic group is such that store instructions whose program order is affected by coalescing are grouped in the same atomic group while the program order between any two store instructions belonging to different groups is maintained.

### Claim 14 (depends on 9)

The method of claim 9, wherein a composition of each atomic group in terms of its blocks is such that it can fit entirely in any set-associative structure, direct-mapped, or fully-associative structure, that is needed to perform writes.

### Claim 15 (depends on 14)

The method of claim 14, wherein the composition of an atomic group is determined based on a function of an index and an associativity of the smallest set-associative, direct-mapped, or fully-associative memory structure needed to perform writes.

### Claim 16 (depends on 9)

The method of claim 9, wherein the order in which each individual write of an atomic group write is performed in the memory system is a function of a portion of a complete memory address.
