# US 2017/0285995 A1 · Updating of pinned storage in flash based on changes to flash-to-disk capacity ratio

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

- Number: US 2017/0285995 A1
- Document ID: US20170285995A1
- Status: Published application
- Kind: A1
- Application number: 15/628,374
- Filed: 2017-06-20
- Published: 2017-10-05
- Earliest claimed: 2015-05-18
- Assignees: Nimble Storage, Inc.
- Applicants: Nimble Storage, Inc.
- Inventors: Senthil Kumar Ramamoorthy; Pradeep Shetty; Mukul Kumar Singh; Hy Vu
- Web page: https://patentgrep.com/patent/US20170285995A1

## CPC

- G06F 3/0631: {by allocating resources to storage systems}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0656: {Data buffering arrangements}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 3/0685: {Hybrid storage combining heterogeneous device types, e.g. hierarchical storage, hybrid arrays}
- G06F 12/0802: Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F 12/0868: Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
- G06F 2212/205: Hybrid memory, e.g. using both volatile and non-volatile memory
- G06F 2212/222: Non-volatile memory
- G06F 2212/604: Details relating to cache allocation
- G06F 2212/7203: Temporary buffering, e.g. using volatile buffer or dedicated buffer blocks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, systems, and programs are presented for managing a storage device memory. One method includes an operation for receiving a request to pin a volume stored in the storage device. The device includes disk storage and a solid state drive (SSD) cache, where pinned volumes in the storage device have all active volume data in the SSD cache. Further, the method includes an operation for determining the maximum amount of pinnable space in the SSD cache, the maximum amount of pinnable space being calculated based on the sizes of the disk storage and the SSD cache. Further, the method includes operations for determining the available pinning space, which is the maximum amount of pinnable space minus the current amount of pinned data in the SSD cache, and for granting the request to pin the volume when the available pinning space is greater than or equal to a size of the volume.

## Claims

### Claim 1

A method for managing memory allocation in a network storage device, the method comprising:
detecting a change in an amount of storage in a network storage device, the network storage device including disk storage and a solid state drive (SSD) cache, wherein pinned volumes in the network storage device are defined to have all active volume data cached in the SSD cache;
determining an updated flash capacity of the SSD cache;
determining an updated disk capacity of the disk storage;
determining an updated flash-to-disk ratio (FDR) as the updated flash capacity divided by the updated disk capacity;
determining an updated reserved space in SSD cache as a first function of the updated disk capacity, wherein an updated remaining space in SSD cache is based on the updated flash capacity and the updated reserved space; and
determining an updated pinnable space in SSD cache based on the updated disk capacity and the updated FDR.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining an updated pinnable space in SSD cache further comprises:
determining the updated pinnable space in SSD cache as a second function of the updated remaining space.

### Claim 3 (depends on 2)

The method of claim 2, wherein the first function is a first constant and the second function is a second constant.

### Claim 4 (depends on 2)

The method of claim 2, further comprising:
setting the updated pinnable space to zero when the updated pinnable space initially determined is negative; and
disabling pinning to the SSD cache of volumes stored in disk storage.

### Claim 5 (depends on 2)

The method of claim 2, further comprising:
determining a current amount of pinned data in the SSD cache;
determining that the current amount of pinned volumes is greater than the updated pinnable space; and
disabling pinning to the SSD cache one or more of the currently pinned volumes to align with the updated pinnable space.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
disabling pinning of all currently pinned volumes.

### Claim 7 (depends on 5)

The method of claim 5, further comprising:
iteratively unpinning pinned volumes of lowest priority until the current amount of pinned volumes updated to reflect one or more unpinned volumes is lower than the updated pinnable space.

### Claim 8

A non-transitory computer-readable medium storing a computer program for upgrading a data storage system, the computer-readable medium comprising:
program instructions for detecting a change in an amount of storage in a network storage device, the network storage device including disk storage and a solid state drive (SSD) cache, wherein pinned volumes in the network storage device are defined to have all active volume data cached in the SSD cache;
program instructions for determining an updated flash capacity of the SSD cache;
program instructions for determining an updated disk capacity of the disk storage;
program instructions for determining an updated flash-to-disk ratio (FDR) as the updated flash capacity divided by the updated disk capacity;
program instructions for determining an updated reserved space in SSD cache as a first function of the updated disk capacity, wherein an updated remaining space in SSD cache is based on the updated flash capacity and the updated reserved space; and
program instructions for determining an updated pinnable space in SSD cache based on the updated disk capacity and the updated FDR

### Claim 9 (depends on 8)

The computer-readable medium of claim 8, wherein program instructions for determining an updated pinnable space in SSD cache further comprises:
program instructions for determining the updated pinnable space in SSD cache as a second function of the updated remaining space.

### Claim 10 (depends on 9)

The method of claim 9, wherein the first function is a first constant and the second function is a second constant.

### Claim 11 (depends on 9)

The computer-readable medium of claim 9, further comprising:
program instructions for setting the updated pinnable space to zero when the updated pinnable space initially determined is negative; and
program instructions for disabling pinning to the SSD cache of volumes stored in disk storage.

### Claim 12 (depends on 9)

The computer-readable medium of claim 9, further comprising:
program instructions for determining a current amount of pinned data in the SSD cache;
program instructions for determining that the current amount of pinned volumes is greater than the updated pinnable space; and
program instructions for disabling pinning to the SSD cache one or more of the currently pinned volumes to align with the updated pinnable space.

### Claim 13 (depends on 12)

The computer-readable medium of claim 12, further comprising:
program instructions for disabling pinning of all currently pinned volumes.

### Claim 14 (depends on 12)

The computer-readable medium of claim 12, further comprising:
program instructions for iteratively unpinning pinned volumes of lowest priority until the current amount of pinned volumes updated to reflect one or more unpinned volumes is lower than the updated pinnable space.

### Claim 15

A network storage device comprising:
disk storage;
a solid state drive (SSD) cache, wherein pinned volumes in the network storage device are defined to have all active volume data cached in the SSD cache; and
a processor operable to detect a change in an amount of storage in a network storage device, the network storage device including disk storage and a solid state drive (SSD) cache, wherein pinned volumes in the network storage device are defined to have all active volume data cached in the SSD cache;
wherein the processor is operable to determine an updated flash capacity of the SSD cache;
wherein the processor is operable to determine an updated disk capacity of the disk storage;
wherein the processor is operable to determine an updated flash-to-disk ratio (FDR) as the updated flash capacity divided by the updated disk capacity;
wherein the processor is operable to determine an updated reserved space in SSD cache as a first function of the updated disk capacity, wherein an updated remaining space in SSD cache is based on the updated flash capacity and the updated reserved space; and
wherein the processor is operable to determine an updated pinnable space in SSD cache based on the updated disk capacity and the updated FDR.

### Claim 16 (depends on 15)

The network storage device of claim 15, wherein the processor is further operable to determine the updated pinnable space in SSD cache as a second function of the updated remaining space.

### Claim 17 (depends on 16)

The network storage device of claim 16, wherein the processor is further operable to:
set the updated pinnable space to zero when the updated pinnable space initially determined is negative; and
disable pinning to the SSD cache of volumes stored in disk storage.

### Claim 18 (depends on 16)

The network storage device of claim 16, wherein the processor is further operable to:
determine a current amount of pinned data in the SSD cache;
determine that the current amount of pinned volumes is greater than the updated pinnable space; and
disable pinning to the SSD cache one or more of the currently pinned volumes to align with the updated pinnable space.

### Claim 19 (depends on 18)

The network storage device of claim 18, wherein the processor is further operable to:
disable pinning of all currently pinned volumes.

### Claim 20 (depends on 18)

The network storage device of claim 18, wherein the processor is further operable to:
iteratively unpin pinned volumes of lowest priority until the current amount of pinned volumes updated to reflect one or more unpinned volumes is lower than the updated pinnable space.
