# US 2017/0255548 A1 · Method and system for dynamically updating data fields of buffers

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

- Number: US 2017/0255548 A1
- Document ID: US20170255548A1
- Status: Published application
- Kind: A1
- Application number: 15/600,316
- Filed: 2017-05-19
- Published: 2017-09-07
- Earliest claimed: 2012-11-29
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Neil Horman; Andrew Gospodarek
- Web page: https://patentgrep.com/patent/US20170255548A1

## CPC

- G06F 12/023: {Free address space management}
- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/0644: {Management of space entities, e.g. partitions, extents, pools}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computing system can include memory management capabilities. In one embodiment, the system receives a request to update a first size of each of a plurality of portions of memory to a second size. The plurality of portions of memory can be associated with a first memory pool and the first memory pool can be associated with a memory pool instance. The system creates a memory pool subinstance based on the request. The memory pool subinstance can be associated with the memory pool instance. The system associates a second memory pool with the memory pool subinstance. The second memory pool comprises portions of memory of the second size and the second memory pool is associated with the memory pool instance.

## Claims

### Claim 1

A method, implemented by a computing system, comprising:
receiving, by the computing system, a request to deallocate a portion of memory, wherein the request to deallocate the portion of memory comprises a memory pool instance;
determining, by the computing system, a memory pool subinstance associated with the portion of memory;
returning, by the computing system, the portion of memory to the determined memory pool subinstance.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
updating, by the computing system, a reference count for the determined memory pool subinstance, wherein the reference count is a number of portions of memory allocated to the determined memory pool subinstance;
determining, by the computing system, whether the determined memory pool subinstance is equal to a current subinstance associated with the memory pool instance;
determining, by the computing system, whether the reference count for the determined memory pool subinstance is equal to a predetermined value;
upon determining that the determined memory pool subinstance is not equal to the current subinstance and that the reference count for the determined memory pool subinstance is equal to a predetermined value, returning, by the computing system, a memory pool associated with the determined memory pool subinstance.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining the memory pool subinstance associated with the portion of memory comprises accessing an identifier associated with the portion of memory.

### Claim 4

A non-transitory computer readable storage medium having instructions that, when executed by a processing device, cause the processing device to perform operations comprising:
receiving, by the processing device, a request to deallocate a portion of memory, wherein the request to deallocate the portion of memory comprises a memory pool instance;
determining, by the processing device, a memory pool subinstance associated with the portion of memory;
returning, by the processing device, the portion of memory to the determined memory pool subinstance.

### Claim 5 (depends on 4)

The non-transitory computer readable storage medium of claim 4, having instructions that, when executed by a processing device, cause the processing device to perform operations further comprising:
updating, by the processing device, a reference count for the determined memory pool subinstance, wherein the reference count is a number of portions of memory allocated to the determined memory pool subinstance;
determining, by the processing device, whether the determined memory pool subinstance is equal to a current subinstance associated with the memory pool instance;
determining, by the processing device, whether the reference count for the determined memory pool subinstance is equal to a predetermined value;
upon determining that the determined memory pool subinstance is not equal to the current subinstance and that the reference count for the determined memory pool subinstance is equal to a predetermined value, returning, by the processing device, a memory pool associated with the determined memory pool subinstance.

### Claim 6

A computing device comprising:
a memory; and
a processing device coupled to the memory, wherein the processing device is configured to:
receive a request to deallocate a portion of memory, wherein the request to deallocate the portion of memory comprises a memory pool instance;
determine a memory pool subinstance associated with the portion of memory;
return the portion of memory to the determined memory pool subinstance.

### Claim 7 (depends on 6)

The computing device of claim 6, wherein the processing device is further configured to:
update a reference count for the determined memory pool subinstance, wherein the reference count is a number of portions of memory allocated to the determined memory pool subinstance;
determine whether the determined memory pool subinstance is equal to a current subinstance associated with the memory pool instance;
determine whether the reference count for the determined memory pool subinstance is equal to a predetermined value;
upon determining that the determined memory pool subinstance is not equal to the current subinstance and that the reference count for the determined memory pool subinstance is equal to a predetermined value, return a memory pool associated with the determined memory pool subinstance.
