Method of managing memory operations in storage device and memory controller

By switching the operating mode in the storage device, the problem of high power consumption of flash memory devices under sparse I/O requests is solved, and power consumption optimization and performance improvement during sparse requests are achieved.

CN118732941APending Publication Date: 2024-10-01SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410378787.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-28
Filing Date
2024-03-29
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the case of sparse I/O requests, it is difficult for flash memory devices to enter sleep mode, resulting in excessive power consumption. Existing technologies cannot effectively shut down unused components or flash memory cores, resulting in performance degradation.

Method used

Optimize power consumption by dynamically switching operating modes in the storage device from striped FTL mode to reduced mode, notifying the core to switch from active to power-down, and restarting the core when switching back to striped FTL mode.

Benefits of technology

It effectively reduces power consumption and optimizes the performance of flash memory devices, especially when sparse I/O requests occur, preventing components from being active for a long time and reducing overall power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118732941A_ABST
    Figure CN118732941A_ABST
Patent Text Reader

Abstract

A method and a memory controller for managing memory operations in a storage device are provided. The memory controller receives a plurality of requests from a user. The memory controller dynamically switches an operation mode of the storage device based on a time interval between each of the plurality of requests and a predefined threshold. The switching includes notifying the first core to switch the second core from an active state to a powered-down state while switching to the reduced mode, and restarting the second core while switching to the stripe FTL mode. Accordingly, memory operations of the storage device are managed. Accordingly, the present disclosure manages memory operations and optimizes power consumption of a storage device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to memory management in a storage device, and more particularly, to a method and a memory controller for managing memory operations in a storage device. Background Art

[0002] Typically, electronic devices such as computers, mobile phones, tablet computers, etc. include storage devices that store data and / or programs. Storage devices may be hardware devices for storing data, such as memory devices. Memory devices may include, but are not limited to, magnetic memory devices (MMDs), such as floppy disks, hard disk drives, compact disks, magnetic strips, etc., optical memory devices (OMDs), such as compact disks (CDs), Blu-ray disks, digital versatile disks (DVDs), etc., flash memory devices (FMDs), such as universal serial bus (USB) drives, memory cards, memory sticks, and secure digital (SD) cards, etc. Recently, flash memory devices are increasingly being used in different environments and use cases. Flash memory devices are electronic non-volatile computer memory storage media that can be electrically erased and reprogrammed. The two main types of flash memory devices are NOR flash memory devices and NAND flash memory devices. Flash memory devices can be implemented in a variety of environments and may consume a lot of power. For example, flash memory devices may be included in electronic devices such as mobile phones, personal computers (PCs), watches, laptops, tablet computers, etc. Therefore, due to high power consumption, there is high heat dissipation, which causes degradation in the operation of electronic devices.

[0003] A host device such as a smartphone may provide sparse input / output (I / O) commands. Sparse I / O is a command separated by a small time interval that is not sufficient to cause the host device to enter a low power mode or sleep mode. This makes it challenging for flash memory devices to optimize power consumption. In prior art systems, power saving schemes rely on idle time intervals between commands, and unused components of the host device may be turned off to save power. However, in the case of sparse I / O commands, since the time intervals between sparse I / O commands are very small and components are required to service the commands, it is not possible to turn off components to save power. In addition, the time interval between commands is not sufficient to enter a deep sleep mode and wake up from sleep. In addition, most flash memory devices use a striped flash translation layer (FTL) architecture, in which commands are distributed to available flash cores in the host device, and the flash cores within the flash memory device consume most of the power. This makes it impossible to turn off / shut down unused flash cores because host commands can be directed to any flash core due to the striping mechanism.

[0004] The description in the related art section is provided only to enhance the understanding of the general background of the invention and should not be regarded as an admission or any form of suggestion that the information forms the prior art known to those skilled in the art. Summary of the invention

[0005] According to one aspect of the present disclosure, a method for managing memory operations in a storage device is provided, the method comprising: receiving, by a memory controller, a plurality of requests related to memory operations in the storage device; and dynamically switching, by the memory controller, an operation mode of the storage device between a striped flash translation layer (FTL) mode and a reduced mode based on a comparison between a time interval between each of the plurality of requests and a reference value, wherein the switching comprises: notifying one or more first cores among a plurality of cores associated with the storage device to switch one or more second cores among the plurality of cores from an active state to a power-off state while switching to the reduced mode; and notifying the one or more first cores to restart the one or more second cores while switching to the striped FTL mode.

[0006] According to one aspect of the present disclosure, a memory controller is provided, comprising: a memory storing one or more instructions; and a processor configured to execute the one or more instructions to: receive multiple requests related to memory operations in a storage device; and dynamically switch the operation mode of the storage device between a striped flash translation layer (FTL) mode and a reduced mode based on a comparison between a time interval between each of the multiple requests and a reference value, wherein switching the operation mode of the storage device between the striped flash translation layer (FTL) mode and the reduced mode comprises: notifying one or more first cores among a plurality of cores associated with the storage device to switch one or more second cores among the plurality of cores from an active state to a power-off state while switching to the reduced mode; and notifying the one or more first cores to restart the one or more second cores while switching to the striped FTL mode.

[0007] According to one aspect of the present disclosure, a memory controller is provided, comprising: a memory storing one or more instructions; and a processor configured to execute the one or more instructions to: receive a plurality of first requests related to a first memory operation in a storage device; compare a first time interval between the plurality of first requests with a reference value; and based on determining that the first time interval is less than the reference value, switch one or more second cores among the plurality of cores associated with the storage device from an active state to a power-off state, and from a striped flash translation layer (FTL) mode to a reduced mode by notifying one or more first cores among the plurality of cores associated with the storage device.

[0008] The foregoing summary is illustrative only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments, and features described above, further aspects, embodiments, and features will become apparent by reference to the drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The accompanying drawings, which are incorporated in and constitute a part of the present disclosure, illustrate exemplary embodiments and, together with the description, are used to explain the disclosed principles. The same reference numerals are used in the drawings to represent similar features and components. Some exemplary embodiments of devices or systems and / or methods according to embodiments of the present subject matter are now described by way of example only and with reference to the accompanying drawings, in which:

[0010] Figure 1 An exemplary environment for managing memory operations of a storage device according to some exemplary embodiments of the present disclosure is shown;

[0011] Figure 2A A sequence diagram illustrating a method for managing memory operations in a storage device by switching from a striped FTL mode to a reduced mode according to some exemplary embodiments of the present disclosure;

[0012] Figure 2B A sequence diagram illustrating a method for managing memory operations in a storage device by switching from a reduced mode to a striped FTL mode according to some exemplary embodiments of the present disclosure;

[0013] Figure 3 A flowchart illustrating an example method for managing read requests in a reduced mode of a storage device according to some example embodiments of the present disclosure is shown;

[0014] Figure 4 A flow chart illustrating an example method for managing write requests in a reduced mode according to some example embodiments of the present disclosure is shown;

[0015] Figure 5 A flowchart illustrating an example method for managing memory operations in a storage device according to some example embodiments of the present disclosure is shown; and

[0016] Figure 6 A computing system architecture according to an exemplary embodiment of the present disclosure is shown.

[0017] Those skilled in the art will appreciate that any block diagram herein represents a conceptual view of an illustrative system that embodies the principles of the present subject matter. Similarly, it will be appreciated that any flow charts, flow diagrams, state transition diagrams, pseudocodes, etc. represent various processes that can be substantially represented in a computer-readable medium and executed by a computer or processor, whether such a computer or processor is explicitly shown. DETAILED DESCRIPTION

[0018] In this disclosure, the word “exemplary” is used herein to mean “serving as an example, instance, or illustration.” Any embodiment or implementation of the subject matter described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0019] Although the present disclosure is susceptible to various modifications and alternative forms, specific embodiments thereof have been shown in the accompanying drawings by way of example and will be described in detail below. However, it should be understood that it is not intended to limit the present disclosure to the disclosed form, but rather, the present disclosure covers all modifications, equivalents and alternatives that fall within the spirit and scope of the present disclosure.

[0020] The term "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion, such that a setting, apparatus, or method that includes a list of components, elements, operations, or steps includes not only those components, elements, operations, or steps, but may also include components, elements, operations, or steps that are not expressly listed or inherent to such setting, apparatus, or method. In other words, one or more elements in a system or apparatus carried out by "comprising one" does not exclude the presence of other elements or additional elements in the system or method without more constraints.

[0021] The term "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion, such that a configuration, apparatus, or method that includes a list of components, elements, operations, or steps includes not only those components, elements, operations, or steps, but may also include components, elements, operations, or steps that are not expressly listed or inherent to such configuration, apparatus, or method. In other words, one or more elements in a system or apparatus carried out by "comprising one" does not exclude the presence of other elements or additional elements in the system or method without more constraints.

[0022] In the following detailed description of the embodiments of the present disclosure, reference is made to the accompanying drawings that form a part of the present disclosure, and specific embodiments in which the present disclosure can be practiced are shown by way of illustration in the accompanying drawings. These embodiments are described in sufficient detail to enable those skilled in the art to practice the present disclosure, and it should be understood that other embodiments may be used and changes may be made without departing from the scope of the present disclosure. Therefore, the following description should not be considered to have a limiting meaning.

[0023] As used herein, the expression "at least one of" preceding a list of elements modifies the entire list of elements, without modifying the individual elements of the list. For example, the expression "at least one of a, b, and c" should be understood to include only a, only b, only c, a and b, a and c, b and c, or all of a, b, and c.

[0024] The present disclosure relates to a memory controller and method for managing memory operations in a storage device. Generally, in the case of obtaining sparse requests (e.g., sparse input / output (I / O) requests) from a user, it is challenging to optimize power consumption for a storage device such as a flash memory device. That is, in the case of obtaining sparse I / O requests, a host device such as a mobile phone may not be able to enter a sleep mode because the time interval between the sparse requests is very small. In addition, in the system of the prior art, in the case of obtaining sparse requests, the components of the storage device cannot be turned off because they need to provide services for the sparse requests. In addition, since the time interval between the sparse requests is not enough for the components to enter deep sleep and wake up from the sleep mode, the components cannot be turned off. Therefore, the flash memory device consumes too much power and the host device performance is degraded. In order to overcome the above problems, according to one or more aspects of the present disclosure, a method for managing memory operations in a storage device by switching between an operating mode of the storage device and another operating mode of the storage device is provided. The method includes dynamically switching the operating mode of the storage device from a stripe FTL mode to a reduction mode when a sparse request obtained from a user is detected. The method may also include, while switching the operation mode, converting / switching one or more cores of the storage device from an active mode to a power-down mode, or from a power-down mode to an active mode, for managing memory operations in the storage device. Therefore, according to one or more aspects of the present disclosure, a method for optimizing power consumption by switching an operation mode of a storage device based on identifying sparse requests is provided.

[0025] Figure 1An exemplary environment 100 for managing memory operations in a storage device is shown. The environment 100 includes a host system 101 and a storage device 102. According to an exemplary embodiment, the storage device 102 may be implemented within the host system 101. In an exemplary embodiment, the storage device 102 may be connected to the host system 101. According to some exemplary embodiments, the host system 101 may be a smart phone, a smart watch, a mobile phone, etc. However, the present disclosure is not limited thereto, and therefore, according to other exemplary embodiments, the host system 100 may be implemented by other types of electronic devices. In an exemplary embodiment, the storage device 102 may be implemented within the host system 101. The storage device 102 may be any type of computing hardware for storing, porting, or extracting data files and objects. The storage device 102 may include, but is not limited to, a flash memory device. A flash memory device is an electronic non-volatile computer memory storage medium that can be electrically erased and reprogrammed. Two main types of flash memory devices may include NOR flash memory devices and NAND flash memory devices. A storage device 102 such as a flash memory device may include multiple cores for performing memory operations in the storage device 102. In an exemplary embodiment, multiple cores of the storage device 102 may be associated with corresponding tightly coupled memories (TCMs) of the storage device 102. In an exemplary embodiment, the storage device 102 may include shared memory. TCMs may provide low latency memory access without unpredictable access times that may be used by multiple cores. Shared memory is a memory that may be accessed by multiple cores simultaneously to provide communication between the cores. In addition, the storage device 102 includes a memory controller 103 for managing memory operations associated with the storage device 102. The storage device 102 may include a processor 104 and a memory 105. In some exemplary embodiments, the memory 105 may be communicatively coupled to the processor 104. According to one or more exemplary embodiments of the present disclosure, the memory 105 stores instructions executable by the processor 104, which, when executed, may cause the memory controller 103 of the storage device 102 to manage memory operations in the storage device 102.

[0026] According to an exemplary embodiment, the host system 101 may receive multiple requests for performing memory operations. For example, a user may request to perform memory operations by sending multiple requests to the host system 101. The multiple requests sent by the user may be one or more sparse requests or one or more normal requests. One or more normal requests are input / output commands in which the time interval between the input / output instructions is equal to or greater than a threshold. According to an exemplary embodiment, the threshold may be a predetermined or predefined amount of time. Therefore, the host system 101 is allowed to enter a sleep mode and wake up from a sleep mode within a predefined threshold. For example, consider a scenario in which the host system receives a first request c1, a second request c2, and a third request c3, in which the time interval between requests c1 and c2 and requests c2 and c3 may be 100 milliseconds, which may be equal to a predefined threshold. In this case, the host system 101 may enter a sleep mode from an active mode and wake up from a sleep mode to enter an active mode. However, one or more sparse requests are input / output commands in which the time interval between the input / output commands is less than a predefined threshold. For example, consider a scenario where the host system receives a fourth request c4, a fifth request c5, and a sixth request c6, wherein the time interval between requests c4 and c5 and between requests c5 and c6 may be 10 milliseconds, which may be less than the predefined time interval. In this case, the host system 101 may not be able to enter a sleep mode and wake up from the sleep mode. In an exemplary embodiment, the predefined threshold may be set by a user of the host system 101. In an exemplary embodiment, the predefined threshold may be set based on one or more factors. One or more factors may include, but are not limited to, a time interval between two requests, a currently arriving I / O performance, a time gap or time interval between consecutive I / O commands, and the like. In an exemplary embodiment, the time gap or time interval is inversely proportional to the host performance. In the case where a user sends multiple requests, a memory controller 103 associated with the storage device 102 may check the time interval between each of the multiple requests. Multiple requests may be associated with a memory operation. The memory operation includes a read request and a write request. The memory controller 103 may detect the presence of one or more sparse requests in the multiple requests by comparing the time interval between each of the multiple requests with a predefined threshold. When comparing the time interval between each of the multiple requests with a predefined threshold, the memory controller 103 can identify that the time interval between each of the multiple requests is less than the predefined threshold, thereby detecting one or more sparse requests. In an exemplary embodiment, the detection of one or more sparse requests can be performed using existing known related techniques. In an exemplary embodiment, the storage device 102 operates in a striped flash translation layer (FTL) mode during the reception of the multiple requests. According to an exemplary embodiment, the FTL technology can be defined as software or algorithms that allow an operating system to read and write flash-based memory operations in the storage device 102.

[0027] When one or more sparse requests are detected, the memory controller 103 may dynamically switch the operation mode of the storage device 102 between a striped flash translation layer (FTL) mode and a scaled down mode. In the striped FTL mode, multiple cores of the storage device 102 may be active. In the scaled down mode, one or more cores of the multiple cores of the storage device 102 may be active, and the remaining cores may be in a sleep mode. In addition, in the case where the memory controller 103 detects one or more sparse requests, the memory controller 103 may switch from the striped FTL mode to the scaled down mode. In an exemplary embodiment, when switching from the striped FTL mode to the scaled down mode, the memory controller 103 may send a first signal to one or more first cores of the multiple cores associated with the storage device 102. Upon receiving the first signal, the one or more first cores may notify one or more second cores of the multiple cores to transfer the corresponding metadata information from the corresponding tightly coupled memory (TCM) to the shared memory, and also switch from the active state to the power-down state. According to an exemplary embodiment, the one or more first cores may be one or more master (or primary) cores, and the one or more second cores may be slave (or child) cores. In an exemplary embodiment, the shared memory can be accessed by multiple cores of the storage device 102. In addition, the metadata information may include, but is not limited to, a mapping table associated with the multiple cores, location information about the mapping table, a logical page number (LPN), etc. When the metadata information is transmitted, the operation mode of the storage device 102 is switched from the stripe FTL mode to the reduction mode. In addition, when the storage device 102 is in the reduction mode, the memory controller 103 may determine the identification number of the core associated with each of the one or more sparse requests based on a function of the LPN corresponding to the one or more sparse requests and the number of the multiple cores. The memory controller 103 obtains metadata information from the shared memory based on the identification number of the core of each of the one or more sparse requests. In addition, the memory controller 103 may assign each of the one or more sparse requests to a storage memory associated with a corresponding core in the multiple cores for performing a memory operation. The storage memory may include, but is not limited to, a NAND gate, a NOR gate, etc.

[0028] In an exemplary embodiment, in the case where the memory operation is a read request, the memory controller 103 can identify the existence of a mapping table of a core associated with the read request in the shared memory based on an identification number when acquiring metadata information. For example, in the case where one of the memory operations is a read request, the memory controller 103 can identify the existence of a mapping table of a core associated with the read request in the shared memory based on an identification number. Once the existence of the mapping table is identified, the memory controller 103 can assign the read request to a storage memory associated with the corresponding core for executing the read request. However, when it is identified that the mapping table does not exist, the memory controller 103 can retrieve the mapping table of the core based on the location information about the mapping table stored in the shared memory. When retrieving the mapping table, the memory controller 103 can store the retrieved mapping table of the core associated with the read request to the shared memory.

[0029] In an exemplary embodiment, in the case where one of the memory operations is a write request, the memory controller 103 may update metadata information to the shared memory of the core associated with each of the one or more sparse requests when each of the one or more sparse requests is assigned to the storage memory. The metadata information may be updated based on the identification number corresponding to the corresponding core based on the write request being completed. In addition, the memory controller 103 may store the mapping table to the storage memory of the core associated with each of the one or more sparse requests based on the identification number corresponding to the corresponding core and one or more criteria. The one or more criteria may be one or more predefined criteria, including predefined time and memory usage of the storage device. For example, in the case where the user sets the predetermined time to every hour, the memory controller 103 may store the mapping table to the storage memory after every hour. In another example, if the memory usage of the storage device 102 exceeds a predetermined value, the memory controller 103 may store the mapping table to the storage memory. However, the predefined criteria are not limited to time and memory usage, and therefore, according to various other exemplary embodiments, the predefined criteria may include other criteria.

[0030] In addition, when the memory controller 103 detects that there are not one or more sparse requests in the multiple requests, the memory controller 103 may switch the reduction mode to the stripe FTL mode. In an exemplary embodiment, when switching from the reduction mode to the stripe FTL mode, the memory controller 103 may send a second signal to the one or more first cores. Upon receiving the second signal, the one or more first cores notify the one or more second cores to transfer the corresponding metadata information from the shared memory to the corresponding TCM, and restart the one or more second cores by switching from the power-off state to the active state. In addition, the memory controller 103 may switch the operation mode of the storage device 102 from the reduction mode to the stripe FTL mode when transmitting the metadata information.

[0031] Figure 2A A sequence diagram is shown for managing memory operations in a storage device by switching from a striped FTL mode to a reduced mode according to some exemplary embodiments of the present disclosure.

[0032] Initially, in the case where multiple requests (also referred to as I / O commands) are received from a user, the sparse detector 201 may be configured to identify one or more sparse requests among the multiple requests. According to an exemplary embodiment, the sparse detector 201 may be implemented in the storage device 102. In an exemplary embodiment, the functionality of the sparse detector 201 may be similar to an existing sparse request detector in a memory device of the prior art. According to an exemplary embodiment, the sparse detector may be implemented by hardware, software, or a combination of hardware and software. One or more sparse requests may also be referred to as one or more sparse I / O commands. For example, one or more sparse requests are commands / requests separated by smaller time intervals. That is, one or more sparse requests may be commands / requests separated by time intervals that are less than a threshold amount of time. Due to the smaller time intervals, the host system 101 is prevented from entering a low power state / power-off state. Figure 2AAs shown in operation 205, in the case where the sparse detector 201 identifies the presence of one or more sparse requests, the sparse detector 201 may send the identified one or more sparse requests to the memory controller 103. Upon receiving the identified one or more sparse requests, the memory controller 103 may send a first signal to the one or more first cores 202, as shown in operation 206. In an exemplary embodiment, if there are N cores associated with the storage device 102, the M cores may be referred to as first cores, and the cores other than the M cores (e.g., NM cores) may be referred to as second cores. Here, N and M are integers. In an exemplary embodiment, one or more first cores 202 may be selected from the plurality of cores in a round-robin process. In addition, in the case where the one or more first cores 202 receive the first signal, as shown in operation 207, the one or more first cores 202 notify the one or more second cores 203 to pass metadata information from their corresponding TCMs to the shared memory 204, as shown in operation 208. According to an exemplary embodiment, the corresponding TCM exists in the storage device 102. Therefore, as shown in operation 209, the one or more second cores 203 may copy their respective metadata information from their respective TCMs to the shared memory 204. In addition, when copying the metadata information, as shown in operation 210, a confirmation message may be sent to the one or more second cores 203. After receiving the confirmation message, the one or more second cores 203 enter a power-down state, as shown in operation 211. As shown in operation 212, the one or more second cores 203 send a confirmation message to the one or more first cores 202, which are then sent to the sparse detector 201, as shown in operation 213. The confirmation message indicates that the one or more second cores 203 have switched from the active mode to the power-down mode and that the storage device 102 is operating in the reduced mode.

[0033] Figure 3 1 is a flowchart illustrating an example method 300 for managing read requests in a reduced mode of a storage device according to some example embodiments of the present disclosure. In an example embodiment, when the storage device 102 is in the reduced mode and the memory operation to be performed is a read request, the one or more first cores 202 may receive the read request, such as Figure 3As shown in block 301 of . In addition, upon receiving a read request, at block 302, the memory controller 103 may determine an identification number of a core associated with the read request based on a function of an LPN corresponding to the read request and the number of multiple cores. According to an exemplary embodiment, the identification number may be Fcore_ID. In an exemplary embodiment, the identification number (Fcore_ID) may be determined by performing a modulo function on the LPN corresponding to the read request and the number of multiple cores. For example, if the LPN corresponding to the read request is 2 and the number of multiple cores is 10, the identification number may be 2, i.e., Fcore_ID is 2. Once the identification number is determined, at block 303, the memory controller 103 may obtain metadata information from the shared memory 204 based on the identification number of the core for the read request. In addition, at block 304, the memory controller 103 may identify the presence of a mapping table for the core in the shared memory 204. Here, the core may be associated with the read request based on the identification number (i.e., Fcore_ID 2 corresponding to the corresponding core). Once the presence of the mapping table is identified, the memory controller 103 may assign the read request to a storage memory associated with a corresponding core among the plurality of cores for executing the read request in block 305. For example, since Fcore_ID is 2, in the above case, the storage memory may be NAND_2. In addition, if the mapping table does not exist in the shared memory 204, the memory controller 103 may retrieve the mapping table of the core associated with the read request based on the location information about the mapping table stored in the shared memory 204 in block 306. In addition, the memory controller 103 may store the retrieved mapping table of the core associated with the read request in the shared memory 204.

[0034] Figure 4 4 is a flowchart illustrating an example method 400 for managing write requests in a reduced mode according to some example embodiments of the present disclosure. In an example embodiment, when the storage device 102 is in a reduced mode and the memory operation to be performed is a write request, the one or more first cores 202 may receive the write request, such as Figure 4As shown in block 401 of . In addition, once received, at block 402, the memory controller 103 may determine an identification number of a core associated with the write request based on a function of the LPN corresponding to the write request and the number of multiple cores. In an exemplary embodiment, the identification number (Fcore_ID) may be determined by performing a modulo function on the LPN corresponding to the write request and the number of multiple cores. For example, if the LPN corresponding to the write request is 3 and the number of multiple cores is 10, the identification number may be 3, i.e., Fcore_ID is 3. Once the identification number is determined, at block 403, the memory controller 103 may obtain metadata information from the shared memory 204 based on the identification number of the core of the write request. At block 404, the memory controller 103 may assign the write request to a storage memory associated with a corresponding core among the multiple cores for executing the write request. For example, since Fcore_ID is 3, in the above scenario, the storage memory may be NAND_3. In block 405, upon completing the allocation of the write request to the storage memory associated with the corresponding core among the multiple cores, the memory controller 103 may update the metadata information of the core associated with the write request to the shared memory 204 based on the identification number corresponding to the corresponding core. In addition, in block 406, the memory controller 103 may store the mapping table to the storage memory, i.e., NAND_3 of the core associated with the write request, based on the identification number corresponding to the corresponding core and one or more predefined criteria. The one or more predefined criteria include a predefined time and memory usage of the storage device 102. According to another exemplary embodiment, the memory controller 103 may update the metadata information of the core associated with the write request to the shared memory 204 based on the identification number corresponding to the corresponding core when completing the write in response to the write request.

[0035] Figure 2B A sequence diagram illustrating management of memory operations in a storage device by switching from a reduced mode to a striped FTL mode according to some exemplary embodiments of the present disclosure.

[0036] exist Figure 2B In the case where the storage device 102 is in the reduced mode, multiple requests may be received from the user. Upon receiving, the sparse detector 201 may be configured to identify one or more sparse requests from the multiple requests. However, in the case where the sparse detector 201 identifies that one or more sparse requests do not exist, such as Figure 2BAs shown in operation 214 of the present invention, the sparse detector 201 may transmit the absence of one or more sparse requests to the memory controller 103. In this case, the memory controller 103 may be configured to send a second signal to the one or more first cores 202, as shown in operation 215. In addition, in the case where the one or more first cores 202 receive the second signal, as shown in operation 216, the one or more first cores notify the one or more second cores 203 to transfer the metadata information from the shared memory 204 to their corresponding TCMs, as shown in operation 217. As shown in operation 218, the one or more second cores 203 copy their corresponding metadata information from the shared memory 204 to their corresponding TCMs. In addition, after copying the metadata information to the TCMs, as shown in operation 219, a confirmation message may be sent to the one or more second cores 203. After receiving the confirmation message, the one or more second cores 203 switch from the power-down state to the active state, as shown in operation 220. As shown in operation 221, the one or more second cores 203 send the confirmation message to the one or more first cores 202, which are then sent to the sparse detector 201, as shown in operation 222. The confirmation message indicates that the one or more second cores 203 have been switched from the power-down mode to the active mode and the storage device 102 is operating in the striped FTL mode.

[0037] Figure 5 A flow chart illustrating an example method 500 for managing memory operations in a storage device according to some example embodiments of the present disclosure is shown.

[0038] according to Figure 5 In the exemplary embodiment shown, method 500 may include one or more operations. Method 500 may be described in the general context of computer-executable instructions. In general, computer-executable instructions may include routines, programs, objects, components, data structures, procedures, modules, and functions that perform specific functions or implement specific abstract data types.

[0039] The order in which method 500 is described is not intended to be construed as limiting, and any number of the described method blocks may be combined in any order to implement the method. In addition, corresponding blocks may be deleted from the method without departing from the scope of the subject matter described herein. In addition, the method may be implemented in any suitable hardware, software, firmware, or a combination thereof.

[0040] At block 501 , the memory controller 103 receives a plurality of requests related to memory operations from a user within a predefined time period.

[0041] At block 502, the memory controller 103 switches the operation mode of the storage device 102 between the stripe FTL mode and the reduction mode based on the time interval between each of the multiple requests and the predefined threshold. The switching includes notifying one or more first cores of the multiple cores associated with the storage device 102 to switch one or more second cores of the multiple cores from an active state to a power-off state while switching to the reduction mode, and restarting the one or more second cores while switching to the stripe FTL mode. Thus, the memory operation in the storage device 102 is managed.

[0042] Figure 6 is a diagram of a host system to which a storage device 102 is applied according to an exemplary embodiment of the present disclosure. Figure 6 The host system of may be a mobile system such as a portable communication terminal (e.g., a mobile phone), a smart phone, a tablet personal computer (PC), a wearable device, a healthcare device or an Internet of Things (IOT) device, a smart watch, etc. However, according to another exemplary embodiment, Figure 6 The host system of is not necessarily limited to a mobile system and may be a PC, a laptop, a server, a media player, or an automotive device (eg, a navigation device) or another type of electronic device.

[0043] Reference Figure 6 , the host system may include a main processor 610 and a plurality of memories. For example, the host system may include memories 620a and 620b and storage devices 630a and 630b. In addition, the host system may include at least one of an optical input device 641, a user input device 642, a sensor 643, a communication device 644, a display 645, a speaker 646, a power supply device 647, and a connection interface 648.

[0044] The main processor 610 may control all operations of the host system, and more specifically, operations of other components in the host system. The main processor 610 may be implemented as a general-purpose processor, a dedicated processor, or an application processor.

[0045] The main processor 610 may include at least one CPU core 611, and also include a memory controller 612 configured to control memories 620a to 620b and / or storage devices 631a to 632b such as flash memory devices. In some exemplary embodiments, the main processor 610 may further include an accelerator 653, which is a dedicated circuit for high-speed data operations such as artificial intelligence (AI) data operations. The accelerator 653 may include a graphics processing unit (GPU), a neural processing unit (NPU), and / or a data processing unit (DPU), and is implemented as a chip physically separated from other components of the main processor 610.

[0046] Memories 620a to 620b may be used as main storage devices of the host system. Although each of memories 620a to 620b may include volatile memory, such as static random access memory (SRAM) and / or dynamic RAM (DRAM), each of memories 620a and 620b may include non-volatile storage, such as flash memory, phase change RAM (PRAM) and / or resistive RAM (RRAM). Memories 620a to 620b may be implemented in the same package as the main processor 610.

[0047] The storage devices 630a and 630b may be used as non-volatile storage devices, which are configured to store data regardless of whether power is supplied thereto, and have a larger storage capacity than the memories 620a to 620b. The storage devices 630a and 630b may include a storage controller (STRG CTRL) and NVM (non-volatile memory) 632a and 632b, respectively, configured to store data via the control of the storage controllers 631a and 631b. Although the NVM 632a and 632b may include a flash memory having a two-dimensional (2D) structure or a three-dimensional (3D) V-NAND structure, the NVM may include other types of NVM, such as PRAM and / or RRAM.

[0048] The storage devices 630a and 630b may be physically separated from the main processor 610 and included in the host system, or implemented in the same package as the main processor 610. In addition, the storage devices 630a and 630b may have various types of solid-state devices (SSDs) or memory cards, and may be removably combined with other components of the host system 101 through an interface (such as a connection interface 648 to be described below). The storage devices 630a and 630b may be devices applying a standard protocol, such as Universal Flash Storage (UFS), Embedded Multimedia Card (eMMC), or Non-Volatile Memory Express (NVMe), but are not limited thereto.

[0049] The optical input device 641 can capture still images or moving images. The optical input device 641 can include a camera, a camcorder, and / or a webcam.

[0050] The user input device 642 may receive various types of data input by a user of the host system and include a touch pad, a keypad, a keyboard, a mouse, and / or a microphone.

[0051] The sensor 643 can detect various types of physical quantities that can be obtained from the outside of the host system and convert the detected physical quantities into electrical signals. The sensor 643 may include a temperature sensor, a pressure sensor, an illumination sensor, a position sensor, an acceleration sensor, a biosensor, and / or a gyroscope sensor.

[0052] The communication device 644 may send and receive signals between other devices external to the host system according to various communication protocols. The communication device 644 may include an antenna, a transceiver, and / or a modem.

[0053] Display 645 and speaker 644 may be used as output devices configured to output visual information and auditory information, respectively, to a user of the host system.

[0054] The power supply device 647 may appropriately convert power supplied from a battery embedded in the host system and / or an external power source, and supply the converted power to each component of the host system.

[0055] The connection interface 648 can provide a connection between the host system and an external device, which is connected to the host system and can send data to and receive data from the host system. The connection interface 648 can be implemented by using various interface schemes, such as Advanced Technology Attachment (ATA), Serial ATA (SATA), External SATA (e-SATA), Small Computer Small Interface (SCSI), Serial Attached SCSI (SAS), Peripheral Component Interconnect (PCI), PCI express (PCIe), NVMe, IEEE 1394, Universal Serial Bus (USB) interface, Secure Digital (SD) card interface, Multimedia Card (MMC) interface, eMMC interface, UFS interface, Embedded UFS (eUFS) interface and Compact Flash (CF) card interface.

[0056] Exemplary embodiments of the present disclosure provide a method for managing a memory operation of a storage device by switching between a stripe FTL mode and a reduction mode.

[0057] One or more aspects of the present disclosure provide a method and memory controller for reducing power consumption during the presence of sparse I / O requests.

[0058] One or more aspects of the present disclosure provide a method and a memory controller for power optimization of a storage device.

[0059] The described operations may be implemented as methods, systems or articles of manufacture using standard programming and / or engineering techniques to produce software, firmware, hardware or any combination thereof. The described operations may be implemented as code maintained in a "non-transitory computer-readable medium", where a processor can read and execute the code from the computer-readable medium. The processor is at least one of a microprocessor and a processor capable of processing and executing queries. The non-transitory computer-readable medium may include media such as magnetic storage media (e.g., hard disk drives, floppy disks, tapes, etc.), optical storage (CD-ROMs, DVDs, optical disks, etc.), volatile and non-volatile memory devices (e.g., EEPROMs, ROMs, PROMs, RAMs, DRAMs, SRAMs, flash memory, firmware, programmable logic, etc.), etc. In addition, non-transitory computer-readable media may include all computer-readable media except temporary ones. The code implementing the described operations may be further implemented in hardware logic (e.g., integrated circuit chips, programmable gate arrays (PGAs), application-specific integrated circuits (ASICs), etc.).

[0060] An "article of manufacture" includes a non-transitory computer-readable medium and / or hardware logic that can implement code. A device that encodes the code that implements the described operational embodiments may include a computer-readable medium or hardware logic. Of course, those skilled in the art will recognize that many modifications may be made to this configuration without departing from the scope of the present invention, and that an article of manufacture may include suitable information bearing media known in the art.

[0061] Unless expressly stated otherwise, the terms “exemplary embodiment,” “embodiments,” “multiple embodiments,” “the embodiment,” “one or more embodiments,” “some embodiments,” and “one embodiment” refer to “one or more (but not all) embodiments of the present invention.”

[0062] Unless expressly stated otherwise, the terms "includes," "comprising," "having," and variations thereof mean "including but not limited to."

[0063] Unless expressly stated otherwise, an enumerated listing of items does not imply that any or all of the items are mutually exclusive.

[0064] Unless expressly specified otherwise, the terms "a", "an" and "the" mean "one or more".

[0065] The description of an exemplary embodiment with multiple components in communication with each other does not imply that all such components are required. Rather, various optional components are described to illustrate various possible embodiments of the present invention.

[0066] Where a single device or article is described herein, it is apparent that more than one device / article (whether or not they collaborate) may be used in place of a single device / article. Similarly, where more than one device or article is described herein (whether or not they collaborate), it is apparent that a single device / article may be used in place of more than one device or article, or a different number of devices / articles may be used in place of the number of devices or programs shown. The functions and / or features of a device may alternatively be embodied by one or more other devices that are not explicitly described as having such functions / features. Therefore, other embodiments of the present invention need not include the device itself.

[0067] Figure 5 The operations shown show the specific events that occur in a particular order. In alternative embodiments, some operations can be performed, modified or removed in different orders. In addition, operations can be added to the above logic and still meet the described embodiments. In addition, the operations described herein can occur sequentially, or some operations can be processed in parallel. In addition, operations can be performed by a single processing unit or by a distributed processing unit.

[0068] Finally, the language used in the specification is selected primarily for readability and teaching purposes, and it may not be selected to describe or define the subject matter of the present invention. Therefore, the scope of the present invention is not limited by this detailed description, but by any claims filed based on the application hereof. Therefore, the disclosure of embodiments of the present invention is intended to illustrate but not limit the scope of the present invention set forth in the appended claims.

[0069] Although various aspects and embodiments are disclosed herein, other aspects and embodiments will be apparent to those skilled in the art. The various aspects and specific embodiments disclosed herein are for illustrative purposes and are not intended to be limiting, with the true scope and spirit being indicated by the appended claims.

Claims

1. A method for managing memory operations in a storage device, the method include: receiving, by a memory controller, a plurality of requests associated with memory operations in a storage device; as well as Based on a comparison between a time interval between each of the plurality of requests and a reference value, the memory controller dynamically switches an operation mode of the storage device between a striped flash translation layer (FTL) mode and a reduced mode, The switching includes: informing one or more first cores of a plurality of cores associated with the storage device to switch one or more second cores of the plurality of cores from an active state to a powered-down state simultaneously with the switching to the reduced mode, and The one or more first cores are notified to restart the one or more second cores while switching to the striped FTL mode.

2. The method according to claim 1, further comprising: include: One or more sparse requests are identified from the plurality of requests by the memory controller by comparing a time interval between each of the plurality of requests with a reference value.

3. The method according to claim 1, in, Switching from striped FTL mode to reduced mode involves: When one or more sparse requests in the plurality of requests are identified, a first signal is sent by the memory controller to the one or more first cores, The one or more first cores notify the one or more second cores to transfer metadata information from the one or more tightly coupled memories (TCMs) to the shared memory based on the first signal.

4. The method according to claim 1, in, The memory operation includes one of a read request and a write request.

5. The method according to claim 3, in, Based on the storage device being in a reduced mode, the method includes: determining, by the memory controller, an identification number of a core associated with each of the one or more sparse requests based on a function of a logical page number (LPN) corresponding to the one or more sparse requests and a number of the plurality of cores; acquiring, by the memory controller, metadata information from the shared memory based on an identification number of the core for each of the one or more sparse requests; and Each of the one or more sparse requests is allocated, by a memory controller, to a storage memory associated with a corresponding core of the plurality of cores for performing a memory operation.

6. The method according to claim 5, in, Based on a first memory operation among the memory operations being a read request, the method includes: identifying, by the memory controller, the presence of a mapping table of cores associated with each of the one or more sparse requests in the shared memory based on an identification number corresponding to the corresponding core; and Do one of the following: When the mapping table is identified, assigning, by the memory controller, each of the one or more sparse requests to a storage memory associated with a corresponding core of the plurality of cores for executing the read request; and When it is identified that a mapping table does not exist, the memory controller retrieves a mapping table for a core associated with each of the one or more sparse requests based on location information about the mapping table stored in a shared memory, and stores the retrieved mapping table for a core associated with each of the one or more sparse requests in the shared memory.

7. The method according to claim 5, in, Based on a first memory operation among the memory operations being a write request, the method includes: Upon completing the allocation of the write request to the storage memory, updating, by the memory controller, metadata information of the core associated with each of the one or more sparse requests to the shared memory based on the identification number corresponding to the corresponding core; and A mapping table of cores associated with each of the one or more sparse requests is stored in a storage memory by a memory controller based on an identification number corresponding to the corresponding core and one or more criteria.

8. The method according to claim 7, in, The one or more criteria include a predefined time and memory usage of the storage device.

9. The method according to claim 1, in, Switching from reduced mode to striped FTL mode involves: detecting, by the memory controller, an absence of one or more sparse requests from the plurality of requests; and sending a second signal by the memory controller to the one or more first cores, The one or more first cores notify the one or more second cores to transfer metadata information from the shared memory to a tightly coupled memory (TCM) based on the second signal.

10. A memory controller, include: a memory storing one or more instructions; as well as A processor configured to execute one or more instructions to: receiving a plurality of requests related to memory operations in a storage device; and Based on a comparison between a time interval between each of the plurality of requests and a reference value, dynamically switching an operation mode of the storage device between a striped flash translation layer (FTL) mode and a reduced mode, wherein switching the operation mode of the storage device between the striped flash translation layer (FTL) mode and the reduced mode comprises: informing one or more first cores of a plurality of cores associated with the storage device to switch one or more second cores of the plurality of cores from an active state to a powered-down state simultaneously with the switching to the reduced mode, and The one or more first cores are notified to restart the one or more second cores while switching to the striped FTL mode.

11. The memory controller according to claim 10, in, The processor is further configured to identify one or more sparse requests from the plurality of requests by comparing time intervals between the plurality of requests with a reference value.

12. The memory controller according to claim 10, in, The processor is also configured to switch from stripe FTL mode to reduce mode by: When one or more sparse requests in the plurality of requests are identified, a first signal is sent to the one or more first cores, The one or more first cores notify the one or more second cores to transfer metadata information from the one or more tightly coupled memories (TCMs) to the shared memory based on the first signal.

13. The memory controller according to claim 10, in, The memory operation includes one of a read request and a write request.

14. The memory controller according to claim 12, in, Based on the storage device being in the reduced mode, the processor is further configured to: determining an identification number of a core associated with each of the one or more sparse requests based on a function of a logical page number (LPN) corresponding to the one or more sparse requests and a number of the plurality of cores; obtaining metadata information from a shared memory based on an identification number of a core for each of the one or more sparse requests; as well as Each of the one or more sparse requests is allocated to a storage memory associated with a corresponding core of the plurality of cores for performing a memory operation.

15. The memory controller according to claim 14, in, Based on the first memory operation of the memory operations being a read request, the processor is further configured to: identifying, in the shared memory, the presence of a mapping table of cores associated with each of the one or more sparse requests based on an identification number corresponding to the respective core; as well as Do one of the following: Upon identifying that a mapping table exists, allocating each of the one or more sparse requests to a storage memory associated with a corresponding core of the plurality of cores for executing the read request; and When it is identified that a mapping table does not exist, a mapping table of a core associated with each of the one or more sparse requests is retrieved based on location information about the mapping table stored in a shared memory, and the retrieved mapping table of a core associated with each of the one or more sparse requests is stored in the shared memory.

16. The memory controller according to claim 14, in, Based on the first memory operation of the memory operations being a write request, the processor is further configured to: Upon completion of allocating the write requests to the storage memory, updating metadata information of a core associated with each of the one or more sparse requests to the shared memory based on an identification number corresponding to the corresponding core; as well as A mapping table of cores associated with each of the one or more sparse requests is stored to a storage memory based on an identification number corresponding to the corresponding core and one or more criteria.

17. The memory controller according to claim 16, in, The one or more criteria include a predefined time and memory usage of the storage device.

18. The memory controller according to claim 10, in, The processor is also configured to switch from the reduced mode to the striped FTL mode by: Detecting the absence of one or more sparse requests among multiple requests; as well as sending a second signal to the one or more first cores, The one or more first cores notify the one or more second cores to transfer metadata information from the shared memory to a tightly coupled memory (TCM) based on the second signal.

19. A memory controller, include: a memory storing one or more instructions; as well as A processor configured to execute one or more instructions to: receiving a plurality of first requests associated with a first memory operation in a storage device; comparing a first time interval between the plurality of first requests with a reference value; Based on a determination that the first time interval is less than a reference value, switching from a striped flash translation layer (FTL) mode to a reduced mode is performed by notifying one or more first cores among a plurality of cores associated with a storage device to switch one or more second cores among the plurality of cores from an active state to a power-off state.

20. The memory controller according to claim 19, in, Based on the memory controller operating in the reduced mode, the processor is further configured to: receiving a plurality of second requests associated with a second memory operation in the storage device; comparing a second time interval between the plurality of second requests with a reference value; Based on a determination that the second time interval is equal to or greater than a reference value, dynamically switching from the reduced mode to the stripe FTL mode is performed by notifying the one or more first cores to restart the one or more second cores.