# US 2011/0238942 A1 · System and method for robust and efficient free chain management

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

- Number: US 2011/0238942 A1
- Document ID: US20110238942A1
- Status: Published application
- Kind: A1
- Application number: 12/729,324
- Filed: 2010-03-23
- Published: 2011-09-29
- Earliest claimed: 2010-03-23
- Assignees: Avaya Inc.
- Inventors: John H. MEINERS
- Web page: https://patentgrep.com/patent/US20110238942A1

## CPC

- G06F 12/122: of the least frequently used [LFU] type, e.g. with individual count value
- G06F 9/5022: {Mechanisms to release resources}
- G06F 9/5061: {Partitioning or combining of resources}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed herein are systems, methods, and non-transitory computer-readable storage media for managing free chains of compute resources. A system configured to practice the method divides a free chain of compute resources into a usable part (UP) which contains resources available for immediate allocation and an unusable part (UUP) which contains resources not available for immediate allocation but which become available after a certain minimum number of allocations. The system sorts resources in the UP by block number, and maintains a last used object (LUO) vector, indexed by block number, which records a last object in the UP for each block. Each time the system frees a resource, the system adds the freed resource to a tail of the UUP and promotes an oldest resource in the UUP to the UP. This approach can manage free chains in a manner that is both flaw tolerant and has relatively high performance.

## Claims

### Claim 1

A computer-implemented method of managing free chains of compute resources, the method causing a computing device to perform steps comprising:
dividing a free chain of compute resources into a usable part (UP) and an unusable part (UUP);
sorting resources in the UP by block number;
maintaining a last used object (LUO) vector, indexed by block number, which records a last object in the UP for each block;
each time a resource is freed,
1) adding the freed resource to a tail of the UUP; and
2) promoting an oldest resource in the UUP to the UP.

### Claim 2 (depends on 1)

The method of claim 1, wherein the UP contains resources available for immediate allocation and the UUP contains resources not available for immediate allocation.

### Claim 3 (depends on 1)

The method of claim 1, wherein a size of the UP is equal to a total size of the free chain minus a fixed size of the UUP.

### Claim 4 (depends on 1)

The method of claim 1, wherein a size of the UUP is equal to a free list minimum size (FLMS).

### Claim 5 (depends on 1)

The method of claim 1, the method further causing the computing device to transfer resources in the UUP to the UP after the resources age to a robustness threshold.

### Claim 6 (depends on 1)

The method of claim 1, the method further causing the computing device to add buffers to the free chain in blocks when a supply of objects on the free chain would otherwise drop below a free list minimum size (FLMS).

### Claim 7 (depends on 6)

The method of claim 6, wherein block size is a multiple of a locality unit.

### Claim 8 (depends on 1)

The method of claim 1, wherein promoting the oldest resource in the UUP to the UP further comprises:
determining a block number of the oldest object;
promoting the oldest resource to a position in the UP after the LUO for the block number; and
adjusting the LUO entry to identify the promoted resource.

### Claim 9 (depends on 1)

The method of claim 1, wherein the free chain of compute resources includes a head pointer, a tail pointer, and a pointer to identify a last resource in the UP.

### Claim 10 (depends on 1)

The method of claim 1, wherein promoting the oldest resource in the UUP to the UP further comprises sorting the oldest resource in the UUP into its proper location in the UP based on the LUO vector.

### Claim 11 (depends on 1)

The method of claim 1, the method further comprising allocating a resource from the free chain by removing a topmost resource from the UP of the free chain.

### Claim 12

A system for managing free chains of compute resources, the system comprising:
a processor;
a first module controlling the processor to divide a free chain of compute resources into a usable part (UP) and an unusable part (UUP);
a second module controlling the processor to sort resources in the UP by block number;
a third module controlling the processor to maintain a last used object (LUO) vector, indexed by block number, which records a last object in the UP for each block;
a fourth module controlling the processor, each time a resource is freed, to (1) add the freed resource to a tail of the UUP and (2) promote an oldest resource in the UUP to the UP.

### Claim 13 (depends on 12)

The system of claim 12, wherein the UP contains resources available for immediate allocation and the UUP contains resources not available for immediate allocation.

### Claim 14 (depends on 12)

The system of claim 12, wherein a size of the UP is equal to a total size of the free chain minus a fixed size of the UUP.

### Claim 15 (depends on 12)

The system of claim 12, wherein a size of the UUP is equal to a free list minimum size (FLMS).

### Claim 16 (depends on 12)

The system of claim 12, the system further comprising a fifth module controlling the processor to transfer resources in the UUP to the UP after the resources age to a robustness threshold.

### Claim 17

A non-transitory computer-readable storage medium storing instructions which, when executed by a computing device, cause the computing device to manage free chains of compute resources, the instructions comprising:
dividing a free chain of compute resources into a usable part (UP) and an unusable part (UUP);
sorting resources in the UP by block number;
maintaining a last used object (LUO) vector, indexed by block number, which records a last object in the UP for each block;
each time a resource is freed,
1) adding the freed resource to a tail of the UUP; and
2) promoting an oldest resource in the UUP to the UP.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, the instructions further comprising adding buffers to the free chain in blocks when a supply of objects on the free chain would otherwise drop below a free list minimum size (FLMS).

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium of claim 18, wherein block size is a multiple of a locality unit.

### Claim 20 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein promoting the oldest resource in the UUP to the UP further comprises:
determining a block number of the oldest object;
promoting the oldest resource to a position in the UP after the LUO for the block number; and
adjusting the LUO entry to identify the promoted resource.
