# US 2017/0293426 A1 · Flow control for unaligned writes in network storage device

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

- Number: US 2017/0293426 A1
- Document ID: US20170293426A1
- Status: Published application
- Kind: A1
- Application number: 15/097,161
- Filed: 2016-04-12
- Published: 2017-10-12
- Earliest claimed: 2016-04-12
- Assignees: Nimble Storage, Inc.
- Applicants: Nimble Storage, Inc.
- Inventors: Gurunatha Karaje; Mandar Samant; Sourabh Yerfule; Zhaosheng Zhu; Vanco Buca
- Web page: https://patentgrep.com/patent/US20170293426A1

## CPC

- G06F 3/061: {Improving I/O performance}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0685: {Hybrid storage combining heterogeneous device types, e.g. hierarchical storage, hybrid arrays}
- G06F 3/0688: {Non-volatile semiconductor memory arrays}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, systems, and programs are presented for controlling the flow of data into a device in the presence of writes that are unaligned along boundaries associated with a block size. One method includes operations for identifying admission data rates for volumes, and for tracking a utilization rate of a memory that stores data of incoming writes. The method determines if incoming writes include unaligned data. When the memory utilization rate is above a first threshold, a first flow control is applied that includes a reduction of admission rates of volumes having unaligned writes while maintaining admission rates of volumes without unaligned writes. When the utilization rate is above a second threshold that is greater than the first threshold, a second flow control is applied in addition to the first flow control. The second flow control includes a reduction of a system admission rate for all incoming writes.

## Claims

### Claim 1

A method for controlling a flow of data into a network storage device, the method comprising:
identifying admission data rates for volumes in the network storage device;
tracking a utilization rate of a memory in the network storage device, wherein the memory is configured for storing data of incoming writes to the volumes;
determining if incoming writes include unaligned data, wherein an incoming write includes unaligned data when a starting address or an ending address of the incoming write is not a multiple of a block size defined for the respective volume;
when the utilization rate of the memory is above a first threshold, applying a first flow control, the first flow control including a reduction of admission data rates of volumes having unaligned writes while maintaining admission data rates of volumes not having unaligned writes; and
when the utilization rate of the memory is above a second threshold that is greater than the first threshold, applying a second flow control in addition to the first flow control, the second flow control including a reduction of a system admission data rate for all incoming writes.

### Claim 2 (depends on 1)

The method as recited in claim 1, further including:
when the utilization rate of the memory is above a third threshold that is greater than the second threshold, applying a third flow control which includes suspending admission of the incoming writes to the network storage device.

### Claim 3 (depends on 1)

The method as recited in claim 1, further including:
when the utilization rate of the memory is above a fourth threshold that is lower than the first threshold, activating a drainer program that frees part of the memory by writing content of the memory to permanent storage, wherein freeing part of the memory reduces the utilization rate of the memory.

### Claim 4 (depends on 1)

The method as recited in claim 1, further including:
reducing the system admission rate by setting the admission rate in a first scheduler that schedules processing of the incoming writes by scheduling processing time to second schedulers, each second scheduler being associated with a respective volume.

### Claim 5 (depends on 4)

The method as recited in claim 4, wherein reducing the admission rate of a volume having unaligned writes includes:
reducing the admission data rate in the second scheduler associated with the volume having unaligned writes, wherein each second scheduler enforces the admission rate for the respective volume.

### Claim 6 (depends on 1)

The method as recited in claim 1, wherein the utilization rate is measured as an amount of memory in use divided by a total capacity of the memory.

### Claim 7 (depends on 1)

The method as recited in claim 1, wherein the admission rate defines an amount of data admitted per second.

### Claim 8 (depends on 1)

The method as recited in claim 1, wherein a drainer program frees part of the memory by writing content of the memory to permanent storage, wherein an aligned write is transferred from the memory to permanent storage.

### Claim 9 (depends on 8)

The method as recited in claim 8, further including:
detecting that a first incoming write is unaligned;
reading, from permanent storage or cache, data of the volume associated with the first incoming write;
creating a second incoming write that is aligned by adding some of the read data to the first incoming write; and
transferring the second incoming write to permanent storage.

### Claim 10 (depends on 1)

The method as recited in claim 1,
wherein the first threshold is in a range of 60 percent to 79 percent utilization rate, wherein the second threshold is in a range of 80 percent to 90 percent utilization rate.

### Claim 11

A network storage device comprising:
a processor;
permanent storage for volumes in the network storage device;
a non-volatile random access memory (NVRAM) for storing data of incoming writes to the volumes; and
a RAM memory for storing a computer program defined to be executed by the processor to process the incoming writes to the volumes, wherein the processor identifies admission data rates for the volumes and tracks a utilization rate of the NVRAM;
wherein the processor determines if the incoming writes include unaligned writes, wherein an incoming write includes unaligned writes when a starting address or an ending address of the incoming write is not a multiple of a block size defined for the respective volume;
when the utilization rate of the NVRAM is above a first threshold, the processor applies a first flow control, the first flow control including a reduction of admission data rates of volumes having unaligned writes while maintaining admission data rates of volumes not having unaligned writes; and
when the utilization rate of the NVRAM is above a second threshold that is greater than the first threshold, the processor applies a second flow control in addition to the first flow control, the second flow control including a reduction of a system admission data rate for all incoming writes.

### Claim 12 (depends on 11)

The network storage device as recited in claim 11, wherein when the utilization rate of the NVRAM is above a third threshold that is greater than the second threshold, the processor applies a third flow control which includes suspending admission of the incoming writes to the network storage device.

### Claim 13 (depends on 11)

The network storage device as recited in claim 11, wherein when the utilization rate of the NVRAM is above a fourth threshold that is lower than the first threshold, the processor activates a drainer program that frees part of the NVRAM by writing content of the NVRAM to permanent storage, wherein freeing part of the NVRAM reduces the utilization rate of the NVRAM.

### Claim 14 (depends on 11)

The network storage device as recited in claim 11, wherein the processor reduces the system admission rate by setting the admission rate in a first scheduler that schedules processing of the incoming writes by scheduling processing time to second schedulers, each second scheduler being associated with a respective volume.

### Claim 15 (depends on 14)

The network storage device as recited in claim 14, wherein the admission rate of a volume having unaligned writes is reduced by reducing the admission data rate in the second scheduler associated with the volume having unaligned writes, wherein each second scheduler enforces the admission rate for the respective volume.

### Claim 16 (depends on 11)

The network storage device as recited in claim 11, wherein the utilization rate is measured as an amount of NVRAM in use divided by a total capacity of the NVRAM, wherein the admission rate defines an amount of data admitted per second.

### Claim 17 (depends on 11)

The network storage device as recited in claim 11, wherein a drainer program frees part of the NVRAM by writing content of the NVRAM to permanent storage, wherein an aligned write is transferred from the NVRAM to permanent storage, wherein the drainer frees an unaligned write from the NVRAM by:
detecting that a first incoming write is unaligned;
reading, from permanent storage or cache, data of the volume associated with the first incoming write;
creating a second incoming write that is aligned by adding some of the read data to the first incoming write; and
transferring the second incoming write to permanent storage.

### Claim 18

A non-transitory computer-readable storage medium storing a computer program for controlling a flow of data into a network storage device, the computer-readable storage medium comprising:
program instructions for identifying admission data rates for volumes in the network storage device;
program instructions for tracking a utilization rate of a memory in the network storage device, wherein the memory is configured for storing data of incoming writes to the volumes;
program instructions for determining if incoming writes include unaligned writes, wherein an incoming write includes unaligned data when a starting address or an ending address of the incoming write is not a multiple of a block size defined for the respective volume;
program instructions for applying a first flow control when the utilization rate of the memory is above a first threshold, the first flow control including a reduction of admission data rates of volumes having unaligned writes while maintaining admission data rates of volumes not having unaligned writes; and
program instructions for applying a second flow control in addition to the first flow control when the utilization rate of the memory is above a second threshold that is greater than the first threshold, the second flow control including a reduction of a system admission data rate for all incoming writes.

### Claim 19 (depends on 18)

The storage medium as recited in claim 18, further including:
program instructions for applying a third flow control when the utilization rate of the memory is above a third threshold that is greater than the second threshold, wherein the third flow control includes suspending admission of the incoming writes to the network storage device.

### Claim 20 (depends on 18)

The storage medium as recited in claim 18, further including:
program instructions for activating a drainer program when the utilization rate of the memory is above a fourth threshold that is lower than the first threshold, wherein the drainer program frees part of the memory by writing content of the memory to permanent storage, wherein freeing part of the memory reduces the utilization rate of the memory.
