Methods, systems, and storage devices for performing near memory computations

By using a combination of processor cores and co-processor acceleration engines in computing storage devices, the problem of insufficient flexibility of hardware logic circuits is solved, efficient processing of multiple data formats and functions is achieved, and costs and delays are reduced.

CN118796490AActive Publication Date: 2024-10-18SAMSUNG ELECTRONICS CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410349672.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-06-02
Filing Date
2024-03-26
Publication Date
2024-10-18
Estimated Expiration
2044-03-26

AI Technical Summary

Technical Problem

When existing computing storage devices handle multiple data formats and functions, the hardware logic circuits are not flexible enough to effectively adapt to the needs of different formats and functions. They are also costly and difficult to quickly update to adapt to new formats.

Method used

It uses a combination of the processor core and co-processor acceleration engine in the storage device to perform operations through custom instructions and acceleration engines to achieve efficient processing of data near the memory. It uses a combination of software instructions and hardware acceleration engines to provide better performance than hardware logic circuits. Greater flexibility and efficiency.

Benefits of technology

It improves the flexibility and efficiency of storage devices when processing multiple data formats and functions, reduces power consumption and latency, enables multiple function support for more types of data formats, and provides faster processing capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796490A_ABST
    Figure CN118796490A_ABST
Patent Text Reader

Abstract

A method, system, and storage device for performing near memory computing are provided, the method comprising: receiving, at a processor core of a storage device, a request for performing a first function on first data, the first function comprising a first operation and a second operation; performing, by a first processor core acceleration engine of the storage device, a first operation on the first data based on the first processor core custom instruction to generate first result data; and performing, by a first coprocessor acceleration engine of the storage device, a second operation on the first result data based on the first coprocessor custom instruction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Aspects of some embodiments of the present disclosure relate to systems and methods for processing formatted data and functions in a computing storage device. Background Art

[0002] In the field of computer storage, a system may include a host computer and one or more storage devices connected to (e.g., communicatively coupled to) the host computer. Such computer storage systems have become increasingly popular, in part to allow many different users to share the computing resources of the system. As the number of users of such systems and the number and complexity of applications running on such systems increase, storage requirements increase over time.

[0003] Therefore, there may be a need for methods, systems, and devices suitable for improving the use of storage devices in storage systems.

[0004] This Background section is intended to provide context only, and the disclosure of any embodiments or concepts in this section does not constitute an admission that such embodiments or concepts are prior art. Summary of the invention

[0005] Aspects of some embodiments of the present disclosure relate to computer storage systems and provide improvements to computing storage devices.

[0006] According to some embodiments of the present disclosure, a method for performing near memory computations is provided, the method comprising: receiving a request for performing a first function on first data at a processor core of a storage device, the first function comprising a first operation and a second operation; performing the first operation on the first data based on a first processor core custom instruction by a first processor core acceleration engine of the storage device to generate first result data; and performing the second operation on the first result data based on the first coprocessor custom instruction by a first coprocessor acceleration engine of the storage device.

[0007] The storage device may be configured to receive the request for executing the first function via a communication protocol; the first processor core custom instruction may cause the first processor core acceleration engine to execute the first operation; and the first coprocessor custom instruction may cause the first coprocessor acceleration engine to execute the second operation.

[0008] The request may be received via an application programming interface (API) coupled to the processor core.

[0009] The method may also include: receiving a request for performing a second function on second data, wherein the second function includes a third operation and a fourth operation, and the processor core stores a second processor core custom instruction and a second coprocessor custom instruction; executing the third operation based on the second processor core custom instruction by a second processor core acceleration engine to generate second result data; and executing the fourth operation on the second result data based on the second coprocessor custom instruction by a second coprocessor acceleration engine of the storage device.

[0010] The method may also include: receiving a request for performing a second function on second data, wherein the second function includes a first operation and a third operation, and the processor core stores a second coprocessor custom instruction; executing the first operation based on the first processor core custom instruction by a first processor core acceleration engine to generate second result data; and executing the third operation on the second result data based on the second coprocessor custom instruction by a second coprocessor acceleration engine of a storage device.

[0011] The first processor core acceleration engine may be configured to perform an acceleration operation associated with the first function, and the acceleration operation may include at least one of a comparison operation, a decoding operation, a parsing operation, a graph traversal operation, a linked list operation, and a parallel comparison operation.

[0012] The first coprocessor acceleration engine may be configured to execute function-specific algorithms associated with the first function, and the function-specific algorithms may include at least one of a compression algorithm, a decompression algorithm, an artificial intelligence (AI) neural network training algorithm, and an AI inference engine algorithm.

[0013] According to one or more other embodiments of the present disclosure, a system for performing near memory computing is provided, the system comprising: a processing unit, comprising a processor core, the processor core storing a first processor core custom instruction and a first coprocessor custom instruction and comprising a first processor core acceleration engine; and a coprocessor, comprising a first coprocessor acceleration engine, and coupled to the processor core, wherein the processing unit is configured to: receive a request for performing a first function on first data, the first function comprising a first operation and a second operation; cause the first processor core acceleration engine to perform a first operation on the first data based on the first processor core custom instruction to generate first result data; and cause the first coprocessor acceleration engine to perform a second operation on the first result data based on the first coprocessor custom instruction.

[0014] The processing unit may be configured to receive the request for executing the first function via a communication protocol; the first processor core custom instruction may enable the first processor core acceleration engine to execute the first operation, and the first coprocessor custom instruction may enable the first coprocessor acceleration engine to execute the second operation.

[0015] The request may be received via an application programming interface (API) coupled to the processor core.

[0016] The processing unit can be configured to: receive a request for performing a second function on second data, wherein the second function includes a third operation and a fourth operation, and the processor core stores a second processor core custom instruction and a second coprocessor custom instruction; cause the second processor core acceleration engine to perform the third operation based on the second processor core custom instruction to generate second result data; and cause the second coprocessor acceleration engine to perform a fourth operation on the second result data based on the second coprocessor custom instruction.

[0017] The processing unit can be configured to: receive a request for performing a second function on second data, wherein the second function includes a first operation and a third operation, and the processor core stores a second coprocessor custom instruction; cause a first processor core acceleration engine to perform the first operation based on the first processor core custom instruction to generate second result data; and cause a second coprocessor acceleration engine to perform a third operation on the second result data based on the second coprocessor custom instruction.

[0018] The first processor core acceleration engine may be configured to perform an acceleration operation associated with the first function, and the acceleration operation may include at least one of a comparison operation, a decoding operation, a parsing operation, a graph traversal operation, a linked list operation, and a parallel comparison operation.

[0019] The first coprocessor acceleration engine may be configured to execute function-specific algorithms associated with the first function, and the function-specific algorithms may include at least one of a compression algorithm, a decompression algorithm, an artificial intelligence (AI) neural network training algorithm, and an AI inference engine algorithm.

[0020] According to one or more other embodiments of the present disclosure, a storage device for performing near-memory computing is provided, the storage device comprising: a processing unit, comprising a processor core, the processor core storing a first processor core custom instruction and a first coprocessor custom instruction and comprising a first processor core acceleration engine; and a coprocessor, comprising a first coprocessor acceleration engine and coupled to the processor core, wherein the storage device is configured to: receive a request for performing a first function on first data, the first function comprising a first operation and a second operation; cause the first processor core acceleration engine to perform a first operation on the first data based on the first processor core custom instruction to generate first result data; and cause the first coprocessor acceleration engine to perform a second operation on the first result data based on the first coprocessor custom instruction.

[0021] The storage device may be configured to receive the request for executing the first function via a communication protocol; the first processor core custom instruction may cause the first processor core acceleration engine to execute a first operation; and the first coprocessor custom instruction may cause the first coprocessor acceleration engine to execute a second operation.

[0022] The request may be received via an application programming interface (API) coupled to the processor core.

[0023] The storage device may be configured to: receive a request for performing a second function on second data, wherein the second function includes a third operation and a fourth operation, and the processor core includes a second processor core custom instruction and a second coprocessor custom instruction; cause the second processor core acceleration engine to perform the third operation based on the second processor core custom instruction to generate second result data; and cause the second coprocessor acceleration engine to perform a fourth operation on the second result data based on the second coprocessor custom instruction.

[0024] The storage device may be configured to: receive a request for performing a second function on second data, wherein the second function includes a first operation and a third operation, and the processor core stores a second coprocessor custom instruction; cause a first processor core acceleration engine to perform the first operation based on the first processor core custom instruction to generate second result data; and cause a second coprocessor acceleration engine to perform a third operation on the second result data based on the second coprocessor custom instruction.

[0025] The first processor core acceleration engine may be configured to perform acceleration operations associated with the first function, and the acceleration operations may include at least one of comparison operations, decoding operations, parsing operations, graph traversal operations, linked list operations, and parallel comparison operations; and the first coprocessor acceleration engine may be configured to execute function-specific algorithms associated with the first function, and the function-specific algorithms may include at least one of compression algorithms, decompression algorithms, artificial intelligence (AI) neural network training algorithms, and AI inference engine algorithms. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Non-limiting and non-exhaustive embodiments of the present disclosure are described with reference to the following figures, wherein like reference numerals refer to like parts throughout the different views unless otherwise specified.

[0027] Figure 1A is a system diagram depicting an architecture for processing formatted data in a computing storage device according to some embodiments of the present disclosure.

[0028] Figure 1B is a diagram depicting predefined instructions associated with example functions.

[0029] Figure 1Cis a diagram depicting custom instructions associated with example functions according to some embodiments of the present disclosure.

[0030] Figure 2 is a diagram depicting the scheduling of scan engines according to some embodiments of the present disclosure.

[0031] Figure 3 is a system diagram depicting an architecture for handling various functions in a computing storage device according to some embodiments of the present disclosure.

[0032] Figure 4 is a flow chart depicting a method of processing formatted data in a computing storage device according to some embodiments of the present disclosure.

[0033] Figure 5 is a flow chart depicting a method of processing various functions in a computing storage device according to some embodiments of the present disclosure.

[0034] Throughout the several views of the drawings, corresponding reference symbols represent corresponding components. It will be understood by those skilled in the art that the elements in the drawings are shown for simplicity and clarity and are not necessarily drawn to scale. For example, the dimensions of some of the elements, layers, and regions in the drawings may be exaggerated relative to other elements, layers, and regions to help improve the clarity and understanding of the various embodiments. In addition, common but well-understood elements and components that are not relevant to the description of the embodiments may not be shown so as to less obstruct the views of these various embodiments and make the description clear. DETAILED DESCRIPTION

[0035] By referring to the specific implementation methods and drawings of some embodiments, the aspects of the present disclosure and the methods for implementing the same can be more easily understood. Hereinafter, the embodiments will be described in more detail with reference to the drawings. However, the described embodiments can be embodied in various different forms and should not be construed as being limited to the embodiments shown herein. On the contrary, these embodiments are provided as examples so that the present disclosure will be thorough and complete, and the aspects of the present disclosure will be fully conveyed to those skilled in the art. Therefore, the description of the processing, elements and techniques that are not necessary for a person of ordinary skill in the art to fully understand the aspects and features of the present disclosure can be omitted.

[0036] Unless otherwise noted, throughout the drawings and written description, the same reference numerals, symbols, or combinations thereof denote the same elements, and therefore, their description will not be repeated. In addition, for clarity of description, parts not related to the description of the embodiment may not be shown. In the drawings, for clarity, the relative sizes of elements, layers, and regions may be exaggerated.

[0037] In the detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the various embodiments. However, it is apparent that the various embodiments can be practiced without these specific details or with one or more equivalent arrangements.

[0038] It will be understood that although the terms "zeroth", "first", "second", "third", etc. may be used herein to describe various elements, components, regions, layers and / or parts, these elements, components, regions, layers and / or parts should not be limited by these terms. These terms are used to distinguish one element, component, region, layer or part from another element, component, region, layer or part. Therefore, without departing from the spirit and scope of the present disclosure, the first element, first component, first region, first layer or first part described below may be referred to as the second element, second component, second region, second layer or second part.

[0039] It will be understood that when an element or component is referred to as being "on," "connected to," or "coupled to" another element or component, it may be directly on, directly connected to, or directly coupled to another element or component, or there may be one or more intervening elements or components. However, "directly connected / directly coupled" refers to a component being directly connected or coupled to another component without an intervening component. At the same time, other expressions describing the relationship between components (such as, "between," "immediately between," or "adjacent to" and "immediately adjacent to") may be similarly interpreted. In addition, it will also be understood that when an element or component is referred to as being "between" two elements or components, it may be the only element or component between the two elements or components, or there may also be one or more intervening elements or components.

[0040] The terms used herein are only used for the purpose of describing specific embodiments and are not intended to limit the present disclosure. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. It will also be understood that the terms "include", "have" and "comprise" when used in this specification indicate the presence of stated features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their groups. As used herein, each of the terms "or" and "and / or" includes any and all combinations of one or more of the associated listed items.

[0041] For the purposes of this disclosure, expressions such as “at least one of…” when following a list of elements modify the entire list of elements and do not modify the individual elements in the list. For example, “at least one of X, Y, and Z” and “at least one selected from the group consisting of X, Y, and Z” may be interpreted as only X, only Y, only Z, or any combination of two or more of X, Y, and Z (such as, for example, XYZ, XYY, YZ, and ZZ).

[0042] As used herein, the terms "substantially," "about," "approximately," and similar terms are used as terms of approximation rather than terms of degree, and are intended to take into account the inherent deviations in measured or calculated values ​​that one of ordinary skill in the art will recognize. As used herein, "about" or "approximately" includes the stated value and means within an acceptable range of deviations of a particular value determined by one of ordinary skill in the art taking into account the measurement in question and the errors associated with the measurement of the particular quantity (i.e., the limitations of the measurement system). For example, "about" may mean within one or more standard deviations, or within ±30%, 20%, 10%, 5% of the stated value. In addition, the use of "may" refers to "one or more embodiments of the present disclosure" when describing embodiments of the present disclosure.

[0043] When one or more embodiments can be implemented differently, a specific processing order may be performed differently from the described order. For example, two consecutively described processes may be performed substantially simultaneously or in a reverse order to the described order.

[0044] Any component or any combination of components described (e.g., in any system diagram included herein) may be used to perform one or more of the operations of any flowchart included herein. In addition, (i) the operations are examples only and may include various additional operations not explicitly covered, and (ii) the temporal order of the operations may vary.

[0045] Any suitable hardware, firmware (e.g., an application specific integrated circuit), software, or a combination of software, firmware, and hardware may be used to implement the electronic or electrical devices and / or any other related devices or components according to the embodiments of the present disclosure described herein. For example, the various components of these devices may be formed on an integrated circuit (IC) chip or on separate IC chips. In addition, the various components of these devices may be implemented on a flexible printed circuit film, a tape carrier package (TCP), a printed circuit board (PCB), or may be formed on a substrate.

[0046] In addition, the various components of these devices can be processes or threads that execute computer program instructions running on one or more processors in one or more computing devices and interact with other system components for performing the various functions described herein. Computer program instructions are stored in a memory that can be implemented in a computing device using a standard memory device (such as, for example, a random access memory (RAM)). Computer program instructions may also be stored in other non-temporary computer-readable media (such as, for example, a CD-ROM, a flash drive, etc.). In addition, those skilled in the art should recognize that, without departing from the spirit and scope of the embodiments of the present disclosure, the functions of various computing devices may be combined or integrated into a single computing device, or the functions of a particular computing device may be distributed on one or more other computing devices.

[0047] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those commonly understood by those of ordinary skill in the art to which the inventive concept belongs. It will also be understood that, unless explicitly defined as such herein, terms (such as those defined in general dictionaries) should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and / or in this specification, and should not be interpreted in an idealized or overly formal sense.

[0048] As described above, in the field of computer storage devices, a system may include a host and one or more storage devices communicatively coupled to the host. The storage device may be configured to perform the functions of an application running on the host. For example, the storage device may be a computational storage device. As used herein, a "computational storage device" is a storage device that includes a processing circuit other than a storage device controller for performing functions near the memory. The processing circuit may include (for example, may be) a hardware logic circuit (for example, an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA)). The processing circuit may be configured to perform the functions of an application running on the host. For example, the system may be configured to enable an application to select a storage device method for performing a function, rather than a host processor method for performing a function. For example, since the hardware logic circuit of the storage device can process data faster than the software logic of the host processor, the storage device method can perform functions more efficiently than the host processor method (or a general embedded processor method). For example, the host processor and the general embedded processor may not be optimal for throughput and power consumption.

[0049] However, in some cases, hardware logic circuits may not be flexible enough to handle different formats and different functions. For example, a storage device has a limited size that can accommodate a limited number of different hardware logic circuits. In addition, hardware may not be as easy to modify as software. Therefore, a given storage device may not be able to perform a sufficiently wide variety of functions, or may not be able to perform functions on a sufficiently wide variety of data formats.

[0050] Aspects of some embodiments of the present disclosure provide a storage device that uses a combination of software instructions and a hardware acceleration engine near the memory to accelerate the execution of functions at the storage device, while providing greater flexibility than methods that use only hardware logic circuits to execute functions at the storage device. Aspects of some embodiments of the present disclosure provide improvements and advantages (such as faster processing with less power consumption and lower latency) over executing functions with a general-purpose host processor or only with a general-purpose embedded processor. Aspects of some embodiments of the present disclosure also provide improvements and advantages over executing functions with hardware that only uses specific functions in a computing storage device, such as the flexibility to execute more functions on a wider variety of data formats.

[0051] Figure 1A is a system diagram depicting an architecture for processing formatted data in a computing storage device according to some embodiments of the present disclosure.

[0052] Reference Figure 1A , a system 1 for processing formatted data may include a host 100 and a storage device 200 (e.g., a computing storage device). The host 100 may include a host processor 110 (e.g., a central processing unit (CPU) and / or a graphics processing unit (GPU)). The host 100 and the storage device 200 may be associated with a system memory 150. For example, the system memory 150 may include data stored in the system 1 on behalf of a user of the system 1 (e.g., an end user and / or a service provider). In some embodiments, the host 100 may be external to the storage device 200 (e.g., the storage device 200 may be remote from the host 100). For example, the storage device 200 may be a networked device that is communicatively coupled to the host 100 via a communication link compatible with one or more of the following protocols: Representational State Transfer (REST) / Inter-Process Communication (IPC) / Remote Procedure Call (RPC) over Non-Volatile Memory Express (NVMe) / NVMe over Network (NVMe-oF) / Compute Express Link (CXL) / Peripheral Component Interconnect Express (PCIe) / Remote Direct Memory Access (RDMA) / Transmission Control Protocol (TCP) / Internet Protocol (IP), etc.

[0053] In some embodiments, system memory 150 may include formatted data. For example, system 1 may provide database page processing for various different data page formats. Database page processing is a function in a computing storage device for database scan acceleration. As used herein, a "database page" is a data structure that includes fields associated with the type of data in a data set.

[0054] Because page processing is implemented in hardware (e.g., ASIC, FPGA, etc.), conventional database search acceleration hardware in computing storage devices only supports specific database formats. Therefore, such conventional databases may not be flexible enough to handle requests from various users. In addition, such conventional databases may not be sufficiently adaptable. For example, if the page format is changed in the future through a database version update, the hardware-based page processing may not support the new page format. Changing the hardware to work with the new page format can be a costly process. As discussed above, in some embodiments of the present disclosure, database page processing may be implemented in system 1 to provide flexibility and adaptability for performing database scan acceleration functions.

[0055] The formatted data may include a database page 10. For example, the system 1 may perform database page processing on a first database page 10a. The first database page 10a may be associated with a first data set and may have a first format FM1. The first data set may be data stored on behalf of a specific user. In addition to the first database page 10a, the system 1 may also be able to perform database page processing on a second database page 10b. The second database page 10b may be associated with a second data set and may have a second format FM2. The second data set may be data stored on behalf of another specific user. The first format FM1 and the second format FM2 may be different formats. For example, the first database page 10a may have a first database page column 14a and a first database page row 12a (e.g., a first tuple). The second database page 10b may have a second database page column 14b and a second database page row 12b (e.g., a second tuple). Figure 1A As can be seen in FIG. 1 , the rows and columns of the first database page 10a and the second database page 10b may have different formats. The system 1 may perform operations (e.g., decoding operations) on the page data PD corresponding to the first database face 10a and / or the second database face 10b to identify relevant data (e.g., relevant data requested by a user).

[0056] In some embodiments, the storage device 200 may include a processor core 210. The processor core 210 may be coupled to an application programming interface (API) 211. The processor core 210 may be coupled to a page buffer 212. Although the API 211 and the page buffer 212 are depicted as being within the processor core 210, it should be understood that the API 211 and / or the page buffer 212 may be external to the processor core 210. The processor core 210 may receive a request (e.g., a command or instruction) for executing a function FN from the host 100. The processor core 210 may receive an instruction for executing the function FN through the API 211. The processor core 210 may receive page data PD through the page buffer 212.

[0057] The processor core 210 may include (e.g., may store) a processor core custom instruction set 216. The processor core custom instruction set 216 may include one or more processor core custom instructions. For example, the processor core custom instruction set 216 may include one or more processor core custom instructions CI (respectively depicted as CI1-CIn (where n is a positive integer)). In some embodiments, the processor core custom instruction CI may be executed on a general processor portion of the processor core 210. For example, the processor core 210 may have an architecture including a general-purpose embedded processor (such as an advanced reduced instruction set computing (RISC) machine (ARM) architecture, a RISC-V architecture, or a Tensilica architecture). The processor core 210 may include one or more processor core acceleration engines 240 (respectively depicted as 240a-240n). The processor core acceleration engine 240 may be a hardware circuit (e.g., part of a hardware circuit) for implementing the processor core custom instruction C1. For example, the first processor core custom instruction CI1 may cause the first processor core acceleration engine 240a to perform one or more operations associated with the function FN. The second processor core custom instruction CI2 may cause the second processor core acceleration engine 240b to perform one or more operations associated with the function FN. In some embodiments, the processor core acceleration engine 240 may be used by the storage device 200 to perform a generalized (e.g., general) acceleration operation. For example, the generalized acceleration operation performed by the processor core acceleration engine 240 may be an operation common to various functions (e.g., comparison operation, addition operation, subtraction operation, multiplication operation, decoding operation, parsing operation, graph traversal operation, linked list operation, parallel comparison operation, etc.). The generalized acceleration operation may each have a decoding stage, an execution stage, and a write-back stage. For example, in the decoding stage of the comparison operation, the processor core custom instruction CI and / or one or more processor core acceleration engines 240 may decode the instruction to determine that the operation is a comparison operation. In the execution stage, one or more processor core acceleration engines 240 may perform the comparison operation. In the write-back stage, one or more processor core acceleration engines 240 may generate result data for further processing by another component of the storage device 200. For example, in the case of database page processing, the processor core acceleration engine may return column data 243 as result data for further processing.

[0058] As used herein, “custom instructions” refer to software instructions stored on storage device 200 that are specific to storage device 200 and cause hardware logic circuits (eg, an acceleration engine) of storage device 200 to perform operations associated with a requested function.

[0059] Figure 1B is a diagram depicting predefined instructions associated with example functions. Figure 1Cis a diagram depicting custom instructions associated with example functions according to some embodiments of the present disclosure.

[0060] Reference Figure 1B , host processor 110 may be used to perform function FN based on predefined instructions. For example, function FN may include a comparison operation for comparing item A (e.g., last name "Kim") with one hundred results (e.g., B[0]-B

[99] ) from column B (e.g., a column listing the last names of all employees of a company). Using predefined (e.g., basic) instructions common to general-purpose processors, host processor 110 (e.g., as a comparator) may perform one hundred predefined comparison operations OP (e.g., CMP1-CMP100) one at a time.

[0061] Reference Figure 1C , the processor core acceleration engine 240 of the storage device 200 can be used to execute the function FN based on the custom instruction CI. For example, the processor core acceleration engine 240 (for example, as a comparator) can be implemented to process substantially all one hundred operations at a time based on a single custom instruction CI operation OP (for example, comparison custom instruction CI_CMP). Therefore, the custom instruction CI can be used to guide the processing of functions within the storage device 200 so that the functions can be executed more efficiently than using a general-purpose processor (such as a CPU or GPU). In addition, multiple custom instructions CI can be stored on the storage device 200 (for example, at the general processing portion of the processor core 210) to allow different acceleration engines within the storage device 200 to flexibly process different operations corresponding to different functions and different data formats.

[0062] Return to reference Figure 1A, the storage device 200 may include a scan engine pool 220. The scan engine pool 220 may include one or more scan engines. For example, the scan engine pool 220 may include a first scan engine 220a and a second scan engine (e.g., an nth scan engine 220n). The scan engine may perform further processing operations on the result data generated by the processor core acceleration engine 240. For example, the first scan engine 220a may perform a scan operation on a portion of the page data PD corresponding to the first column, and the nth scan engine 220n may perform a scan operation on a portion of the page data PD corresponding to the nth column. The scan engine may be outside the processor core 210 and may be referred to as an additional processor core circuit. In some embodiments, the additional processor core circuit may be a hardware logic circuit for executing a more complex and / or heavy algorithm (e.g., function-specific acceleration) than the processor core acceleration engine 240. It should be understood that in some embodiments, some hardware logic circuits for performing function-specific acceleration may be included in the processor core 210. For example, it should be understood that in some embodiments, the circuit described herein as an additional processor core circuit may not be limited to being located outside the processor core 210.

[0063] Typically, each scan engine is assigned to only one column of a database page or to no columns of a database page. In some cases, fewer than all scan engines are used for some scan operations. For example, if there are fewer than scan engines for a column, some scan engines may be idle during a scan operation. In some cases, a scan engine may not be able to process a column with an index that is larger than the number of scan engines.

[0064] To solve such a problem, in some embodiments of the present disclosure, the storage device 200 may include a scheduler 230 for assigning any scan engine 220a-220n to any column.

[0065] Figure 2 is a diagram depicting the scheduling of scan engines according to some embodiments of the present disclosure.

[0066] Reference Figure 2, the scheduler 230 can be used with the scan engine pool 220 (including scan engines 220a-220f) to improve the efficiency of database page processing. In some embodiments, the scheduler 230 can assign any scan engine 220a-220f to any column associated with the database page 10 based on the computational efficiency rule 232. For example, instead of using only one scan engine per column, the scheduler 230 can assign the first scan engine 220a to perform a scan operation on data corresponding to portion A of the first column 14a1, and can assign another scan engine (e.g., the third scan engine 220c) to perform a scan operation on data corresponding to portion C of the first column 14a1. Similarly, the scheduler 230 can assign the second scan engine 220b to perform a scan operation on data corresponding to portion B of the second column 14a2, and can assign another scan engine (e.g., the fourth scan engine 220d) to perform a scan operation on data corresponding to portion D of the second column 14a2.

[0067] Return to reference Figure 1A In some embodiments, the storage device 200 may include a local memory 250. The local memory 250 may be used to store page data PD (eg, PDa-PDn) corresponding to different formats for later processing. The local memory 250 may include a non-volatile memory.

[0068] Therefore, database page processing according to some embodiments of the present disclosure may include one or more of the following operations. The host 100 may send a request (e.g., a command or instruction) to the storage device 200 to perform a function FN on the page data PD associated with the first database page 10a having the first format FM1. The function FN may be a scan function. The scan function may include multiple operations (e.g., the scan function may be performed by multiple smaller operations). For example, the scan function may include a decoding operation and a comparison operation.

[0069] The storage device 200 may receive a request for executing a function FN at the processor core 210 through the API 211. The storage device 200 may receive the page data PD associated with the first database page 10a at the page buffer 212. The storage device 200 may use the processor core custom instruction set 216 to direct the execution of the decoding operation and the comparison operation to different processing circuits within the storage device 200. For example, the first processor core custom instruction CI1 may cause the first processor core acceleration engine 240a to perform a decoding operation to determine the first format FM1 from the page data PD corresponding to the first database page 10a. The first processor core acceleration engine 240a may generate result data based on the first processor core custom instruction CI1. For example, the first processor core acceleration engine 240a (or another processor core acceleration engine 240) may extract column data 243 from the page data PD based on the decoding operation. In some embodiments, the first processor core acceleration engine 240a (or one or more other processor core acceleration engines 240) may perform a page rule check operation (e.g., to verify the page data).

[0070] The first processor core custom instruction CI1 may also enable an additional processor core circuit (e.g., the first scan engine 220a) to perform a comparison operation based on the column data 243 (e.g., on the column data 243). In addition, the scheduler 230 may enable the first scan engine 220a to perform the comparison operation in conjunction with the nth scan engine 220n to improve efficiency.

[0071] Figure 3 is a system diagram depicting an architecture for handling various functions in a computing storage device according to some embodiments of the present disclosure.

[0072] Reference Figure 3 , the storage device 200 according to some embodiments of the present disclosure may enable the flexibility of processing various functions near the memory. In such an embodiment, the storage device may include a coprocessor 310. The coprocessor 310 may be coupled to the processor core 210 and may include one or more coprocessor acceleration engines 340 (e.g., depicted as 340a-340n, respectively). The processor core 210 and the coprocessor 310 may correspond to the processing unit 300 of the storage device 200. The coprocessor acceleration engine 340 may correspond to a coprocessor custom instruction set 316. The coprocessor custom instruction set 316 may include one or more coprocessor custom instructions CCI (e.g., depicted as CCI1-CCIn, respectively). In some embodiments, the coprocessor custom instruction set 316 may be stored in the processor core 210 (e.g., at the general processing portion of the processor core 210).

[0073] As mentioned above Figure 1AAs discussed, the processor core acceleration engine 240 may be used by the storage device 200 to perform generalized (e.g., general) acceleration operations. For example, the generalized acceleration operations performed by the processor core acceleration engine 240 may be operations common to various functions (e.g., comparison operations, addition operations, subtraction operations, multiplication operations, decoding operations, graph traversal operations, linked list operations, parallel comparison operations, etc.). The generalized acceleration operations may each have a decoding phase, an execution phase, and a write-back phase.

[0074] Similar to the above Figure 1A In addition to the additional processor core circuits discussed (e.g., scan engines), the coprocessor acceleration engine 340 may be a hardware logic circuit used in conjunction with the coprocessor custom instruction set 316 to execute more complex and / or heavy algorithms (e.g., function-specific acceleration) than the processor core acceleration engine 240. For example, the coprocessor acceleration engine 240 may be a larger acceleration engine capable of executing complex algorithms such as compression algorithms, decompression algorithms, artificial intelligence (AI) neural network training algorithms, and AI inference engine algorithms.

[0075] In some embodiments, the storage device 200 may include a data transfer bus 350 to transfer information between the host 100, the processor core 210, and the coprocessor 310. For example, the data transfer bus 350 may transfer requests, commands, instructions, results, and status updates between components of the system 1. In some embodiments, the data transfer bus 350 may include (e.g., may be) an Advanced eXtensible Interface (AXI) structure.

[0076] Therefore, the processing (e.g., execution) of various functions according to some embodiments of the present disclosure may include one or more of the following operations. The host 100 may send a request (e.g., a command or instruction) to the storage device 200 to perform the function FN on the data 30. The function FN may be a first function FN1. For example, the first function FN1 may be a video processing function. The first function FN1 may include multiple operations (e.g., the video processing function may be performed by multiple smaller operations). For example, the first function FN1 may include a simple acceleration operation common to multiple functions associated with the storage device 200, and may include function-specific operations. The processor core 210 may receive a request for executing the first function FN1 through the data transfer bus 350 and / or the API 211. The processor core 210 may receive the data 30 through the data transfer bus 350 and / or the data buffer 312.

[0077] As mentioned above Figure 1ASimilarly discussed, the storage device 200 may use the processor core custom instruction set 216 to direct the execution of operations associated with the first function FN1 to different processing circuits within the storage device 200. For example, the first processor core custom instruction CI1 may cause one or more of the processor core acceleration engines 240 to perform a first operation associated with the first function FN1 on the data 30. The processor core acceleration engine 240 may generate processor core result data 245 based on the first processor core custom instruction CI1. Similarly, the storage device 200 may use the coprocessor custom instruction set 316 to direct the execution of operations associated with the first function FN1 to different coprocessor acceleration engines 340. For example, the first coprocessor custom instruction CCI1 may cause the first coprocessor acceleration engine 340a to perform a second operation associated with the first function FN1 based on the processor core result data 245 (e.g., on the processor core result data 245) to generate coprocessor result data 345. The coprocessor result data 345 may be sent to the processor core 210 or the data transfer bus 350 for further processing.

[0078] Similarly, the host 100 may send an instruction to the storage device 200 to perform the second function FN2 on the data 30. The data 30 may be the same data as the data 30 on which the first function FN1 is performed, or different data. For example, the second function FN2 may be a compression function. The second function FN2 may include a plurality of operations (for example, the compression function may be performed by a plurality of smaller operations). For example, the second function FN2 may include a simple acceleration operation common to a plurality of functions associated with the storage device 200, and may include a function-specific operation. For example, one or more operations associated with the first function FN1 (for example, one or more generalized acceleration operations) may also be associated with the second function FN2, and one or more operations (for example, one or more function-specific operations) may not be associated with the first function FN1. The processor core 210 may receive an instruction for performing the second function FN2 through the data transfer bus 350 and / or the API 211. The processor core 210 may receive the data 30 through the data transfer bus 350 and / or the data buffer 312.

[0079] As similarly discussed above with respect to the first function FN1, the storage device 200 may use the processor core custom instruction set 216 to direct the execution of operations associated with the second function FN2 to different processing circuits within the storage device 200. For example, the second processor core custom instruction CI2 may cause one or more of the processor core acceleration engines 240 to perform a first operation associated with the second function F2 on the data 30. The processor core acceleration engine 240 may generate processor core result data 245 based on the second processor core custom instruction CI2. Similarly, the storage device 200 may use the coprocessor custom instruction set 316 to direct the execution of operations associated with the second function FN2 to different coprocessor acceleration engines 340. For example, the second coprocessor custom instruction CCI2 may cause the second coprocessor acceleration engine 340b to perform a second operation associated with the second function FN2 based on the processor core result data 245 (e.g., on the processor core result data 245) to generate coprocessor result data 345. The coprocessor result data 345 may be sent to the processor core 210 or the data transfer bus 350 for further processing.

[0080] Figure 4 is a flow chart depicting a method of processing formatted data in a computing storage device according to some embodiments of the present disclosure.

[0081] Reference Figure 4 , the method 4000 for processing formatted data in a computing storage device may include the following example operations. The storage device 200 may receive first data (eg, page data PD) associated with a first data set and having a first format FM1 (see Figure 1A )(Operation 4001). The processor core 210 of the storage device 200 may receive a request (e.g., a command or instruction) for executing a function FN on first data from the host 100 (Operation 4002). The first processor core acceleration engine 240a may execute a first operation associated with the function FN on the first data based on the first processor core custom instruction CI1 to generate first result data (e.g., column data 243) (Operation 4003). The first scan engine 220a of the storage device 200 may execute a second operation associated with the function FN on the first result data (e.g., column data 243) based on the first processor core custom instruction CI1 (Operation 4004).

[0082] Figure 5 is a flow chart depicting a method of processing various functions in a computing storage device according to some embodiments of the present disclosure.

[0083] Reference Figure 5, a method 5000 for processing various functions in a computing storage device may include the following example operations. The processor core 210 of the storage device 200 may receive a request (e.g., a command or instruction) for performing a first function FN1 on first data (operation 5001). The first processor core acceleration engine 240a may perform a first operation associated with the first function FN1 on the first data based on the first processor core custom instruction CI1 to generate first result data (e.g., processor core result data 245) (operation 5002). The first coprocessor acceleration engine 340a of the storage device 200 may perform a second operation associated with the first function FN1 on the first result data (e.g., processor core result data 245) based on the first coprocessor custom instruction CCI1 (operation 5003).

[0084] The disclosed example embodiments extend without limitation to the following claims:

[0085] Statement 1. An example method includes: receiving a request for performing a first function on first data at a processor core of a storage device, the first function including a first operation and a second operation; performing the first operation on the first data based on a first processor core custom instruction by a first processor core acceleration engine of the storage device to generate first result data; and performing the second operation on the first result data based on the first coprocessor custom instruction by a first coprocessor acceleration engine of the storage device.

[0086] Statement 2. An example method includes the method of statement 1, wherein the storage device is configured to receive the request for executing the first function via a communication protocol; the first processor core custom instruction causes the first processor core acceleration engine to perform a first operation; and the first coprocessor custom instruction causes the first coprocessor acceleration engine to perform a second operation.

[0087] Statement 3. An example method includes the method of any of statements 1 and 2, wherein the request is received via an application programming interface (API) coupled to a processor core.

[0088] Statement 4. An example method includes the method of any one of Statements 1-3, and also includes: receiving a request for performing a second function on second data, wherein the second function includes a third operation and a fourth operation, and the processor core stores a second processor core custom instruction and a second coprocessor custom instruction; performing the third operation based on the second processor core custom instruction by a second processor core acceleration engine to generate second result data; and performing a fourth operation on the second result data based on the second coprocessor custom instruction by a second coprocessor acceleration engine of a storage device.

[0089] Statement 5. An example method includes the method of any one of Statements 1-3, and also includes: receiving a request for performing a second function on second data, wherein the second function includes a first operation and a third operation, and the processor core stores a second coprocessor custom instruction; performing the first operation based on the first processor core custom instruction by a first processor core acceleration engine to generate second result data; and performing the third operation on the second result data based on the second coprocessor custom instruction by a second coprocessor acceleration engine of a storage device.

[0090] Statement 6. An example method includes the method of any one of statements 1-5, wherein the first processor core acceleration engine is configured to perform acceleration operations associated with the first function, the acceleration operations including at least one of comparison operations, decoding operations, parsing operations, graph traversal operations, linked list operations, and parallel comparison operations.

[0091] Statement 7. An example method includes the method of any of statements 1-6, wherein the first coprocessor acceleration engine is configured to execute function-specific algorithms associated with the first function, the function-specific algorithms including at least one of a compression algorithm, a decompression algorithm, an artificial intelligence (AI) neural network training algorithm, and an AI inference engine algorithm.

[0092] Statement 8. An example system for performing the method of any of statements 1-7 comprises: a processing unit including a processor core, the processor core storing first processor core custom instructions and first coprocessor custom instructions and including a first processor core acceleration engine; and a coprocessor including a first coprocessor acceleration engine and coupled to the processor core.

[0093] Statement 9. An example storage device for executing a method of any one of statements 1-7 comprises: a processing unit, including a processor core, the processor core stores a first processor core custom instruction and a first coprocessor custom instruction and includes a first processor core acceleration engine; and a coprocessor, including a first coprocessor acceleration engine and coupled to the processor core.

[0094] While embodiments of the present disclosure have been particularly shown and described with reference to the embodiments described herein, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present disclosure as set forth in the appended claims and their equivalents.

Claims

1. A method for performing near-memory computing, the method comprising: include: receiving, at a processor core of a storage device, a request for performing a first function on first data, the first function comprising a first operation and a second operation; The first processor core acceleration engine of the storage device performs a first operation on the first data based on the first processor core custom instruction to generate first result data; as well as A first coprocessor acceleration engine of the storage device performs a second operation on the first result data based on the first coprocessor custom instruction.

2. The method according to claim 1, in: The storage device is configured to receive, via a communication protocol, said request for performing a first function; The first processor core custom instruction causes the first processor core acceleration engine to perform a first operation; and The first coprocessor custom instruction enables the first coprocessor acceleration engine to perform a second operation.

3. The method according to claim 1, in, The request is received via an application programming interface API coupled to the processor core.

4. The method according to claim 1, further comprising: include: receiving a request for performing a second function on second data, wherein the second function includes a third operation and a fourth operation, and the processor core stores a second processor core custom instruction and a second coprocessor custom instruction; The second processor core acceleration engine of the storage device performs a third operation on the second data based on the second processor core custom instruction to generate second result data; and A second coprocessor acceleration engine of the storage device performs a fourth operation on the second result data based on the second coprocessor custom instruction.

5. The method according to claim 1, further comprising: include: receiving a request for performing a second function on second data, wherein the second function includes a first operation and a third operation, and the processor core stores a second coprocessor custom instruction; The first processor core acceleration engine performs a first operation on the second data based on the first processor core custom instruction to generate second result data; and A second coprocessor acceleration engine of the storage device performs a third operation on the second result data based on the second coprocessor custom instruction.

6. The method according to any one of claims 1 to 5, in, The first processor core acceleration engine is configured to perform an acceleration operation associated with the first function, the acceleration operation comprising at least one of a comparison operation, a decoding operation, a parsing operation, a graph traversal operation, a linked list operation, and a parallel comparison operation.

7. The method according to any one of claims 1 to 5, in, The first coprocessor acceleration engine is configured to execute function-specific algorithms associated with the first function, the function-specific algorithms comprising at least one of a compression algorithm, a decompression algorithm, an artificial intelligence neural network training algorithm, and an artificial intelligence inference engine algorithm.

8. A system for performing near-memory computing, the system comprising a storage device, in, The storage device includes: A processing unit, comprising a processor core, the processor core storing a first processor core custom instruction and a first coprocessor custom instruction and comprising a first processor core acceleration engine; and A coprocessor comprising a first coprocessor acceleration engine and coupled to a processor core, wherein the processing unit is configured to: receiving a request for performing a first function on first data, the first function comprising a first operation and a second operation; Enable the first processor core acceleration engine to perform a first operation on the first data based on the first processor core custom instruction to generate first result data; and The first coprocessor acceleration engine is enabled to perform a second operation on the first result data based on the first coprocessor custom instruction.

9. The system according to claim 8, in: The processing unit is configured to receive, via a communication protocol, said request for performing a first function; The first processor core custom instruction enables the first processor core acceleration engine to perform a first operation, and The first coprocessor custom instruction enables the first coprocessor acceleration engine to perform a second operation.

10. The system according to claim 8, in, The request is received via an application programming interface API coupled to the processor core.

11. The system according to claim 8, in, The processing unit is configured as: receiving a request for performing a second function on second data, wherein the second function includes a third operation and a fourth operation, and the processor core stores a second processor core custom instruction and a second coprocessor custom instruction; Enable a second processor core acceleration engine of the processor core to perform a third operation on the second data based on the second processor core custom instruction to generate second result data; and The second coprocessor acceleration engine of the coprocessor is enabled to perform a fourth operation on the second result data based on the second coprocessor custom instruction.

12. The system according to claim 8, in, The processing unit is configured as: receiving a request for performing a second function on second data, wherein the second function includes a first operation and a third operation, and the processor core stores a second coprocessor custom instruction; Enable the first processor core acceleration engine to perform a first operation on the second data based on the first processor core custom instruction to generate second result data; and The second coprocessor acceleration engine of the coprocessor is enabled to perform a third operation on the second result data based on the second coprocessor custom instruction.

13. A system according to any one of claims 8 to 12, in, The first processor core acceleration engine is configured to perform an acceleration operation associated with the first function, the acceleration operation comprising at least one of a comparison operation, a decoding operation, a parsing operation, a graph traversal operation, a linked list operation, and a parallel comparison operation.

14. A system according to any one of claims 8 to 12, in, The first coprocessor acceleration engine is configured to execute function-specific algorithms associated with the first function, the function-specific algorithms comprising at least one of a compression algorithm, a decompression algorithm, an artificial intelligence neural network training algorithm, and an artificial intelligence inference engine algorithm.

15. A storage device for performing near-memory computing, the storage device include: A processing unit, comprising a processor core, the processor core storing a first processor core custom instruction and a first coprocessor custom instruction and comprising a first processor core acceleration engine; as well as A coprocessor comprising a first coprocessor acceleration engine and coupled to a processor core, wherein the processing unit is configured to: receiving a request for performing a first function on first data, the first function comprising a first operation and a second operation; Enable the first processor core acceleration engine to perform a first operation on the first data based on the first processor core custom instruction to generate first result data; and The first coprocessor acceleration engine is enabled to perform a second operation on the first result data based on the first coprocessor custom instruction.

16. The storage device according to claim 15, in: The processing unit is configured to receive, via a communication protocol, said request for performing a first function; The first processor core custom instruction causes the first processor core acceleration engine to perform a first operation; and The first coprocessor custom instruction enables the first coprocessor acceleration engine to perform a second operation.

17. The storage device according to claim 15, in, The request is received via an application programming interface API coupled to the processor core.

18. The storage device according to claim 15, in, The processing unit is configured as: receiving a request for performing a second function on second data, wherein the second function includes a third operation and a fourth operation; and the processor core includes a second processor core custom instruction and a second coprocessor custom instruction; Enable a second processor core acceleration engine of the processor core to perform a third operation on the second data based on the second processor core custom instruction to generate second result data; and The second coprocessor acceleration engine of the coprocessor is enabled to perform a fourth operation on the second result data based on the second coprocessor custom instruction.

19. The storage device according to claim 15, in, The processing unit is configured as: receiving a request for performing a second function on second data, wherein the second function includes a first operation and a third operation, and the processor core stores a second coprocessor custom instruction; Enable the first processor core acceleration engine to perform a first operation on the second data based on the first processor core custom instruction to generate second result data; and The second coprocessor acceleration engine of the coprocessor is enabled to perform a third operation on the second result data based on the second coprocessor custom instruction.

20. The storage device according to any one of claims 15 to 19, in: The first processor core acceleration engine is configured to perform an acceleration operation associated with the first function, the acceleration operation comprising at least one of a comparison operation, a decoding operation, a parsing operation, a graph traversal operation, a linked list operation, and a parallel comparison operation; and The first coprocessor acceleration engine is configured to execute function-specific algorithms associated with the first function, the function-specific algorithms comprising at least one of a compression algorithm, a decompression algorithm, an artificial intelligence neural network training algorithm, and an artificial intelligence inference engine algorithm.

Citation Information

Patent Citations

  • Dual-mode computer architecture supporting in-storage computing

    CN111124999A

  • Video front-end intelligent monitoring system and method, computer equipment and terminal

    CN114007037A

  • Method for fast establishing a co-processor to memory linkage by main processor

    US5029073A

  • Server architecture, database query method, and storage medium

    WO2021223356A1