MEMORY SYSTEM AND INFORMATION PROCESSING SYSTEM
The memory system addresses power consumption challenges by implementing a controller that adjusts power modes and optimizes transcription processes, ensuring efficient energy use in data transfer and storage operations.
Patent Information
- Application Number
- JP2021047518
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-03-22
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-03-22
AI Technical Summary
Existing memory systems, such as SSDs, face challenges in controlling power consumption during data transmission and transcription processes, leading to inefficient energy usage.
A memory system with a controller that adjusts power consumption by transferring data between a host device and nonvolatile memory based on predefined power limits, utilizing modes like power limit and normal modes, and optimizing transcription processes such as garbage collection and eviction to reduce power consumption.
The system effectively manages power consumption by reducing transcription processing and data transfer operations, allowing the host device to control energy usage efficiently.
Smart Images

Figure 0007566676000001 
Figure 0007566676000002 
Figure 0007566676000003
Abstract
Description
[Technical field]
[0001] This embodiment includes a memory system, and Information Processing System To Regarding. [Background technology]
[0002] A memory system such as an SSD (Solid State Drive) includes a controller and a non-volatile memory. The controller controls a process of transmitting data read from the non-volatile memory to the host device in response to a request from the host device, and a process of writing data received from the host device to the non-volatile memory. Furthermore, the controller executes a transcription process that moves data within the non-volatile memory. In the memory system, power is consumed not only in transmitting and receiving data between the host device and the non-volatile memory, but also in the transcription process. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] US Patent Application Publication No. 2019 / 310956 [Patent Document 2] US Patent Application Publication No. 2015 / 89123 [Patent Document 3] JP 2018-169979 A Summary of the Invention [Problem to be solved by the invention]
[0004] According to one embodiment, an object is to provide a memory system in which a host device can control the amount of power consumed, an information processing system, and a host device in which the amount of power consumed by the memory system can be controlled. [Means for solving the problem]
[0005] According to one embodiment, a memory system is connectable to a host device. The memory system includes a non-volatile memory and a controller that controls the non-volatile memory. The controller reduces power consumption of the memory system in response to a first instruction from the host device. The controller transfers data between the host device and the non-volatile memory. The controller receives a first value and a second value from the host device. In response to a first instruction, the controller transfers an amount of data corresponding to the second value between the host device and the non-volatile memory such that the amount of power consumption does not exceed an amount corresponding to the first value. [Brief description of the drawings]
[0006] [Figure 1] FIG. 1 is a schematic diagram illustrating an example of a configuration of an information processing system according to the first embodiment. [Diagram 2] FIG. 2 is a schematic diagram illustrating an example of a configuration of a memory chip according to the first embodiment. [Diagram 3] FIG. 3 is a schematic diagram showing a circuit configuration of a block according to the first embodiment. [Figure 4] FIG. 4 is a diagram for explaining each division in various storage modes in the first embodiment. [Diagram 5] FIG. 5 is a diagram illustrating an example of a state transition of a block according to the first embodiment. [Figure 6] FIG. 6 is a diagram for explaining an example of information transferred between the host device and the memory system according to the first embodiment. [Figure 7] FIG. 7 is a flowchart illustrating an example of the operation of garbage collection, which is an example of the transcription process according to the first embodiment. [Figure 8] FIG. 8 is a flowchart illustrating an example of an eviction operation, which is another example of the transcription process according to the first embodiment. [Figure 9] FIG. 9 is a flowchart illustrating an example of an operation related to a transition of an operation mode in the first embodiment. [Figure 10] FIG. 10 is a diagram illustrating an example of a method for selecting a transcription source block BLK in garbage collection according to the second embodiment. [Figure 11] FIG. 11 is a flowchart for explaining an example of an operation related to a transition of an operation mode in the second embodiment. [Figure 12] FIG. 12 is a schematic diagram illustrating an example of a power consumption plan generated by the controller of the third embodiment. [Figure 13] FIG. 13 is a flowchart for explaining an example of an operation related to a transition of an operation mode in the third embodiment. [Figure 14] FIG. 14 is a schematic diagram illustrating an example of the configuration of a memory system according to the third embodiment. [Figure 15] FIG. 15 is a diagram for explaining an example of a method in which the memory system according to the third embodiment receives information regarding power consumption. [Figure 16] FIG. 16 is a diagram for explaining an example of a change in the power consumption plan according to the third embodiment. [Figure 17] FIG. 17 is a schematic diagram illustrating an example of a power consumption plan generated by the controller of the fourth embodiment. [Figure 18] FIG. 18 is a flowchart for explaining an example of an operation related to a transition of an operation mode in the fourth embodiment. [Figure 19] FIG. 19 is a flowchart for explaining an example of an operation related to a transition of an operation mode in the fifth embodiment. [Figure 20] FIG. 20 is a flowchart showing an example of the operation of the memory system according to the sixth embodiment in the power budget limit mode. [Figure 21] FIG. 21 is a flowchart showing an example of the operation of the memory system according to the seventh embodiment in the power budget limit mode. [Figure 22] FIG. 22 is a flowchart showing an example of the operation of the memory system according to the eighth embodiment in the power budget limit mode. [Diagram 23] FIG. 23 is a diagram for explaining an example of a method in which the memory system according to the ninth embodiment transmits operation status information to the host device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0007] A memory system, an information processing system, and a host device according to embodiments will be described in detail below with reference to the accompanying drawings. Note that the present invention is not limited to these embodiments.
[0008] (First embodiment) FIG. 1 is a schematic diagram showing an example of a configuration of an information processing system 10 according to the first embodiment.
[0009] The information processing system 10 is, for example, various computers or servers. Among the various computers, portable computers include laptop personal computers, mobile phones, smartphones, portable music players, imaging devices, etc. The host device 2 is, for example, a processor provided in the information processing system 10. The memory system 1 is, for example, an SSD. The memory system 1 may be externally connected to various computers or servers.
[0010] The memory system 1 is connected to a host device 2 via a communication interface 3. The host device 2 can use the memory system 1 as data storage. The standard of the communication interface 3 is not limited to a specific standard. For example, SAS (Serial Attached SCSI), SATA (Serial ATA), PCI express (PCIe, registered trademark), or NVM express (NVMe, registered trademark) can be adopted as the standard of the communication interface 3.
[0011] The memory system 1 receives an access command (e.g., a write command or a read command) from the host device 2. In response to the write command, the memory system 1 stores user data for which writing is requested. In response to the read command, the memory system 1 transmits user data for which reading is requested to the host device 2.
[0012] The access command includes a logical address. The memory system 1 provides a logical address space to the host device 2. The logical address indicates a location in the address space. The host device 2 uses the logical address to specify a location to write user data or a location to read user data. In other words, the logical address is location information specified by the host device 2.
[0013] The memory system 1 includes a controller 100 and a NAND memory 200. The controller 100 is connected to the NAND memory 200 via a memory bus 300. The NAND memory 200 is an example of a non-volatile memory.
[0014] The controller 100 controls the NAND memory 200 .
[0015] The controller 100 writes data requested to be written by the host device 2 to the NAND memory 200, and reads data requested to be read by the host device 2 from the NAND memory 200 and sends the data to the host device 2. In other words, the controller 100 executes data transfer between the host device 2 and the NAND memory 200. Data transfer between the host device 2 and the NAND memory 200 is referred to as host access processing.
[0016] Furthermore, the controller 100 executes a transfer process for transferring data within the NAND memory 200. The transfer process includes garbage collection, eviction, etc. The transfer process will be described in detail later.
[0017] The controller 100 includes a processor 101, a host interface (host I / F) 102, a RAM (Random Access Memory) 103, a buffer memory 104, a memory interface (memory I / F) 105, and an internal bus 106. The processor 101, the host I / F 102, the RAM 103, the buffer memory 104, and the memory I / F 105 are electrically connected to the internal bus 106.
[0018] The controller 100 may be configured as a system-on-a-chip (SoC). Alternatively, the controller 100 may be configured with multiple chips. The RAM 103 or the buffer memory 104 may be disposed outside the controller 100.
[0019] The host I / F 102 outputs the access command and user data received from the host device 2 to the internal bus 106. The user data is sent to the buffer memory 104 via the internal bus 106.
[0020] Furthermore, the host I / F 102 transmits user data read from the NAND memory 200, responses from the processor 101, and the like to the host device 2.
[0021] The buffer memory 104 is a memory that functions as a buffer for data transfer between the host device 2 and the NAND memory 200. The buffer memory 104 is configured by a volatile memory such as a static random access memory (SRAM) or a synchronous dynamic random access memory (SDRAM). Note that the type of memory that configures the buffer memory 104 is not limited to these. The buffer memory 104 may be configured by any type of non-volatile memory.
[0022] The memory I / F 105 controls the process of writing user data and the like to the NAND memory 200 and the process of reading the data from the NAND memory 200 based on instructions from the processor 101.
[0023] The processor 101 is a circuit that can execute a computer program. The processor 101 is, for example, a CPU (Central Processing Unit). The processor 101 comprehensively controls each component of the controller 100 based on a firmware program that has been stored in advance in a predetermined location (for example, the NAND memory 200), thereby realizing various processes including host access processing and transcription processing.
[0024] Note that some or all of the processes executed by the processor 101 may be executed by a hardware circuit, or some or all of the processes executed by the processor 101 may be executed by a field-programmable gate array (FPGA) or an application specific integrated circuit (ASIC).
[0025] The RAM 103 provides a function as a buffer, a cache, or a working memory to the processor 101. The RAM 103 is configured by a dynamic random access memory (DRAM), an SRAM, or a combination of these. Note that the types of memory that configure the RAM 103 are not limited to these.
[0026] Note that the controller 100 may include any other components instead of or in addition to these components. For example, the controller 100 may include a circuit that performs a predetermined process (e.g., encoding or decoding) on user data.
[0027] The NAND memory 200 can store user data and the like in a non-volatile manner. The NAND memory 200 is composed of one or more memory chips 201. Here, as an example, the NAND memory 200 is composed of four memory chips 201-0, 201-1, 201-2, and 201-3. The memory chip 201 is a NAND type flash memory memory chip.
[0028] 2 is a schematic diagram showing an example of a configuration of a memory chip 201 according to the first embodiment. The memory chip 201 includes a peripheral circuit 210 and a memory cell array 211.
[0029] The memory cell array 211 includes a plurality of blocks BLK (BLK0, BLK1, BLK2, ...), each of which is a set of a plurality of nonvolatile memory cell transistors. Each block BLK includes a plurality of string units SU (SU0, SU1, SU2, ...), each of which is a set of memory cell transistors associated with a word line and a bit line. Each of the string units SU includes a plurality of NAND strings 212, in which a plurality of memory cell transistors are connected in series. The number of NAND strings 212 in a string unit SU is arbitrary.
[0030] The peripheral circuit 210 includes, for example, a row decoder, a column decoder, a sense amplifier, a latch circuit, and a voltage generating circuit. In response to an instruction from the controller 100, the peripheral circuit 210 executes an operation corresponding to the instruction on the memory cell array 211. The instruction from the controller 100 includes write, read, and erase.
[0031] 3 is a schematic diagram showing a circuit configuration of a block BLK according to the first embodiment. Each block BLK has the same configuration. The block BLK has, for example, four string units SU0 to SU3. Each string unit SU includes a plurality of NAND strings 212.
[0032] Each of the NAND strings 212 includes, for example, 64 memory cell transistors MT (MT0 to MT63) and select transistors ST1 and ST2. The memory cell transistors MT include a control gate and a charge storage layer, and store data in a non-volatile manner. The 64 memory cell transistors MT (MT0 to MT63) are connected in series between the source of the select transistor ST1 and the drain of the select transistor ST2. The memory cell transistors MT may be of a MONOS type that uses an insulating film for the charge storage layer, or may be of an FG type that uses a conductive film for the charge storage layer. Furthermore, the number of memory cell transistors MT in the NAND string 212 is not limited to 64.
[0033] The gates of the select transistors ST1 in each of the string units SU0 to SU3 are connected to the respective select gate lines SGD0 to SGD3. In contrast, the gates of the select transistors ST2 in each of the string units SU0 to SU3 are commonly connected to, for example, a select gate line SGS. The gates of the select transistors ST2 in each of the string units SU0 to SU3 may be connected to different select gate lines SGS0 to SGS3 (not shown) for each string unit SU. The control gates of the memory cell transistors MT0 to MT63 in the same block BLK are commonly connected to the respective word lines WL0 to WL63.
[0034] The drains of the select transistors ST1 of the NAND strings 212 in the string units SU are connected to different bit lines BL (BL0 to BL(L-1), where L is a natural number equal to or greater than 2). The bit lines BL commonly connect one NAND string 212 in each string unit SU across multiple blocks BLK. Furthermore, the sources of the select transistors ST2 are commonly connected to a source line SL.
[0035] That is, a string unit SU is a set of multiple NAND strings 212 each connected to a different bit line BL and connected to the same select gate line SGD. A block BLK is a set of multiple string units SU that share a word line WL. The memory cell array 211 is a set of multiple blocks BLK that share at least one bit line BL.
[0036] The peripheral circuit 210 can collectively write and read data to the memory cell transistors MT connected to one word line WL in one string unit SU. A group of memory cell transistors MT selected collectively during writing and reading is referred to as a memory cell group MCG. A unit of a collection of 1-bit data written to or read from one memory cell group MCG is referred to as a page.
[0037] The erasure by the peripheral circuit 210 is performed in units of blocks BLK, that is, all data stored in one block BLK is erased together.
[0038] The configuration of the memory cell array 211 is not limited to the configuration shown in Figures 2 and 3. For example, the memory cell array 211 may have a configuration in which the NAND strings 212 are arranged two-dimensionally or three-dimensionally.
[0039] In writing to the memory cell array 211, the peripheral circuit 210 injects an amount of charge corresponding to the data into the charge storage layer of each memory cell transistor MT constituting the page of the write destination. In reading from the memory cell array 211, the peripheral circuit 210 reads data corresponding to the amount of charge stored in the charge storage layer from each memory cell transistor MT constituting the page of the read destination.
[0040] Each memory cell transistor MT can hold a value of n (n≧1) bits. A mode where n is 1 is called SLC (Single Level Cell). When each memory cell transistor MT holds a value of n bits, the memory capacity per memory cell group MCG is equal to the size of n pages. A mode where n is 2 is called MLC. A mode where n is 3 is called TLC. A mode where n is 4 is called QLC (Quad Level Cell). These modes in which one memory cell holds a value of n bits are referred to as memory modes.
[0041] The threshold voltage of each memory cell transistor MT is controlled within a certain range by the peripheral circuit 210. The controllable range of the threshold voltage is divided into a number of sections equal to the nth power of 2, and a different n-bit value is assigned to each section.
[0042] FIG. 4 is a diagram for explaining each division in various memory modes of the first embodiment. As shown in FIG. 4, the range of the threshold voltage (controllable range) is divided into a plurality of divisions 4. For example, in the case of SLC, the range of the threshold voltage is divided into two divisions 4. In the case of MLC, the range of the threshold voltage is divided into four divisions 4. In the case of TLC, the range of the threshold voltage is divided into eight divisions 4. In the case of QLC, the range of the threshold voltage is divided into 16 divisions 4. The more bits of a value held in one memory cell, the narrower the range of each division 4. A value is assigned to each division 4. In the case of SLC, the value "1" is assigned to the division 4 on the low voltage side, and the value "0" is assigned to the division 4 on the high voltage side. In the case of MLC, the value "11" is assigned to the division 4 on the lowest voltage side, and "01", "00", and "10" are assigned to the other three divisions 4 in the order of voltage, respectively. Note that the method of assigning values to each division 4 is not limited to the above example. In the following description, n, that is, the number of bits of a value held in one memory cell transistor MT, may be referred to as the number of levels.
[0043] In writing to the memory cell array 211, the peripheral circuit 210 injects, into the charge storage layer of each memory cell transistor MT constituting the write destination page, an amount of charge corresponding to the division 4 to which the data to be written is assigned. In reading from the memory cell array 211, the peripheral circuit 210 determines the division 4 to which the threshold voltage of each memory cell transistor MT constituting the read destination page belongs, and outputs the data assigned to the division 4 obtained by the determination as read data.
[0044] When erasing the memory cell array 211, the peripheral circuit 210 applies an erase voltage to the substrate side of the memory cell array 211. Then, the peripheral circuit 210 connects all the word lines WL of the block BLK to be erased to the ground potential. Then, the charge stored in the charge storage layer of each memory cell transistor MT in the selected block BLK is discharged. As a result, the state of each memory cell transistor MT in the selected block BLK transitions to a state in which data is considered to have been erased (i.e., section 4 on the lowest voltage side).
[0045] The memory system 1 may be configured to be capable of reading and writing only in a single storage mode. Alternatively, the memory system 1 may be configured to be capable of switching the storage mode during operation. When the storage mode can be switched, the range of the storage area that is the unit of switching is arbitrary. For example, the memory system 1 may be capable of switching the storage mode in units of blocks BLK.
[0046] When the memory system 1 is configured to be able to switch the storage mode during operation, the storage mode of a part of the storage area of the memory system 1 (e.g., some blocks BLK) may be fixed to a first storage mode, and the storage mode of another part (e.g., some other blocks BLK) may be fixed to a second storage mode different from the first storage mode, and the memory system 1 may select the block BLK to be written to depending on the storage mode to be used. Alternatively, the memory system 1 may be configured to be able to change the storage mode of the storage area (e.g., each block BLK) between multiple storage modes during operation.
[0047] In the following description, it is assumed, as an example, that the memory system 1 is configured to be capable of switching the storage mode between SLC and TLC.
[0048] Next, the state transition of the block BLK will be described. Fig. 5 is a diagram showing an example of the state transition of the block BLK in the first embodiment. The hatched arrows indicate the state transition of the block BLK, and the solid arrows indicate the movement of data.
[0049] The states of a block BLK include at least an open block, an active block, and a free block. One or more active blocks constitute an active block pool, and one or more free blocks constitute a free block pool.
[0050] An open block is a block to which data is currently being written, that is, a block in which there remains an area in which data can be written.
[0051] An active block is a block to which data has been written that cannot yet be reused. Of the blocks to which data has been written, any block in which valid user data is stored is managed as an active block. Reusing refers to transitioning the block to an open block.
[0052] A free block is a block that does not store valid user data and is available for reuse.
[0053] For example, after one block of data BLK is written to an open block, the open block transitions to an active block. The data stored in an active block is either valid or invalid.
[0054] When certain data (referred to as first data) is stored in an active block, and second data is sent from the host device 2 specifying the same logical address value as the logical address value specified when the first data was sent, the controller 100 writes the second data to an empty page of an open block, and manages the first data stored in the active block as invalid data. Thus, the data stored in the active block may be a mixture of valid user data and invalid user data.
[0055] Note that the host device 2 sending new data by specifying the same logical address value as the logical address value specified when sending old data to the memory system 1 is referred to as "rewrite."
[0056] An active block transitions to a free block through garbage collection. Garbage collection refers to a process in which valid data stored in an active block BLK is transcribed to an open block BLK, and all data stored in the transcription source block BLK is invalidated. As a result, the transcription source block BLK transitions from an active block to a free block. Note that transcription can be rephrased as transfer or movement.
[0057] After the data stored in a free block is erased, the free block transitions to an open block.
[0058] Here, data being valid means that the location where the data is stored corresponds to any logical address value. Data being invalid means that the location where the data is stored does not correspond to any logical address value. Here, the "empty" state means that neither invalid data nor valid data is stored. That is, an empty page is a free area where data can be written. The correspondence between the location in the block BLK and the logical address value is maintained and updated by the controller 100.
[0059] Separate open blocks may be prepared for each of the host access process and the transcription process. An open block for the host access process and an open block for the transcription process may be prepared. If the storage mode can be switched in block BLK units, an open block may be prepared for each storage mode.
[0060] In addition to garbage collection, the posting process also includes eviction, which is performed when the memory system 1 is configured to enable two or more different storage modes.
[0061] For example, consider a memory system configured to be able to switch the storage mode at the time of writing between a first storage mode and a second storage mode having a smaller number of levels than the first storage mode. In such a memory system, when writing in the second storage mode, a larger capacity storage area is required than when writing in the first storage mode. Therefore, when writing in the second storage mode is performed, the amount of free blocks consumed is greater than when writing in the first storage mode, and the total amount of data that can be written to the memory system is reduced. Therefore, when writing of data in the second storage mode is completed, the controller later executes a process of reading the data and writing the read data back in the first storage mode. This recovers the number of free blocks and recovers the total amount of data that can be written to the memory system. Eviction is a process of reading the data and writing the read data back in the first storage mode after writing of data in the second storage mode is completed.
[0062] In eviction, for example, an active block to which data has been written in the second storage mode is selected as the transcription source, and valid data is read from the selected transcription source. The read valid data is then written to another block BLK (open block) in the first storage mode. When the movement of all valid data in the transcription source block BLK is completed, the transcription source block BLK transitions from an active block to a free block. Thus, a free block is also generated by eviction.
[0063] The host device 2 may wish to control the amount of power consumed by the memory system 1. For example, when the information processing system 10 is a portable computer equipped with a battery, it is possible to control the amount of power consumed by the memory system 1 depending on whether the information processing system 10 is connected to a power source or not. When the information processing system 10 is connected to a power source, the information processing system 10 can use abundant power from the power source, and can supply the memory system 1 with a sufficient amount of power required by the memory system 1. When the information processing system 10 is not connected to a power source and operates using energy stored in a battery, the information processing system 10 supplies less power to the memory system 1 than when the information processing system 10 is connected to a power source.
[0064] In the embodiment, the memory system 1 is configured to be able to receive information related to the amount of power from the host device 2. In the first embodiment, the memory system 1 can receive a power amount limit instruction as an example of the information related to the amount of power. When the memory system 1 receives the power amount limit instruction, the operation mode transitions to an operation mode in which the amount of power consumption is suppressed. The operation mode in which the amount of power consumption is not suppressed is referred to as a normal mode. The operation mode in which the amount of power consumption is suppressed is referred to as a power amount limit mode.
[0065] In the power limit mode, the controller 100 reduces the amount of processing in the transcription process compared to the normal mode. The method of reducing the amount of processing in the transcription process is not limited to a specific method.
[0066] In one example, the controller 100 makes the frequency of execution of the transfer process different between the normal mode and the power limit mode. That is, the controller 100 makes the frequency of execution of the transfer process in the power limit mode lower than the frequency of execution of the transfer process in the normal mode. In the power limit mode, the processing amount of the transfer process is reduced by the amount that the frequency of execution of the transfer process is reduced compared to the normal mode. In the power limit mode, the power consumption of the memory system 1 is suppressed by the amount that the processing amount of the transfer process is reduced compared to the normal mode.
[0067] In another example, the controller 100 makes the start condition of the transfer process different between the normal mode and the power limit mode. For example, when the start condition of garbage collection (or eviction) is that the number of free blocks falls below the judgment threshold, different values are used as the judgment threshold between the normal mode and the power limit mode. Specifically, the controller 100 uses a first set value as the judgment threshold in the normal mode, and uses a second set value smaller than the first set value as the judgment threshold in the power limit mode. As a result, garbage collection (or eviction) is more difficult to execute in the power limit mode than in the normal mode, and the amount of garbage collection (or eviction) processing is reduced. In the power limit mode, the amount of garbage collection (or eviction) processing is reduced compared to the normal mode, and the power consumption of the memory system 1 is suppressed accordingly.
[0068] In the power limit mode, the processing amount of which is reduced may be all posting processes or only some of the posting processes. For example, only garbage collection may be the target, only eviction may be the target, or both may be the target.
[0069] In this way, the controller 100 performs an operation according to the operation mode. That is, the operation mode of the memory system 1 can be considered as the operation mode of the controller 100. Hereinafter, the operation mode of the controller 100 means the operation mode of the memory system 1.
[0070] Next, the operation of the information processing system 10 according to the first embodiment will be described.
[0071] 6 is a diagram for explaining an example of information transferred between the host device 2 and the memory system 1 of the first embodiment. In the explanation of FIG. 6, it is assumed that the operation mode of the memory system 1 is the normal mode in the initial state.
[0072] The host device 2 can read data from and write data to the memory system 1 in the normal mode (S101). When the host device 2 wishes to transition the operation mode of the memory system 1 to the power limit mode, it transmits a power limit instruction to the memory system 1 (S102).
[0073] For example, in NVMe (registered trademark), actual operations are not defined for all command values. Vendors can assign command values with undefined operations to any operation. Such command values that vendors can assign to any operation are called vendor-specific. Vendors can assign vendor-specific command values prepared by the standards for the communication interface 3 to power limit instructions. Another vendor-specific command value can also be assigned to a power limit release instruction, which will be described later.
[0074] Alternatively, the power amount limit instruction (and the power amount limit release instruction) may be incorporated into the standard of the communication interface 3.
[0075] Alternatively, the host device 2 and the memory system 1 may be connected by a dedicated signal line for transferring power amount limit instructions (and power amount limit lift instructions), and the host device 2 may transmit the power amount limit instructions (and power amount limit lift instructions) to the memory system 1 via the dedicated signal line.
[0076] When the memory system 1 receives the power limit instruction, it transitions from the normal mode to the power limit mode. The host device 2 can read data from and write data to the memory system 1 in the power limit mode (S103).
[0077] When the host device 2 wishes to return the operation mode of the memory system 1 from the power limit mode to the normal mode, it transmits a power limit release instruction to the memory system 1 (S104). When the memory system 1 receives the power limit release instruction, it transitions from the power limit mode to the normal mode. The host device 2 can execute data reads and data writes to the memory system 1 in the normal mode (S105).
[0078] Thereafter, the host device 2 and the memory system 1 can repeat the same operations as S101 to S105.
[0079] FIG. 7 is a flowchart illustrating an example of the operation of garbage collection, which is an example of the transcription process according to the first embodiment.
[0080] The controller 100 determines whether or not to perform garbage collection (S201). The method of determining whether or not to perform garbage collection is not limited to a specific method. For example, as described above, the controller 100 can determine whether or not to perform garbage collection based on a comparison between the number of free blocks and a determination threshold value. Alternatively, the controller 100 can determine whether or not to perform garbage collection so that the frequency of garbage collection is a predetermined frequency.
[0081] If it is determined that garbage collection is not to be executed (S201: No), the controller 100 executes the determination process of S201 again.
[0082] When it is determined that garbage collection is to be performed (S201: Yes), the controller 100 selects one active block as the transcription source block BLK (S202).
[0083] Then, the controller 100 transcribes all valid data stored in the block BLK of the transcription source to the block BLK of the transcription destination (S203). That is, the controller 100 copies all valid data stored in the block BLK of the transcription source to the block BLK of the transcription destination, and invalidates all data stored in the transcription source. As a result, the valid data stored in the block BLK of the transcription source is transcribed to the block BLK of the transcription destination. The block BLK of the transcription destination is a block BLK that has been set as an open block.
[0084] Then, the controller 100 sets the block BLK of the transcription source as a free block (S204).
[0085] Then, the control proceeds to S201.
[0086] FIG. 8 is a flowchart illustrating an example of an eviction operation, which is another example of the transcription process according to the first embodiment.
[0087] The controller 100 determines whether or not to perform eviction (S301). The method of determining whether or not to perform eviction is not limited to a specific method. For example, as described above, the controller 100 can determine whether or not to perform eviction based on a comparison between the number of free blocks and a determination threshold value. Alternatively, the controller 100 can determine whether or not to perform garbage collection so that the frequency of eviction is a predetermined frequency.
[0088] If it is determined that eviction is not to be performed (S301: No), the controller 100 executes the determination process of S301 again.
[0089] When it is determined that eviction is to be performed (S301: Yes), the controller 100 selects one active block to which data has been written in SLC mode as the transcription source block BLK (S302).
[0090] Then, the controller 100 transcribes all valid data stored in the block BLK of the transcription source to the block BLK of the transcription destination in the TLC mode (S303). That is, the controller 100 writes all valid data stored in the block BLK of the transcription source to the block BLK of the transcription destination in the TLC mode, and invalidates all data stored in the transcription source. As a result, the valid data stored in the block BLK of the transcription source is transcribed to the block BLK of the transcription destination. The block BLK of the transcription destination is a block BLK that is set as an open block, and is a block BLK to which data is written in the TLC mode.
[0091] Then, the controller 100 sets the block BLK of the transcription source as a free block (S304).
[0092] Then, the control proceeds to S301.
[0093] 9 is a flowchart for explaining an example of an operation related to a transition of an operation mode in the first embodiment. In the explanation of FIG. 9, the operation mode of the memory system 1 in the initial state is the normal mode.
[0094] The controller 100 judges whether or not a power amount limiting instruction has been received from the host device 2 (S401). If it is judged that a power amount limiting instruction has not been received (S401: No), the controller 100 executes the judgment process of S401 again.
[0095] When it is determined that the power amount limit instruction has been received (S401: Yes), the controller 100 transitions from the normal mode to the power amount limit mode (S402). That is, the controller 100 reduces the processing amount of the transfer process.
[0096] After S402, the controller 100 judges whether or not a power amount limit lift instruction has been received from the host device 2 (S403). If it is judged that a power amount limit lift instruction has not been received (S403: No), the controller 100 executes the judgment process of S403 again.
[0097] When it is determined that the power amount limit release instruction has been received (S403: Yes), the controller 100 transitions from the power amount limit mode to the normal mode (S404). In other words, the controller 100 releases the reduction in the processing amount of the transcription process.
[0098] Then, the control proceeds to S401.
[0099] In the above description, the memory system 1 transitions from the power-amount limit mode to the normal mode in response to a power-amount limit release instruction. The trigger for transitioning from the power-amount limit mode to the normal mode is not limited to only receiving a power-amount limit release instruction. The controller 100 may autonomously transition the operation mode of the memory system 1 from the power-amount limit mode to the normal mode. For example, when the elapsed time since the operation mode of the memory system 1 transitioned to the power-amount limit mode reaches a predetermined time, the controller 100 may transition the operation mode of the memory system 1 from the power-amount limit mode to the normal mode. Alternatively, when it becomes difficult to continue reducing the processing amount of the transcription process, the controller 100 may transition the operation mode of the memory system 1 from the power-amount limit mode to the normal mode.
[0100] As described above, according to the first embodiment, the controller 100 can execute a data transfer process for transferring data between the host device 2 and the NAND memory 200, and a transfer process for transferring data within the NAND memory 200. The controller 100 then reduces the amount of processing of the transfer process in response to a power amount limit instruction from the host device 2.
[0101] Since the memory system 1 is configured as described above, it becomes possible for the host device 2 to control the amount of power consumption of the memory system 1.
[0102] Second Embodiment In the second embodiment, the operation of garbage collection in the transcription process differs between the normal mode and the power-limited mode. More specifically, the policy for selecting a transcription source block BLK in garbage collection differs between the normal mode and the power-limited mode. In the second embodiment, the differences from the first embodiment will be described, and the same points as the first embodiment will be omitted or briefly described. Note that the second embodiment can be used in combination with the first embodiment.
[0103] FIG. 10 is a diagram illustrating an example of a method for selecting a transcription source block BLK in garbage collection according to the second embodiment.
[0104] FIG. 10 depicts a plurality of blocks BLK (six here as an example). The six blocks BLK are active blocks, and the six blocks BLK constitute all the active blocks of the memory system 1. FIG. 10 also depicts the six blocks BLK arranged in order of the time at which they transitioned to active blocks (in other words, the time at which data was last written). The six blocks BLK are represented as blocks BLKa to BLKf. Here, block BLKa transitioned to active blocks most recently, followed by blocks BLKa, BLKb, BLKc, BLKd, and BLKe in that order. In each of blocks BLKa to BLKf, the area of the shaded portion corresponds to the amount of valid data stored therein.
[0105] The controller 100 (eg, the processor 101) records the order in which each block BLK became an active block and the amount of valid data stored in each block BLK, and updates the recorded contents as needed.
[0106] In the power limit mode, the controller 100 selects a block BLK having the least amount of valid data stored therein as a block BLK to be used as a transcription source for garbage collection. In the example of Fig. 10, the controller 100 selects, for example, block BLKc from among six blocks BLKa to BLKf, each of which is an active block, as a block BLK to be used as a transcription source.
[0107] In garbage collection, valid data is moved from the source block BLK to the destination block BLK, thereby making the source block BLK a free block. The smaller the amount of valid data stored in the source block BLK, the smaller the amount of data moved to generate one free block, and therefore the smaller the amount of power required to generate one free block. In the power limit mode, the block BLK with the smallest amount of valid data stored therein is selected as the source block BLK for garbage collection, thereby suppressing the amount of power required for garbage collection.
[0108] In the power limit mode, there may be cases where the block BLK in which the amount of valid data stored is the smallest is not necessarily selected as the block BLK from which data is to be transferred.
[0109] For example, the controller 100 may record the amount of valid data stored in each block BLK as numerical information with a coarse grain that is not precise. In such a case, it is possible to find blocks BLK in which the amount of valid data stored is small.
[0110] In another example, there may be a lag between the timing of updating the amount of valid data stored in each block BLK recorded by the controller 100 and the timing of the change in the amount of valid data stored in each block BLK. Even in such a case, it is possible to find a block BLK in which the amount of valid data stored is small.
[0111] In these examples, it is possible to preferentially select a block BLK having a smaller amount of valid data stored therein as the block BLK to be transcribed from. In the power limiting mode, the method of selecting the block BLK to be transcribed from may be changed in various ways, as long as the block BLK having a smaller amount of valid data stored therein is preferentially selected as the block BLK to be transcribed from.
[0112] In another example of a method for preferentially selecting a block BLK having a small amount of valid data stored therein as a block BLK to be used as a transcription source, the controller 100 may store an amount that is sufficiently small relative to the capacity of one block BLK as a threshold value, and select a block BLK to be used as a transcription source in garbage collection based on a comparison between the amount of valid data stored therein and the threshold value. The controller 100 may search for a block BLK having an amount of valid data stored therein that is less than the threshold value, and select the first block BLK found as a block BLK to be used as a transcription source in garbage collection.
[0113] In the normal mode, the controller 100 (e.g., the processor 101) selects the block BLK that has been transitioned to the active block the oldest, in other words, the block BLK to which data has been last written, as the block BLK to be used as the transcription source for garbage collection. In the example of Fig. 10, the controller 100 selects the block BLKf as the transcription source block BLK.
[0114] If data remains valid in a block BLK that became an active block a long time ago, it means that the data has not been rewritten for a long period of time. This type of data that tends to remain valid for a long period of time is called "cold." In contrast, data that tends to be rewritten and become invalid in a short period of time is called "hot."
[0115] It is highly likely that rewriting of cold data will not be performed for some time to come. Therefore, if the block BLK with the oldest transition time to an active block is selected as the block BLK to be transcribed in garbage collection, cold data can be consolidated into several blocks BLK. Consolidating cold data into several blocks BLK improves the utilization efficiency of all blocks BLK, which can improve the efficiency of garbage collection in the future.
[0116] In the normal mode, the block BLK in which data was last written does not necessarily have to be selected as the block BLK from which data is to be transferred in garbage collection.
[0117] For example, in normal mode, the controller 100 may preferentially select a block BLK in which data was last written as the block BLK from which data is to be transferred in garbage collection.
[0118] Alternatively, in the normal mode, the controller 100 may select a block BLK as a transcription source in garbage collection based on a complex determination that adds an arbitrary condition to the condition related to the time when data was last written. For example, the controller 100 may select a block BLK in which the amount of valid data stored is as small as possible from among several blocks BLK in which data was last written, as a transcription source block BLK in garbage collection.
[0119] FIG. 11 is a flowchart for explaining an example of an operation related to a transition of an operation mode in the second embodiment.
[0120] In the description of Fig. 11, in the power limit mode, the controller 100 selects, as an example, the block BLK in which the amount of valid data stored is the smallest as the block BLK to be used as the transcription source for garbage collection. In the normal mode, the controller 100 selects, as an example, the block BLK in which data was last written, as the block BLK to be used as the transcription source for garbage collection. In the initial state of Fig. 11, the operation mode of the memory system 1 is set to the normal mode.
[0121] The controller 100 (e.g., the processor 101) determines whether or not the memory system 1 has received a power amount limiting instruction from the host device 2 (S501). If it is determined that the memory system 1 has not received a power amount limiting instruction (S501: No), the controller 100 executes the determination process of S501 again.
[0122] When it is determined that the memory system 1 has received a power limit instruction (S501: Yes), the controller 100 transitions to a power limit mode (S502). In the power limit mode, the controller 100 uses a policy of selecting a block BLK having the least amount of valid data stored therein as a transcription source in garbage collection.
[0123] After S502, the controller 100 judges whether or not a power amount limit lift instruction has been received from the host device 2 (S503). If it is judged that a power amount limit lift instruction has not been received (S503: No), the controller 100 executes the judgment process of S503 again.
[0124] When it is determined that the power consumption limit release instruction has been received (S503: Yes), the controller 100 transitions to the normal mode (S504). In the normal mode, the controller 100 uses a policy of selecting the block BLK in which data was last written, as the transcription source for garbage collection.
[0125] Then, the control proceeds to S501.
[0126] Thus, in the second embodiment, the controller 100 selects a block BLK to be a transcription source in garbage collection in the power limit mode according to a policy based only on the amount of valid data stored. Also, in the normal mode, the controller 100 selects a block BLK to be a transcription source in garbage collection in accordance with a policy different from the policy in the power limit mode.
[0127] More specifically, in the power limit mode, the controller 100 preferentially selects a block BLK having a smaller amount of valid data stored therein as the transcription source block.
[0128] Therefore, in the power limit mode, the amount of data moved to generate one free block can be reduced, and the amount of power required for garbage collection can be reduced. As a result, the amount of power consumed by the memory system 1 can be reduced in the power limit mode.
[0129] Furthermore, in normal mode, the controller 100 can select a block BLK to be transcribed in garbage collection based on the last written time.
[0130] In such a case, for example, cold data can be consolidated into several blocks BLK, which will improve the efficiency of garbage collection in the future. As described above, the policy for selecting blocks BLK to be transcribed in normal mode is not limited to this example.
[0131] (Third embodiment) In the third embodiment, the controller 100 generates a plan for power consumption (referred to as a power consumption plan) based on an instruction from the host device 2. Then, the controller 100 switches the operation mode of the memory system 1 between a power limit mode and a normal mode so that the transition of the power consumption satisfies the power consumption plan.
[0132] Hereinafter, the third embodiment will be described. In the third embodiment, differences from the first embodiment will be described, and descriptions of the same points as the first embodiment will be omitted or will be briefly described.
[0133] Specifically, the controller 100 can receive a planned power consumption amount and a planned period in addition to a power limit instruction from the host device 2. The planned power consumption amount that the memory system 1 receives from the host device 2 is an example of a first value. The planned period that the memory system 1 receives from the host device 2 is an example of a second value.
[0134] The planning period specifies the period during which operation in the power limit mode is possible. For example, if the planning period is "30 minutes", the operation mode of the memory system 1 is switched between the power limit mode and the normal mode based on the power consumption plan during the period from the start time of the planning period until 30 minutes have elapsed.
[0135] The planned period received from the host device 2 may be numerical information directly indicating the length of the planned period. The planned period received from the host device 2 may be a pair of numerical information indicating the start time and end time of the planned period. The planned period received from the host device 2 may be numerical information indicating the end time. When the planned period received from the host device 2 is numerical information indicating the end time, the method of identifying the start time of the planned period is arbitrary. For example, the controller 100 may be configured to interpret a power amount limit instruction as an instruction to start the planned period.
[0136] Alternatively, a plurality of pieces of numerical information may be set in advance in the controller 100, and each of the plurality of pieces of numerical information may be numerical information that can be set as a planning period and may be associated with an identifier. Then, the host device 2 may select the numerical information to be set as the planning period from the plurality of pieces of numerical information by transmitting the identifier.
[0137] The planned power consumption defines the amount of power that can be consumed within the planned period.
[0138] The estimated power consumption received from the host device 2 may be numerical information that directly indicates the estimated power consumption.
[0139] Alternatively, a plurality of pieces of numerical information may be set in advance in the controller 100, and each of the plurality of pieces of numerical information may be set as the planned power consumption amount and may be associated with an identifier. Then, the host device 2 may select the numerical information to be set as the planned power consumption amount from the plurality of pieces of numerical information by transmitting the identifier.
[0140] The controller 100 creates a power consumption plan based on the expected power consumption and the planning period.
[0141] Fig. 12 is a schematic diagram showing an example of a power consumption plan generated by the controller 100 of the third embodiment. The horizontal axis indicates the elapsed time from the start of the plan period. The vertical axis indicates the power consumption from the start of the plan period. In the example of Fig. 12, the scheduled power consumption is 1000 mWh, and the plan period is 30 minutes.
[0142] The dotted line represents the power consumption plan. In this example, the power consumption plan is generated so that the power consumption increases linearly over time from 0 mWh to 1000 mWh. The power consumption gradient is determined so that at the end of the planning period, i.e., 30 minutes after the planning period begins, the power consumption from the beginning of the planning period will be 1000 mWh.
[0143] In response to the power limit instruction, the controller 100 starts controlling the amount of power based on the power consumption plan. More specifically, the controller 100 controls the amount of power consumption of the memory system 1 so that the change in the actual amount of power consumption does not exceed the change indicated by the power consumption plan as much as possible by transitioning the operation mode of the memory system 1 to a power limit mode as necessary. In other words, the power consumption plan specifies the change in the upper limit value of the amount of power consumption.
[0144] The controller 100 can suppress the power consumption of the memory system 1 so as not to exceed the planned power consumption during the planned period by switching the operating mode so that the trend in power consumption does not exceed the trend in the upper limit value specified by the power consumption plan.
[0145] 12 shows an example (see solid line) of the actual power consumption in the memory system 1. It can be seen that the above-described control ensures that the actual power consumption does not exceed the upper limit set by the power consumption plan.
[0146] FIG. 13 is a flowchart for explaining an example of an operation related to a transition of an operation mode in the third embodiment.
[0147] The controller 100 determines whether or not the memory system 1 has received the planned power consumption amount, the planned period, and the power limit instruction from the host device 2 (S601).
[0148] If the memory system 1 has not received the planned power consumption amount, the planned period, and the power limit instruction from the host device 2 (S601: No), the controller 100 executes the process of S601 again.
[0149] When the memory system 1 receives the planned power consumption, the planned period, and the power limit instruction from the host device 2 (S601: Yes), the controller 100 generates a power consumption plan based on the planned power consumption and the planned period (S602).
[0150] Next, the controller 100 starts controlling the amount of power in accordance with the power limit instruction that has already been received. That is, the controller 100 starts the planning period (S603).
[0151] During the planning period, the controller 100 determines the operation mode based on a comparison between the amount of power consumption from the start of the planning period and the upper limit value defined by the power consumption plan.
[0152] More specifically, the controller 100 calculates the upper limit value E(t) of the power consumption defined by the power consumption plan at the time when the elapsed time (denoted as time t) from the start of the planned period to the present time has elapsed (S604).
[0153] E(t) is calculated, for example, using the following formula (1). Note that, as an example, it is assumed here that the power consumption plan is generated using the method described with reference to FIG.
[0154] E(t) = Ep * t / tp (1) Here, Ep is the planned power consumption, and tp is the length of the planning period. In formula (1), t is set to a value greater than or equal to 0 and less than or equal to tp.
[0155] Next, the controller 100 determines whether the amount of power consumption (denoted as Ec) since the start of the planning period is less than E(t) (S605).
[0156] If Ec is less than E(t) (S605: Yes), the controller 100 operates in the normal mode (S606). If Ec is not less than E(t) (S605: No), the controller 100 operates in the power limit mode (S607).
[0157] After S606 or S607, the controller 100 judges whether the end timing of the planning period has arrived (S608). If the end timing of the planning period has not arrived (S608: No), the controller 100 executes the process of S604 again. If the end timing of the planning period has arrived (S608: Yes), the controller 100 ends the planning period (S609). That is, if the operation mode of the controller 100 was the power amount limit mode, the controller 100 transitions to the normal mode. If the operation mode of the controller 100 was the normal mode, the controller 100 continues operation in the normal mode. A series of operations ends with S609.
[0158] Note that the operation of the controller 100 in the third embodiment in the normal mode may be the same as the operation of the controller 100 in the first embodiment or the operation of the controller 100 in the normal mode in the second embodiment.
[0159] The operation of the controller 100 of the third embodiment in the power amount limit mode may be the same as the operation of the controller 100 of the first embodiment in the power amount limit mode or the operation of the controller 100 of the second embodiment in the power amount limit mode.
[0160] The loop process from S604 to S608 is repeated at a time interval that is sufficiently short for the planned period. Therefore, by repeating the loop process, the operation mode is switched so that the change in the power consumption does not exceed the change determined as the power consumption plan as much as possible. As a result, the power consumption is suppressed so that the power consumption during the planned period does not exceed the scheduled power consumption.
[0161] In the above description, it has been explained that when Ec is equal to E(t), the controller 100 operates in the power limit mode. The process when Ec is equal to E(t) is not limited to this. When Ec is equal to E(t), the controller 100 may operate in the normal mode.
[0162] Furthermore, the method by which the controller 100 acquires its own power consumption amount is not limited to a specific method.
[0163] As an example, it is possible to provide a circuit for monitoring power consumption in the memory system 1. Fig. 14 is a schematic diagram showing an example of the configuration of the memory system 1 of the third embodiment. Note that in Fig. 14, the same configuration as that included in the first embodiment is omitted.
[0164] 14, the information processing system 10 includes a power supply device 5. In addition to the controller 100 and the NAND memory 200, the memory system 1 includes a power supply circuit 400. The power supply circuit 400 is connected to the power supply device 5 by a power supply line 6. The power supply circuit 400 generates power for operating the controller 100 and the NAND memory 200 based on the power supplied from the power supply device 5 via the power supply line 6, and supplies the generated power to the controller 100 and the NAND memory 200.
[0165] The power supply circuit 400 includes a measurement circuit 401. The measurement circuit 401 measures the power consumption of the memory system 1. The measurement results by the measurement circuit 401 are transmitted to the controller 100. The controller 100 calculates the amount of power consumption based on the obtained measurement results.
[0166] The measuring circuit 401 may be provided on a board (not shown) of the memory system 1. In such a case, the measuring circuit 401 measures, for example, the amount of current flowing through the board. The measurement result by the measuring circuit 401 is transmitted to the controller 100. The controller 100 calculates the amount of power consumption based on the obtained measurement result and the rated voltage.
[0167] In another example, parameters such as the amount of power consumed per write to the NAND memory 200, the amount of power consumed per read from the NAND memory 200, the amount of power consumed per transfer of data of a unit size in the communication interface 3, the amount of power consumed by each component in a steady state, etc. are stored in advance in a predetermined location (for example, the NAND memory 200).Then, the controller 100 calculates the amount of power consumption in the memory system 1 based on these parameters, the number of reads actually performed by each memory chip 201, the number of writes actually performed by each memory chip 201, the amount of data transferred via the communication interface 3, etc.
[0168] In yet another example, the memory system 1 may be configured so that information regarding the power consumption of the memory system 1 is input from the host device 2.
[0169] FIG. 15 is a diagram for explaining an example of a method in which the memory system 1 of the third embodiment receives information regarding power consumption.
[0170] 15, the host device 2 first transmits the expected power consumption, the planning period, and a power limit instruction (S701). Then, in the memory system 1, the controller 100 starts the planning period (S702). During the planning period, the host device 2 transmits power consumption information to the memory system 1 during intervals between data transmission and reception between the host device 2 and the memory system 1 (S703).
[0171] The power consumption information may be the power consumption of the memory system 1 at the timing when the power consumption information is transmitted. The power consumption information may be the amount of power consumed by the memory system 1 after a predetermined timing. The predetermined timing may be, for example, the start timing of a planning period, the timing when the power consumption information was previously transmitted, or any other timing. The power consumption information may be the amount of current flowing through the memory system 1. In other words, the power consumption information is any physical quantity related to power consumption that the memory system 1 can use to calculate the amount of power consumption.
[0172] The power consumption information may be transmitted by using any command. For example, one vendor-specific command may be assigned as a command for transmitting the power consumption information. The command for transmitting the power consumption information may be incorporated into the standard of the communication interface 3. The host device 2 and the memory system 1 may be connected by a dedicated signal line for transferring the power consumption information, and the host device 2 may transmit the power consumption information to the memory system 1 via the dedicated signal line.
[0173] The power consumption information is transmitted from the host device 2 to the memory system 1 at regular intervals or at any timing, at least once. The controller 100 can calculate the amount of power consumption based on the power consumption information received from the host device 2.
[0174] When the planning period ends (S704), the host device 2 can end the transmission of the power consumption information.
[0175] The host device 2 may also transmit the power consumption information during periods other than the planned period. The memory system 1 may transmit a request for power consumption information to the host device 2, and the host device 2 may transmit the power consumption information in response to the request. The method by which the host device 2 transmits the power consumption information to the memory system 1 may be modified in various ways.
[0176] The host device 2 does not have to transmit the planned power consumption, the planned period, and the power limit instruction all at once. The memory system 1 may be configured to be able to receive the planned power consumption, the planned period, or both at a timing different from the power limit instruction.
[0177] For example, the memory system 1 receives the expected power consumption amount and the planned period from the host device 2. After that, when the memory system 1 receives a power amount limit instruction, it may start the planned period in response to the power amount limit instruction.
[0178] The power consumption amount plan shown by the dotted line in FIG. 12 has been described above as an example of the power consumption amount plan. The power consumption amount plan is not limited to the example shown in FIG. 12. Furthermore, the memory system 1 may be configured to be able to change the power consumption amount plan during the planning period. For example, the controller 100 may generate a new power consumption amount plan at any timing during the planning period in which the upper limit value of the power consumption increases linearly with time from the amount of power already consumed to the planned amount of power consumption, and start an operation based on the newly generated power consumption amount plan. In other words, the controller 100 may regenerate the power consumption amount plan during the planning period. The controller 100 may regenerate the power consumption amount plan at a plurality of different timings during the planning period. The host device 2 may instruct the memory system 1 on the timing of regenerating the power consumption amount plan.
[0179] Furthermore, the host device 2 may instruct to change the power consumption plan as appropriate during the planning period.
[0180] Furthermore, if it is expected that power consumption will be high in the first half of the planned period due to a concentration of reads or writes in the first half of the planned period, the controller 100 may provide some leeway in the upper limit of power consumption in the first half of the planned period.
[0181] 16 is a diagram for explaining an example of a change in the power consumption plan according to the third embodiment. For example, if the amount of access from the host device 2 becomes heavy in the first half of the planning period, the actual power consumption may approach or exceed the upper limit value defined by the initially generated power consumption plan, as shown in (A) of FIG. 16. In such a case, the upper limit value defined by the power consumption plan becomes a bottleneck, suppressing the performance of access between the host device 2 and the memory system 1.
[0182] Therefore, the controller 100 changes the power consumption plan to a linear function having a non-zero positive value as an intercept for the transition of the upper limit value of the power consumption, as shown by the dotted line in Fig. 16(B). This prevents the power consumption from being suppressed by the upper limit value, even if the power consumption increases in the first half of the planning period due to the amount of access from the host device 2 becoming heavy, as shown by the solid line in Fig. 16(B). In other words, the performance of access between the host device 2 and the memory system 1 is prevented from being suppressed in the first half of the planning period.
[0183] The trigger for changing the power consumption plan is arbitrary. The host device 2 may transmit an instruction to use a function that provides a margin for the upper limit value of power consumption in the first half of the planning period, and the controller 100 may change the power consumption plan in response to the instruction. Alternatively, the controller 100 may autonomously change the power consumption plan when it detects that the trend in the actual power consumption is close to or exceeds the trend of the upper limit value defined by the initially generated power consumption plan.
[0184] Moreover, the controller 100 may generate a power consumption plan as shown by the dotted line in FIG. 16B at the start of the planning period, without making any changes to the power consumption plan.
[0185] The power consumption planning function shown in Fig. 16B is an example of a function for providing a margin for the upper limit of power consumption in the first half of the planning period. A power function may be used as the function for providing a margin for the upper limit of power consumption in the first half of the planning period.
[0186] Thus, according to the third embodiment, the controller 100 receives the planned power consumption amount and the planned period from the host device 2. Then, the controller 100 controls the power consumption amount of the memory system 1 in response to the power amount limit instruction so that the power consumption amount during the planned period does not exceed the planned power consumption amount.
[0187] Therefore, the host device 2 is able to operate the memory system 1 with a limited amount of power for a limited period of time.
[0188] For example, the information processing system 10 may be a portable computer including a memory system 1, a volatile memory, and a battery. The host device 2 is driven by power stored in the battery, and when the remaining power of the battery becomes low, the host device 2 uses the remaining power to save the contents of the volatile memory into a non-volatile memory, that is, in this case, the memory system 1. This operation is called PLP (Power Loss Protection). In PLP, since the remaining power of the battery is low, it is desired to suppress the power consumption of the memory system 1 to an amount of power corresponding to the remaining power of the battery.
[0189] The memory system 1 according to the third embodiment can operate so that the power consumption does not exceed the planned power consumption during the planned period. Therefore, if the host device 2 determines the planned power consumption and the planned period based on the remaining power of the battery and transmits the planned power consumption and the planned period together with a power limit instruction to the memory system 1, it becomes possible to realize the operation of the PLP using a scarce amount of power.
[0190] Furthermore, according to the third embodiment, the controller 100 generates a power consumption plan that specifies the trend of the upper limit value of the power consumption based on the expected power consumption and the planning period, and suppresses the power consumption of the memory system 1 based on the power consumption plan in response to a power consumption limit instruction.
[0191] Therefore, it is possible to control the power consumption of the memory system 1 so that the power consumption during the planning period does not exceed the planned power consumption.
[0192] According to the third embodiment, the controller 100 can operate in a normal mode and a power limit mode in which the amount of power consumed is less than that in the normal mode. The controller 100 switches between the normal mode and the power limit mode based on a power consumption plan.
[0193] Therefore, it is possible to control the power consumption of the memory system 1 so that the power consumption during the planning period does not exceed the planned power consumption.
[0194] Furthermore, according to the third embodiment, the controller 100 can be configured, as an example, to be capable of receiving power consumption information from the host device 2 and obtaining the power consumption of the memory system 1 based on the power consumption information.
[0195] In such a case, it becomes unnecessary to provide the memory system 1 with a circuit for measuring a physical quantity related to the power consumption amount.
[0196] The condition for ending the planned period is not limited to the passage of the length specified as the second value by the host device 2. For example, the controller 100 may end the planned period when it receives a power amount limit release instruction during the planned period.
[0197] (Fourth embodiment) In the power consumption plan according to the third embodiment, the transition of the upper limit of the power consumption is defined as a function of time. In the power consumption plan according to the fourth embodiment, the transition of the upper limit of the power consumption is defined as a function of the amount of data transferred from the host device 2 to the NAND memory 200. The amount of data transferred from the host device 2 to the NAND memory 200 is referred to as the host write amount.
[0198] Hereinafter, differences from the third embodiment will be described, and explanations of the same points as the third embodiment will be omitted or will be given briefly.
[0199] In the fourth embodiment, the memory system 1 can receive a planned power consumption amount and a planned host write amount from the host device 2. The planned host write amount is another example of a second value. The controller 100 generates a power consumption amount plan based on the planned power consumption amount and the planned host write amount.
[0200] Fig. 17 is a schematic diagram showing an example of a power consumption plan generated by the controller 100 of the fourth embodiment. In Fig. 17, the horizontal axis indicates the host write amount from the start of the plan period. The vertical axis indicates the power consumption from the start of the plan period. In the example of Fig. 17, the planned power consumption is 1000 mWh, and the planned host write amount is 50 GB.
[0201] The dotted line represents the power consumption plan. In this example, the power consumption plan is generated so that the power consumption increases linearly with the host write amount from 0 mWh to 1000 mWh. The power consumption gradient is determined so that at the end of the planning period, that is, when the host write amount since the start of the planning period reaches 50 GB, the power consumption since the start of the planning period will be 1000 mWh.
[0202] In response to the power limit instruction, the controller 100 starts controlling the amount of power based on the power consumption plan. More specifically, the controller 100 controls the amount of power consumption of the memory system 1 so that the change in the actual amount of power consumption does not exceed the change in the upper limit value defined by the power consumption plan as much as possible by transitioning the operation mode of the memory system 1 to a power limit mode as necessary.
[0203] 17 shows an example (see solid line) of the actual power consumption in the memory system 1. It can be seen that the above-described control ensures that the actual power consumption does not exceed the upper limit set by the power consumption plan.
[0204] FIG. 18 is a flowchart for explaining an example of an operation related to a transition of an operation mode in the fourth embodiment.
[0205] The controller 100 determines whether or not the memory system 1 has received a planned power consumption amount, a planned host write amount, and a power limit instruction from the host device 2 (S801).
[0206] If the memory system 1 has not received the expected power consumption, the expected host write amount, and the power limit instruction from the host device 2 (S801: No), the controller 100 executes the process of S801 again.
[0207] When the memory system 1 receives the planned power consumption, the planned host write amount, and the power limit instruction from the host device 2 (S801: Yes), the controller 100 generates a power consumption plan based on the planned power consumption and the planned host write amount (S802).
[0208] Next, the controller 100 starts controlling the amount of power in response to the power limit instruction already received, that is, starts the planning period (S803).
[0209] During the planning period, the controller 100 determines the operation mode based on a comparison between the amount of power consumption since the start of the planning period and the power consumption plan.
[0210] More specifically, the controller 100 first calculates the upper limit value E(W) of the power consumption amount defined by the power consumption amount plan (S804).
[0211] E(W) is calculated, for example, using the following formula (2). Note that, as an example, it is assumed here that the power consumption plan is generated using the method described with reference to FIG.
[0212] E(W) = Ep * W / Wp (2) Here, W is the amount of host write from the start of the planning period to the present. Ep is the planned power consumption, and Wp is the planned amount of host write. In formula (2), W is set to a value between 0 and Wp.
[0213] Next, the controller 100 judges whether the power consumption Ec from the start of the planning period to the present is smaller than E (W) (S805). The method of acquiring Ec is not limited to a specific method. Ec is acquired in the same manner as in the third embodiment.
[0214] If Ec is smaller than E(W) (S805: Yes), the controller 100 operates in the normal mode (S806). If Ec is not smaller than E(W) (S805: No), the controller 100 operates in the power limit mode (S807).
[0215] After S806 or S807, the controller 100 determines whether or not W has reached Wp (S808). If W has not reached Wp (S808: No), the controller 100 executes the process of S804 again. If W has reached Wp (S808: Yes), the controller 100 ends the planning period (S809). That is, if the operation mode of the controller 100 was the power amount limiting mode, the controller 100 transitions to the normal mode. If the operation mode of the controller 100 was the normal mode, the controller 100 continues to operate in the normal mode. A series of operations ends with S809.
[0216] Note that the operation of the controller 100 in the fourth embodiment in the normal mode may be the same as the operation of the controller 100 in the first embodiment or the operation of the controller 100 in the normal mode in the second embodiment.
[0217] The operation of the controller 100 of the fourth embodiment in the power amount limit mode may be the same as the operation of the controller 100 of the first embodiment in the power amount limit mode or the operation of the controller 100 of the second embodiment in the power amount limit mode.
[0218] The loop process from S804 to S808 is repeated at a predetermined time interval, for example. The predetermined time interval is sufficiently short compared to the length of the planning period. Thus, by repeating the loop process from S804 to S808, the operation mode is switched so that the power consumption does not exceed the upper limit value set as the power consumption plan as much as possible. As a result, it is possible to write the amount of data set as the planned host write amount while suppressing the power consumption so that the power consumption does not exceed the planned power consumption.
[0219] In the above description, it has been explained that when Ec is equal to E(W), the controller 100 operates in the power limit mode. The process when Ec is equal to E(W) is not limited to this. When Ec is equal to E(W), the controller 100 may operate in the normal mode.
[0220] Furthermore, the power consumption plan is not limited to the example shown in Fig. 17. Any function may be adopted as the function representing the power consumption plan.
[0221] Furthermore, the memory system 1 may be configured to be able to change the power consumption plan during the planning period. For example, the controller 100 may regenerate the power consumption plan so that the upper limit of the power consumption increases linearly with the host write amount from the amount of power already consumed during the planning period to the planned power consumption amount.
[0222] Furthermore, the host device 2 may instruct to change the power consumption plan as appropriate during the planning period.
[0223] Furthermore, when the controller 100 receives an instruction to lift the power amount limit during the planning period, the controller 100 may end the planning period in response to the instruction to lift the power amount limit.
[0224] Furthermore, the host device 2 does not have to transmit the planned power consumption amount, the planned host write amount, and the power amount limit instruction all together. The memory system 1 may be configured to be able to receive the planned power consumption amount, the planned host write amount, or both at a timing different from the power amount limit instruction.
[0225] Thus, according to the fourth embodiment, the controller 100 receives the planned power consumption amount and the planned host write amount from the host system 2. Then, the controller 100 transfers the amount of data specified as the planned host write amount, such that the power consumption does not exceed the planned power consumption amount.
[0226] Therefore, the host device 2 is able to transfer a limited amount of data in a limited period of time.
[0227] The technology of the fourth embodiment can be useful for PLP, similarly to the third embodiment. For example, if the host device 2 determines the planned power consumption amount and the planned host write amount based on the remaining power amount of the battery and transmits the planned power consumption amount and the planned host write amount together with a power amount limit instruction to the memory system 1, it becomes possible to realize the operation of the PLP using a scarce amount of power.
[0228] In the above-described example, the memory system 1 is configured to be capable of controlling the amount of power consumption based on the amount of host writes. The memory system 1 may be configured to be capable of controlling the amount of power consumption based on the amount of data transferred from the NAND memory 200 to the host device 2 (referred to as the amount of host reads).
[0229] For example, the memory system 1 can receive a planned power consumption amount and a planned host read amount from the host device 2. The controller 100 may generate a power consumption amount plan in which an upper limit value of the power consumption amount is defined as a function of the host read amount based on the planned power consumption amount and the planned host read amount, and control the power consumption amount based on the host read amount and the power consumption amount plan.
[0230] Alternatively, the memory system 1 may control the amount of power consumption based on both the amount of host writes and the amount of host reads. The controller 100 may generate a power consumption plan in which an upper limit value of the amount of power consumption is defined as a function of the amount of host reads and the amount of host writes based on the planned amount of power consumption, the planned amount of host reads, and the planned amount of host writes, and control the amount of power consumption based on the host read amounts, the host write amounts, and the power consumption plan.
[0231] Hereinafter, the host write amount, the host read amount, or both may be collectively referred to as the host access amount.
[0232] Fifth embodiment In the third and fourth embodiments, when the power consumption is less than the upper limit value defined by the power consumption plan, the controller 100 sets the operation mode of the memory system 1 to the normal mode. In the fifth embodiment, when the power consumption is significantly less than the upper limit value, the controller 100 sets the operation mode of the memory system 1 to a mode in which the processing amount of the transcription process is increased compared to the normal mode. In other words, the controller 100 increases the processing amount of the transcription process by utilizing the abundant power amount. The mode in which the processing amount of the transcription process is increased compared to the normal mode is referred to as the high power mode.
[0233] The method of increasing the processing amount of the transcription process is not limited to a specific method. For example, the controller 100 may execute the transcription process more frequently in the high power mode than in the normal mode.
[0234] Alternatively, the controller 100 makes the start condition of the transcription process different between the high power mode and the normal mode. For example, when the start condition of garbage collection (or eviction) is that the number of free blocks falls below a judgment threshold, different values are used as the judgment threshold in the high power mode and the normal mode. Specifically, the controller 100 uses a first set value as the judgment threshold in the normal mode, and uses a third set value larger than the first set value as the judgment threshold in the high power mode. This increases the amount of garbage collection (or eviction) processing in the high power mode.
[0235] Hereinafter, the fifth embodiment will be described. As an example, it is assumed that the power consumption plan defines the upper limit of the power consumption as a function of time, similarly to the third embodiment.
[0236] Fig. 19 is a flowchart for explaining an example of the operation related to the transition of the operation mode of the fifth embodiment. Note that the operation related to the power amount of the fifth embodiment differs from the operation related to the power amount of the third embodiment shown in Fig. 13 in that S901 and S902 are added after the process of S605. The following describes the differences from the operation related to the power amount of the third embodiment.
[0237] If it is determined in the determination process of S605 that Ec is smaller than E(t) (S605: Yes), the controller 100 determines whether the difference between the upper limit value E(t) of the power consumption defined by the power consumption plan and the actual power consumption Ec, that is, (E(t)-Ec), is larger than a threshold value Eth related to the power consumption (S901). Eth is a preset positive real number.
[0238] If (E(t)-Ec) is greater than Eth (S901: Yes), the controller 100 operates in the high power mode (S902). If (E(t)-Ec) is not greater than Eth (S901: No), the controller 100 operates in the normal mode (S606).
[0239] After S902, S606 or S607, the controller 100 executes the determination process of S608.
[0240] In the above description, it has been explained that when (E(t)-Ec) is equal to Eth, the controller 100 operates in the normal mode. The processing when (E(t)-Ec) is equal to Eth is not limited to this. When (E(t)-Ec) is equal to Eth, the controller 100 may operate in the high power mode.
[0241] Also, in the fifth embodiment, the host device 2 does not have to transmit the planned power consumption, the planned period, and the power limit instruction all together. The memory system 1 may be configured to be able to receive the planned power consumption, the planned period, or both at a timing different from the power limit instruction.
[0242] Thus, according to the fifth embodiment, the controller 100 is configured to be able to switch the operation mode among the normal mode, the power limit mode, and the high power mode in which the amount of data transfer processing is greater than that in the normal mode. The controller 100 switches the operation mode based on the power consumption plan.
[0243] When an abundant amount of power is available, the number of free blocks can be increased by increasing the amount of data being transferred. With a larger number of free blocks, operation in the power-restricted mode can be continued for a longer period of time.
[0244] In the above, the power consumption plan is defined with the upper limit of power consumption defined as a function of time. The fifth embodiment is also applicable to a power consumption plan in which the upper limit of power consumption is defined as a function of host access volume (host write volume, host read volume, or both), as in the fourth embodiment.
[0245] Sixth embodiment Generally, in a memory mode in which the number of bits of the value held in one memory cell transistor MT (i.e., the number of levels mentioned above) is small, writing and reading can be performed in less time than in a memory mode in which the number of levels is large, and the power consumed for writing and reading is also less.
[0246] However, a storage mode with a small number of levels consumes more free blocks than a storage mode with a large number of levels. If free blocks are depleted due to continued writing in a storage mode with a small number of levels, eviction must be performed. When eviction is performed, power consumption increases according to the amount of eviction processing.
[0247] Therefore, by performing writes in a storage mode with a small level number when the number of free blocks is sufficient, it is possible to further reduce power consumption, albeit temporarily, even when the processing volume of the transcription process including eviction is suppressed.
[0248] According to the sixth embodiment, the memory system 1 can switch the storage mode during writing between the SLC mode and the TLC mode, for example. In the power limit mode, if there are a sufficient number of free blocks, the controller 100 writes data in the SLC mode. In the power limit mode, if there are not enough free blocks, the controller 100 writes data in the TLC mode.
[0249] The sixth embodiment can be used in combination with any of the third, fourth, and fifth embodiments. Here, as an example, a case where the sixth embodiment is used in combination with the third embodiment will be described.
[0250] FIG. 20 is a flowchart showing an example of the operation of the memory system 1 according to the sixth embodiment in the power limit mode.
[0251] In the power limit mode, the controller 100 determines whether or not the number of free blocks is sufficient for the remaining time of the planning period (S1001).
[0252] The specific method of the determination in S1001 is not limited to a specific method. In one example, when the number of free blocks is greater than a threshold determined according to the remaining time of the planning period, the controller 100 determines that the number of free blocks is sufficient for the remaining time of the planning period. When the number of free blocks is smaller than a threshold determined according to the remaining time of the planning period, the controller 100 determines that the number of free blocks is insufficient for the remaining time of the planning period. When the number of free blocks is equal to the threshold determined according to the remaining time of the planning period, the controller 100 may determine that the number of free blocks is sufficient for the remaining time of the planning period, or may determine that the number of free blocks is insufficient for the remaining time of the planning period.
[0253] The threshold value determined according to the remaining time of the planning period is, for example, a threshold value proportional to the remaining time of the planning period. The calculation method of the threshold value determined according to the remaining time of the planning period is not limited to this. The threshold value determined according to the remaining time of the planning period is an example of a third value.
[0254] If the number of free blocks is sufficient for the remaining time of the planning period (S1001: Yes), the controller 100 sets the operation mode of the memory system 1 to the first power limit mode (S1002). In the first power limit mode, the controller 100 writes data in the SLC mode when writing data to the NAND memory 200, in addition to the operation in the power limit mode described in the first or second embodiment.
[0255] If the number of free blocks is not sufficient for the remaining time of the planning period (S1001: No), the controller 100 sets the operation mode of the memory system 1 to the second power limit mode (S1003). In the second power limit mode, the controller 100 writes data in the TLC mode when writing data to the NAND memory 200, in addition to the operation in the power limit mode described in the first or second embodiment.
[0256] After S1002 or S1003, the controller 100 determines whether or not to end the operation in the power limit mode (S1004). That is, the controller 100 determines whether or not to transition the operation mode of the memory system 1 from the power limit mode to another mode (for example, normal mode). The conditions for transition of the operation mode are the same as those described in the third embodiment, and therefore will not be described here.
[0257] If the operation in the power limit mode is not to be ended (S1004: No), the controller 100 executes the process of S1001 again. If the operation in the power limit mode is to be ended (S1004: Yes), the controller 100 ends the operation in the power limit mode.
[0258] Thus, in the sixth embodiment, the controller 100 can reduce the power consumption of the memory system 1 by reducing the number of levels, i.e., reducing the number of bits of data stored in one memory cell transistor MT, while in the power consumption limit mode according to the power consumption plan.
[0259] Therefore, it is possible to further reduce the amount of power consumption compared to the case where the number of levels is not reduced.
[0260] In the sixth embodiment, when the number of free blocks is smaller than a third value (a threshold value determined according to the remaining time in the above example), the controller 100 writes data in a mode in which a first number of bits of data is written per memory cell transistor (TLC mode in the above example).When the number of free blocks is greater than a third value (a threshold value determined according to the remaining time in the above example), the controller 100 writes data in a mode in which a second number of bits of data less than the first number of bits is written per memory cell transistor (SLC mode in the above example).
[0261] Therefore, it is possible to further reduce the amount of power consumption compared to the case where the number of levels is not reduced.
[0262] As described above, the sixth embodiment may be used in combination with the fourth embodiment instead of the third embodiment. When the sixth embodiment is used in combination with the fourth embodiment, the controller 100 determines in S1001 whether or not the number of free blocks is sufficient for the remaining host write amount, that is, the amount obtained by subtracting the host access amount from the planned host access amount after the start of the planning period from the planned host access amount. The planned host access amount is the planned host write amount, the planned host read amount, or both of them received as the second value from the host device 2, and is the amount used to generate the power consumption amount plan. If the number of free blocks is sufficient for the remaining host access amount, the controller 100 executes the process of S1002. If the number of free blocks is not sufficient for the remaining host access amount, the controller 100 executes the process of S1003.
[0263] The method of determining whether the number of free blocks is sufficient for the remaining host access volume is not limited to a specific method. For example, when the number of free blocks is less than the threshold value obtained by converting the remaining host access volume into the number of blocks BLK, the controller 100 determines that the number of free blocks is insufficient for the remaining host access volume. When the number of free blocks is greater than the threshold value obtained by converting the remaining host access volume into the number of blocks BLK, the controller 100 determines that the number of free blocks is sufficient for the remaining host access volume. When the number of free blocks is equal to the threshold value obtained by converting the remaining host access volume into the number of blocks BLK, the controller 100 may determine that the number of free blocks is sufficient for the remaining host access volume, or may determine that the number of free blocks is insufficient for the remaining host access volume.
[0264] A threshold value obtained by converting the remaining host access volume into the number of blocks BLK is another example of the third value, but the third value is not limited to this.
[0265] The sixth embodiment can be used in combination with the fifth embodiment. That is, the controller 100 can operate in the high power mode according to the power consumption plan.
[0266] In the sixth embodiment, the memory mode used to write data in the normal mode (and the high power mode) is arbitrary. Since abundant power is available in the normal mode (and the high power mode), the controller 100 may write data in the TLC mode.
[0267] Seventh embodiment When the host device 2 requests the memory system 1 to write user data, it can transmit attribute information of the user data to be written. This attribute information is referred to as data color. In the seventh embodiment, the host device 2 can instruct the memory system 1 whether the user data to be written is hot or cold by the data color. Hereinafter, the user data to be written that the host device 2 transmits to the memory system 1 is referred to as write data.
[0268] If data is written in SLC mode, it will later need to be evicted. However, if the data written in SLC mode becomes invalid before eviction can be performed, eviction will not need to be performed on that data, reducing the amount of power required for eviction.
[0269] In the seventh embodiment, in the power limit mode, the controller 100 writes write data indicated as hot by the data color to the memory chip 201 in the SLC mode. This makes it possible to reduce the amount of power required for writing, compared to when the write data is written to the memory chip 201 in the TLC mode. If the write data written in the SLC mode and indicated as hot by the data color becomes invalid before eviction is executed, making eviction of the write data unnecessary, the amount of power required for eviction is reduced, and as a result, it becomes possible to further reduce the amount of power.
[0270] The seventh embodiment can be used in combination with any of the third to fifth embodiments.
[0271] 21 is a flowchart showing an example of the operation in the power limit mode of the memory system 1 according to the seventh embodiment. In the power limit mode of the seventh embodiment, the controller 100 executes a series of operations described in FIG. 21 in addition to the operations in the power limit modes of the third to fifth embodiments.
[0272] In the power limit mode, the controller 100 determines whether or not the memory system 1 has received a write command from the host device 2 (S1101). If the memory system 1 has not received a write command from the host device 2 (S1101: No), the controller 100 executes the process of S1101 again.
[0273] When the memory system 1 receives a write command from the host device 2 (S1101: Yes), the controller 100 determines whether the memory system 1 has received a data color from the host device 2 together with the write command (S1102).
[0274] When the memory system 1 receives a data color from the host device 2 (S1102: Yes), the controller 100 determines whether the data color indicates "hot" (S1103). When the data color indicates "hot" (S1103: Yes), the controller 100 writes the data requested to be written by the received write command to the memory chip 201 in SLC mode (S1104).
[0275] If the memory system 1 does not receive a data color along with the write command (S1102: No), or if the memory system 1 receives a data color along with the write command that does not indicate "hot" (S1103: No), the controller 100 writes the data requested to be written by the received write command to the memory chip 201 in TLC mode (S1105).
[0276] After S1104 or S1105, the controller 100 determines whether or not to end the operation in the power limit mode (S1106). That is, the controller 100 determines whether or not to transition the operation mode of the memory system 1 from the power limit mode to another mode (e.g., normal mode). The conditions for transition of the operation mode are as described in the other embodiments, and therefore will not be described here.
[0277] If the operation in the power limit mode is not to be ended (S1106: No), the controller 100 executes the process of S1101 again. If the operation in the power limit mode is to be ended (S1106: Yes), the controller 100 ends the operation in the power limit mode.
[0278] As described above, according to the seventh embodiment, the controller 100 writes the write data to the NAND memory 200 in a storage mode corresponding to the data color instructed by the host device 2 in the power limit mode.
[0279] Therefore, for example, when the host device 2 sends data to the memory system 1 that may be rewritten in a short period of time, by notifying the memory system 1 that the data is hot, the memory system 1 is more likely to be able to reduce the amount of eviction processing, and the power consumption is more likely to be further reduced.
[0280] Furthermore, the host device 2 may notify that the data is hot when transmitting the data from the volatile memory to the memory system 1 in the PLP. In this case, the time required to write the data is shortened, and the amount of power consumption required to write the data can be reduced.
[0281] Furthermore, the information processing system 10 may be capable of executing hibernation. Hibernation is a function that saves all data in the volatile memory to a nonvolatile memory (here, for example, the memory system 1) and turns off the power, and when the system is next started, restores the saved data from the nonvolatile memory to the volatile memory as is. Hibernation makes it possible to quickly return to the state before the power was turned off.
[0282] The data saved in the memory system 1 during hibernation will be unnecessary after the next startup. Therefore, the data saved in the memory system 1 during hibernation is considered to be hot. When transmitting data to the memory system 1 during hibernation, the host device 2 may notify that the data is hot. In this case, the time required to write data is shortened, and the amount of power consumption required to write data can be reduced.
[0283] Eighth embodiment In the seventh embodiment, the controller 100 selects the storage mode based on the data color. The controller 100 may select the storage mode based on the number of free blocks in addition to the data color.
[0284] The eighth embodiment can be used in combination with any of the third to fifth embodiments. Here, as an example, the operation of the eighth embodiment used in combination with the third embodiment will be described.
[0285] FIG. 22 is a flowchart showing an example of the operation of the memory system 1 according to the eighth embodiment in the power limit mode.
[0286] The operation of the memory system 1 in the power limit mode according to the eighth embodiment differs from the operation according to the seventh embodiment shown in Fig. 21 in that a determination process of S1201 is added after the determination process of S1103. The differences from the seventh embodiment will be described below.
[0287] If the determination process of S1103 returns Yes, that is, if the data color received together with the write command indicates "hot," the controller 100 determines whether the number of free blocks is sufficient for the remaining time of the planned period (S1201).
[0288] The process of S1201 is the same as the process of S1001 described with reference to FIG. 20 in the sixth embodiment, for example. That is, the controller 100 judges whether the number of free blocks is sufficient for the remaining time of the planning period based on a comparison between the number of free blocks and the third value. When the number of free blocks is less than the third value, the controller 100 judges that the number of free blocks is insufficient for the remaining time of the planning period. When the number of free blocks is greater than the third value, the controller 100 judges that the number of free blocks is sufficient for the remaining time of the planning period. When the number of free blocks is equal to the third value, the controller 100 may judge that the number of free blocks is sufficient for the remaining time of the planning period, or may judge that the number of free blocks is insufficient for the remaining time of the planning period.
[0289] If the number of free blocks is sufficient for the remaining time of the planned period (S1201: Yes), the controller 100 writes the data requested to be written by the received write command to the memory chip 201 in SLC mode (S1104). If the number of free blocks is not sufficient for the remaining time of the planned period (S1201: No), the controller 100 writes the data requested to be written by the received write command to the memory chip 201 in TLC mode (S1105).
[0290] As described above, the eighth embodiment can be used in conjunction with the fourth embodiment instead of the third embodiment. When the eighth embodiment is used in conjunction with the fourth embodiment, the controller 100 determines in S1001, for example, whether or not the number of free blocks is sufficient for the remaining host write amount, that is, the amount obtained by subtracting the host access amount since the start of the planning period from the planned host access amount.
[0291] The eighth embodiment can be used in combination with the fifth embodiment, that is, the controller 100 can operate in a high power mode according to a power consumption plan.
[0292] Thus, according to the eighth embodiment, in the power limit mode, the controller 100 operates as follows. That is, when the data color notified from the host device 2 is cold, which is a data color corresponding to the TLC mode, the controller 100 writes the write data to the NAND memory 200 in the TLC mode. When the data color notified from the host device 2 is hot, which is a data color corresponding to the SLC mode, and the number of free blocks is less than the third value, the controller 100 writes the write data to the NAND memory 200 in the TLC mode. When the data color notified from the host device 2 is hot, which is a data color corresponding to the SLC mode, and the number of free blocks is greater than the third value, the controller 100 writes the write data to the NAND memory 200 in the SLC mode.
[0293] Even if the controller 100 is notified by the host device 2 that the write data is hot, if there are not enough free blocks remaining, the controller 100 writes the write data to the NAND memory 200 in TLC mode. This makes it possible to prevent the free blocks from running out during the planning period, making it necessary to perform eviction.
[0294] Ninth embodiment In some embodiments, when operating in the power budget limit mode, the controller 100 reduces the amount of data transfer processing or uses a storage mode with a smaller number of levels when writing data to the NAND memory 200. However, when the amount of data transfer processing is reduced in the power budget limit mode or a storage mode with a smaller number of levels is used, the number of free blocks decreases faster than in the normal mode. When the free blocks run out, it becomes difficult for the controller 100 to continue operating in the power budget limit mode.
[0295] In the ninth embodiment, the memory system 1 is capable of transmitting status information related to whether or not power consumption can be suppressed to the host device 2. This status information is referred to as "related information."
[0296] The host device 2 can use the related information to determine the timing to operate the memory system 1 in power limit mode, the period for which the memory system 1 will operate in power limit mode, the start timing or period of the planned period, etc.
[0297] The related information is, for example, numerical information indicating the maximum value of the period during which operation in the power limit mode is possible (or the period that can be set as the planned period). The controller 100 calculates the maximum value of the period during which operation in the power limit mode is possible (or the period that can be set as the planned period) based on the number of free blocks, etc., and transmits the maximum value to the host device 2 as related information.
[0298] In another example, the relevant information is the number of free blocks. The controller 100 transmits the number of free blocks as the relevant information to the host device 2. The host device 2 calculates the maximum value of the period during which operation in the power limit mode is possible (or the period that can be set as the planning period) based on the number of free blocks received as the relevant information.
[0299] In yet another example, the related information may be binary information indicating whether or not operation in the power limit mode (or start of the planned period) is permitted. Alternatively, the related information may be numerical information indicating the length of a period during which operation in the power limit mode (or start of the planned period) is prohibited. Alternatively, the related information may be a maximum value that can be set as the planned power consumption.
[0300] In this way, the contents of the related information can be arbitrarily configured.
[0301] Fig. 23 is a diagram for explaining an example of a method in which the memory system 1 of the ninth embodiment transmits related information to the host device 2. In the explanation of Fig. 23, it is assumed, as an example, that the related information is numerical information indicating the maximum value of a period that can be set as a planning period.
[0302] The host device 2 first transmits a related information output instruction to the memory system 1 (S1301).
[0303] The related information output instruction may be transmitted by using any command. For example, a vendor-specific command value may be assigned as a command for transmitting the related information output instruction. The command for transmitting the related information output instruction may be incorporated into the standard of the communication interface 3. The host device 2 and the memory system 1 may be connected by a dedicated signal line for transferring the related information output instruction, and the host device 2 may transmit the related information output instruction to the memory system 1 via the dedicated signal line.
[0304] In the memory system 1, the controller 100 calculates the related information (in this example, the maximum value tmax of the period that can be set as the planning period) in response to the related information output instruction (S1302). For example, the controller 100 obtains the number of free blocks at the current time, and calculates the maximum value of the period that can be set as the planning period based on the obtained number of free blocks.
[0305] Then, the controller 100 transmits the maximum value obtained by the calculation to the host system 2 as related information (S1303).
[0306] The host device 2 determines a period shorter than tmax as the planned period (S1304), and transmits the expected power consumption, the determined planned period, and a power amount limit instruction to the memory system 1 (S1305).
[0307] As mentioned above, the controller 100 may transmit as related information the maximum period during which operation in power limit mode is possible, the current number of free blocks, binary information indicating whether operation in power limit mode is possible, binary information indicating whether a planned period can be set, numerical information indicating the length of the period during which operation in power limit mode is prohibited, numerical information indicating the length of the period during which start of a planned period is prohibited, the maximum value that can be set as the planned power consumption, or a combination of all or part of these.
[0308] The ninth embodiment may be used in combination with any of the first to eighth embodiments. The contents of the related information may be modified in various ways depending on the embodiment used in combination with the ninth embodiment.
[0309] In this way, in the ninth embodiment, the controller 100 transmits related information, which is information related to whether or not the amount of power consumption can be suppressed, to the host system 2 in response to a related information output instruction from the host system 2.
[0310] Therefore, the host device 2 is able to determine whether the memory system 1 can transition to the power limit mode, the period during which the memory system 1 can operate in the power limit mode, whether the memory system 1 can be caused to start a planned period, the period that can be set as the planned period, etc.
[0311] (Modification) The controller 100 of the memory system 1 does not need to transmit the associated information to the host device 2.
[0312] For example, the controller 100 of the memory system 1 may be configured not to execute an operation corresponding to a power amount limit instruction even if it receives a power amount limit instruction for a predetermined period from the timing of receiving the power amount limit release instruction. Alternatively, the controller 100 of the memory system 1 may not start an operation corresponding to the power amount limit instruction even if it receives a power amount limit instruction for a predetermined period from the timing of receiving the power amount limit release instruction, and instead may transmit to the host device 2 a message indicating that the operation corresponding to the power amount limit instruction will not be executed.
[0313] Alternatively, the controller 100 of the memory system 1 may be configured not to execute an operation corresponding to the power amount limit instruction even if the controller 100 receives the power amount limit instruction during a predetermined period from the end timing of the planning period. The controller 100 of the memory system 1 may not start an operation corresponding to the power amount limit instruction even if the controller 100 receives the power amount limit instruction during a predetermined period from the end timing of the planning period, and may instead transmit to the host device 2 a message indicating that the operation corresponding to the power amount limit instruction will not be executed.
[0314] (Tenth embodiment) The host device 2 can send various instructions (such as a power consumption limit instruction, a power consumption limit release instruction, or a related information output instruction) or various information (such as planned power consumption, planned period, or planned host access volume) to the memory system 1 of the first to ninth embodiments based on any judgment.
[0315] For example, if the information processing system 10 is a portable computer, the host device 2 can transmit a power amount limit instruction based on whether the information processing system 10 is receiving power from a power source.
[0316] Alternatively, the host device 2 learns how the operator uses the information processing system 10 over a predetermined period (e.g., one day, one week, etc.). The information learned as how the operator uses the information processing system 10 specifically includes changes in workload, the timing of connecting / disconnecting the information processing system 10 to a power source, or a history of changes in battery capacity over time. Based on the information obtained by learning, the host device 2 predicts the future power situation of the information processing system 10. Then, based on the prediction, the host device 2 transmits various instructions or various information to the memory system 1.
[0317] In one example, even if the power supply from the power source is interrupted, if the workload is light and the host device 2 predicts that the power supply from the power source will resume soon, the host device 2 does not send a power consumption limit instruction and maintains the operation of the memory system 1 in normal mode.
[0318] In another example, even if the information processing system 10 is receiving power from a power source, if the host device predicts that the power supply from the power source will be cut off soon, the host device 2 reduces the amount of power consumed by the memory system 1 by sending a power limit instruction to the memory system 1, and uses the reduced amount of power to charge the battery.
[0319] In this way, the host device 2 can control the amount of power consumption of the memory system 1 based on any arbitrary decision.
[0320] According to the first to tenth embodiments, the memory system 1 includes a NAND memory 200, which is a non-volatile memory, and a controller 100 that controls the NAND memory 200. The controller 100 suppresses the amount of power consumption of the memory system 1 in response to a power amount limit instruction from a host device 2.
[0321] This enables the host device 2 to control the amount of power consumption.
[0322] Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and spirit of the invention, and are included in the scope of the invention and its equivalents described in the claims. [Explanation of symbols]
[0323] 1 memory system, 2 host device, 3 communication interface, 4 division, 5 power supply device, 6 power supply line, 10 information processing system, 100 controller, 101 processor, 102 host interface, 103 RAM, 104 buffer memory, 105 memory interface, 106 internal bus, 200 NAND memory, 201 memory chip, 210 peripheral circuit, 211 memory cell array, 212 NAND string, 300 memory bus, 400 power supply circuit, 401 measurement circuit.
Claims
1. 1. A memory system connectable to a host device, comprising: A non-volatile memory; a controller that controls the non-volatile memory and reduces the amount of power consumption of the memory system in response to a first instruction from the host device; Equipped with The controller: Transferring data between the host device and the non-volatile memory; receiving a first value and a second value from the host device; A memory system that, in response to the first instruction, transfers an amount of data corresponding to the second value between the host device and the non-volatile memory such that the power consumption does not exceed an amount corresponding to the first value.
2. A memory system connectable to a host device, comprising: A non-volatile memory; a controller that controls the non-volatile memory and reduces the amount of power consumption of the memory system in response to a first instruction from the host device; Equipped with the nonvolatile memory includes a plurality of memory cell transistors, each of which is configured to store a variable number of bits of data; The controller: receiving a first value and a second value from the host device; controlling the amount of power consumption in a period corresponding to the second value in response to the first instruction so that the amount of power consumption does not exceed an amount corresponding to the first value; generating a power consumption plan that specifies a transition of the upper limit value of the power consumption based on the first value and the second value; Controlling the amount of power consumption based on the power amount plan in response to the first instruction; The device is capable of operating in a plurality of operation modes including a first operation mode and a second operation mode consuming less power than the first operation mode; switching between the plurality of operating modes based on the power budget; The memory system receives a notification from the host device in the second operation mode, and writes data of a number of bits corresponding to the notification to a write destination memory cell transistor.
3. A memory system connectable to a host device, comprising: A non-volatile memory; a controller that controls the non-volatile memory and reduces the amount of power consumption of the memory system in response to a first instruction from the host device; Equipped with the non-volatile memory includes a plurality of memory cell transistors, each of which is configured to store a variable number of bits of data, and the plurality of memory cell transistors are divided into a plurality of blocks from which data stored in each of the memory cell transistors is erased collectively; The controller: receiving a first value and a second value from the host device; controlling the amount of power consumption in a period corresponding to the second value in response to the first instruction so that the amount of power consumption does not exceed an amount corresponding to the first value; generating a power consumption plan that specifies a transition of the upper limit value of the power consumption based on the first value and the second value; Controlling the amount of power consumption based on the power amount plan in response to the first instruction; The device is capable of operating in a plurality of operation modes including a first operation mode and a second operation mode consuming less power than the first operation mode; switching between the plurality of operating modes based on the power budget; In the second mode of operation, receiving a notification from the host device; If the notification corresponds to a first number of bits, writing data of the first number of bits to a memory cell transistor of a write destination; when the notification corresponds to a second number of bits smaller than the first number of bits and the number of free blocks among the plurality of blocks is smaller than a third value, writing the data of the first number of bits to a write destination memory cell transistor; When the notification corresponds to the second number of bits and the number of free blocks among the plurality of blocks is greater than a third value, the memory system writes data of the second number of bits to a write destination memory cell transistor.
4. A memory system connectable to a host device, comprising: A non-volatile memory; a controller that controls the non-volatile memory and reduces the amount of power consumption of the memory system in response to a first instruction from the host device; Equipped with the nonvolatile memory includes a plurality of memory cell transistors, each of which is configured to store a variable number of bits of data; The controller: receiving a first value and a second value from the host device; controlling the amount of power consumption in a period corresponding to the second value in response to the first instruction so that the amount of power consumption does not exceed an amount corresponding to the first value; The memory system reduces the power consumption by reducing the number of bits of data to be written to the destination memory cell transistor.
5. A memory system connectable to a host device, comprising: A non-volatile memory; a controller that controls the non-volatile memory and reduces the amount of power consumption of the memory system in response to a first instruction from the host device; Equipped with The controller: receiving a first value and a second value from the host device; controlling the amount of power consumption in a period corresponding to the second value in response to the first instruction so that the amount of power consumption does not exceed an amount corresponding to the first value; generating a power consumption plan that specifies a transition of the upper limit value of the power consumption based on the first value and the second value; Controlling the amount of power consumption based on the power amount plan in response to the first instruction; Executing a first process of transferring data between the host device and the non-volatile memory and a second process of transcribing data within the non-volatile memory; The device is capable of operating in a plurality of operation modes including a first operation mode, a second operation mode in which the amount of power consumption is less than that of the first operation mode, and a third operation mode in which the amount of processing of the second process is greater than that of the first operation mode, The memory system switches between the plurality of operating modes based on the power budget.
6. the controller executes a first process of transferring data between the host device and the nonvolatile memory and a second process of transcribing data within the nonvolatile memory, and reduces a processing amount of the second process in response to the first instruction; The memory system according to any one of claims 1 to 4.
7. the non-volatile memory includes a plurality of blocks in which data stored therein is erased collectively; The controller performs garbage collection. When the first instruction is received, a block to be used as a posting source in the garbage collection is selected from among the plurality of blocks according to a first policy based only on an amount of valid data stored therein; if the first instruction has not been received, selecting a block to be a transcription source in the garbage collection from among the plurality of blocks in accordance with a second policy different from the first policy; The memory system according to any one of claims 1 to 5.
8. the first policy is a policy for preferentially selecting a block having a smaller amount of valid data stored therein as the transcription source block among the plurality of blocks; 8. The memory system of claim 7.
9. The second policy is a policy for selecting a block to be a transcription source in the garbage collection from among the plurality of blocks based on a last written time.
8. The memory system of claim 7.
10. The controller receives first information related to the power consumption amount from the host device, and obtains the power consumption amount based on the first information. The memory system according to any one of claims 1 to 5.
11. the plurality of memory cell transistors are divided into a plurality of blocks in which data stored therein is erased collectively; The controller: if the number of free blocks among the plurality of blocks is smaller than a third value, writing data of a first number of bits to a write destination memory cell transistor; when the number of free blocks among the plurality of blocks is greater than a third value, data of a second number of bits less than the first number of bits is written to a write destination memory cell transistor; 5. The memory system of claim 4.
12. the controller transmits information relating to whether or not the power consumption amount can be reduced to the host device in response to a second instruction from the host device; The memory system according to any one of claims 1 to 5.
13. A host device; A memory system according to any one of claims 1 to 5, connected to the host device; An information processing system comprising:
Citation Information
Patent Citations
Program control apparatus and method, and program recording medium
JP2006172495A
Data consolidation and garbage collection in direct data file storage memory
JP2009503746A
Memory system
JP2011227664A
Control methods for storage systems and storage devices
JP2012523593A
Host control of background garbage collection in data storage devices
JP2012523631A
