# US 2016/0253093 A1 · A new USB protocol based computer acceleration device using multi I/O channel SLC NAND and DRAM cache

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

- Number: US 2016/0253093 A1
- Document ID: US20160253093A1
- Status: Published application
- Kind: A1
- Application number: 15/028,028
- Filed: 2014-09-28
- Published: 2016-09-01
- Earliest claimed: 2013-10-13
- Inventors: WEIJIA ZHANG
- Web page: https://patentgrep.com/patent/US20160253093A1

## CPC

- G06F 3/061: {Improving I/O performance}
- G06F 3/0631: {by allocating resources to storage systems}
- G06F 3/0661: {Format or protocol conversion arrangements}
- G06F 3/0685: {Hybrid storage combining heterogeneous device types, e.g. hierarchical storage, hybrid arrays}
- G06F 9/4413: {Plug-and-play [PnP]}
- G06F 12/08: in hierarchically structured memory systems, e.g. virtual memory systems
- G06F 12/0811: with multilevel cache hierarchies
- G06F 12/0868: Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
- G06F 13/28: using burst mode transfer, e.g. direct memory access {DMA}, cycle steal (G06F13/32 takes precedence)
- G06F 13/4282: {on a serial bus, e.g. I2C bus, SPI bus (on daisy chain buses G06F13/4247)}
- G06F 2212/214: Solid state disk
- G06F 2212/2146: being detachable, e.g.. USB memory
- G06F 2212/217: Hybrid disk, e.g. using both magnetic and solid state storage devices
- G06F 2212/221: Static RAM
- G06F 2212/283: Plural cache memories
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

This study presents a new USB protocol based computer acceleration device that uses multi-channel single-level cell NAND type flash memory (SLC NAND) and Dynamic random-access memory (DRAM) cache. This device includes a main controller chip, at least one SLC NAND module, and a USB interface to connect the device to a computer. It then creates and assigns a cache file in SLC NAND and DRAM for the computer cache system, caches the common used applications, and read and pre-reads frequently used files. The device drive improves the USB protocol, optimizes the BOT protocol in the traditional USB interface protocol, and optimizes resource allocation for the USB transport protocol. The algorithm and framework of the device employ the following design: 1. The device virtualizes the application programs for pre-storing all program files and the system environment files required by programs into the device. 2. The device works in multi I/O channel mode, an array module integrates an array of SLC NAND chips and uses main controller chip that can deal with multi I/O channel. 3. By monitoring long-term user habits, data that will be used by system can be estimated, and the data can be pre-stored in the device. 4. The device allows intelligent compression and automatic release of system memory in background.

## Claims

### Claim 1

The developed electronic device features a plug and play USB (universal serial bus) interface and comprises a main controller chip and at least one SLC NAND module (or iSLC which simulates SLC working conditions with the MLC NAND module through a specific flash management algorithm, for example, by reprograming the 2-bit per cell of the MLC NAND to a 1-bit per cell.)
Essentially, the device functions with two core characteristics.
First, when the device is connected to a computer via its USB interface, it then creates a cache file in the SLC NAND modules. This cache file may cache common system and application files of the computer, and pre-read frequently used small files and random data, taking advantage of high-speed random access and fast r/w speed, reducing the access of the hard drive to provide acceleration and improve I/O performance.
Second, the device uses a DRAM cache. The DRAM cache may be used by employing any of the following methods: (1) setting a DRAM cache in the device as a data mapping table and data cache, such as 1 MB of DRAM cache mapping 1 GB of SLC NAND; (2) dividing part of the computer memory available to establish cache and integrating this high-speed cache and the SLC NAND cache together to take advantage of the different characteristics of the DRAM and SLC NAND module and thereby achieve better task assignment.
Moreover, the device uses the following Multi I/O channel architecture design:
Multi I/O channel design. An array module integrates an array of SLC NAND chips and employs a main controller chip, which can be a multi-channel IC architecture or uses more than one main controller. An optional array module can also be used. The array module integrates multiple SLC NAND flash memories or 3D V-NAND chips, and employs multi-channel main controller, which can be operated in dual- or multi-channel mode, for example, such an array consisting of multiple physical chips forms as a logical disk group, and data segments are stored on different physical chips/disks in this logical disk group. When data access is needed, the related chips/disks in the array function in a parallel manner to improve speed.

### Claim 2 (depends on 1)

A device based on that described in claim 1 features an algorithm and architecture with the following design. The device virtualizes applications to pre-store all program files and program system environment in the device. Acceleration is achieved with A+B:
A. Cache acceleration: According to claim 1, the device takes advantage of the differences between DRAM and SLC NAND in a multi-channel mode to achieve good task assignment.
B. Application acceleration: The device virtualizes applications (originally on a hard disk) into the device to transfer, read, and write from the device. There are several virtualization principles for consideration, such as redirecting registry and environmental files in order to pre-store all program files and program system environment files into the device. When the device executes the main program file, the operation involved is completed in this virtual environment without accessing the original system. Thus, after processing, all files being called are stored in the application directory, which is located in the SLC NAND flash memory module. The files are not used from the hard disk, thus avoiding hard disk read and write.

### Claim 3 (depends on 1)

A device based on claim 1 employs a complex triple caching mechanism (as shown in FIG. 6) and is equipped with onboard DRAM memory and a dual-channel or multi-channel SLC NAND memory module. In addition, the DRAM cache configures a certain percentage of the device DRAM cache and a certain percentage of the host computer memory. It mimics the RAM disk to store cache and turns the DRAM into a mapping table and a high-speed cache, the partial SLC NAND into a cache of random data and frequently read and written files, and the remaining SLC NAND into a mounting and storage area for the virtualization program.

### Claim 4 (depends on 1)

A device based on that described in claim 1 features an algorithm and architecture with the following design. The device identifies and monitors the long-term habits of users, determines which data the system is about to use, and pre-stores the data into the device according to claim 1. In this way, the data can be directly retrieved from the device and then transferred into memory or CPU to reduce hard disk read and writes.

### Claim 5 (depends on 1)

A device based on claim 1 comprises multiple SLC modules for parallel computing, as well as multiple main controller ICs.

### Claim 6 (depends on 1)

A device based on claim 1 adopts the following double cache design: In addition to the SLC NAND flash memory, the device features an MLC NAND flash module. Thus, the SLC NAND flash memory acts as an L1 cache module, and the MLC NAND flash memory module acts as an L2 cache.

### Claim 7 (depends on 1)

A device based on claim 1 is characterized as follows. The device modifies the transport protocol after being connected to a computer. Besides improving USB protocol by optimizing the BOT protocol, which hinders fast data transfer in traditional USB interface protocols and multitasking transmissions of NCQ, this modified USB protocol also allocates a larger amount of system resources to the USB device, provides intelligent compression, and automatically releases resources in the background.

### Claim 8 (depends on 1)

A device based on claim 1 is characterized as follows. The SLC NAND work area is divided into two portions, namely, the cache area and the area storing program for acceleration, which are separated logically.

### Claim 9 (depends on 1)

A device based on claim 1 is characterized as follows. The device performs the selective processing of the I/O. For example, the console can selectively load one of the channels. In another example, it can also configure the write cache, especially small file write cache to DRAM caches, including web browsing. It can configure the read cache, particularly the random read cache to the NAND cache, such as loading a program, game, and so on (the conventional caching algorithm does not distinguish the I/O type when caching disk data, that is, it caches all requests regardless of whether I/O is random or sequential, what size, read or write; this is not good because in fact the SLC NAND cache performs best in random read I/O).

### Claim 10 (depends on 1)

A device based on claim 1 is characterized as follows. The device features a plug and play operating system and can start an operating system pre-installed in its non-volatile memory area by setting the BIOS from the USB interface without using the original operating system of the computer. It can also virtualize computer applications, including redirecting registries and environment files. When running systems loaded from the device and virtualized application in the device, it most thoroughly avoids the hard disk reads and writes. The original hard disk of the computer is in the bypassed state.
