Information processing device and control method

The device manages power supply modes to minimize BGC's power consumption, addressing battery life issues by performing garbage collection only when necessary, thus enhancing SSD efficiency.

JP7571214B2Active Publication Date: 2024-10-22LENOVO (BEIJING) LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
JP2023119490
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2022-08-17
Filing Date
2023-07-21
Publication Date
2024-10-22
Estimated Expiration
2043-07-21

AI Technical Summary

Technical Problem

Background garbage collection (BGC) in solid-state drives (SSDs) consumes significant power, affecting battery life, especially when the device is in a standby or low-processing state.

Method used

An information processing device with a power supply circuit that switches between power modes based on external power availability and battery status, allowing BGC to be performed only when necessary to conserve power.

Benefits of technology

Reduces the impact of BGC on battery life by optimizing power consumption during low-power states, ensuring efficient use of SSD resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007571214000001
    Figure 0007571214000001
  • Figure 0007571214000002
    Figure 0007571214000002
  • Figure 0007571214000003
    Figure 0007571214000003
Patent Text Reader

Abstract

To reduce or eliminate influence by a BGC on a battery life.SOLUTION: A power supply circuit includes a first controller and a solid storage device, the solid storage device includes a second controller and a storage medium. The power supply circuit supplies operation power being power to be used for operation of a component member, selects a first power supply mode for converting supplied power into operation power when power is supplied from an external power source, and selects a second power supply mode for converting power from a secondary battery into operation power when AC power is not supplied from the external power source. The second controller executes garbage collection to the storage medium regardless of an operation mode notified from the first controller when the first power supply mode is selected, and determines whether to execute the garbage collection to the storage medium when the second power supply mode is selected and also when an instruction is performed to make a change to a power saving mode being an operation mode having power consumption smaller than standard power consumption as the operation mode.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an information processing device and a control method thereof, for example, to an auxiliary storage device provided in the information processing device. [Background technology]

[0002] Some information processing devices, including personal computers (PCs), are equipped with solid-state storage devices (SSDs: Solid State Drives) as auxiliary storage devices. SSDs are storage devices equipped with non-volatile semiconductor memory. NAND-type flash memory is mainly used as the semiconductor memory in SSDs. As a result, SSDs have faster access speeds and consume less power than hard disk drives (HDDs: Hard Disk Drives), which have been widely used for a long time.

[0003] A NAND flash memory (sometimes referred to as "NAND memory" in this application) is configured as a memory array with multiple blocks and page registers, with each block stacked. Each block is accessed on a page basis. Each block has a capacity to store multiple pages of data.

[0004] Data is written from the host to the NAND memory in unused blocks. However, data is not written to blocks in which even one page of valid data (sometimes referred to as "valid data" in this application) is stored. Data erased from the NAND memory is left as invalid data in page units, which are smaller units than block units. New data cannot be written to blocks in which invalid data remains. Repeated data reads and writes increase the number of unusable blocks, regardless of whether valid data exists. Invalid data prevents new data from being stored. For this reason, invalid data is also called garbage.

[0005] Therefore, the SSD controller executes garbage collection (GC) to make effective use of the NAND memory. GC includes a process of copying valid data from a block that stores either valid data or invalid data in fragments to an unused block and concentrating the valid data therein, a process of copying invalid data to another unused block and concentrating the invalid data therein, and a process of releasing the block in which only invalid data remains as free space (block erasure).

[0006] GC may be executed in the background in parallel with the reading and writing of data. GC executed in the background is specifically called background garbage collection (BGC). Execution of BGC may result in a decrease in SSD performance, for example, access speed. Therefore, in order to maximize the performance of the SSD, BGC may be executed when the operating state of the host is in a standby state (idle state), and execution of BGC may be restricted when the host is in an active state. [Prior art documents] [Patent documents]

[0007] [Patent Document 1] JP 2019-199059 A Summary of the Invention [Problem to be solved by the invention]

[0008] However, BGC consumes a relatively large amount of power. The power consumption of BGC is often equal to or greater than the power consumption required to execute an application program (sometimes referred to as an "app" in this application). Therefore, BGC may affect battery life. For example, when power is not supplied from an external power source, when an app with a relatively small amount of processing is executed, etc., the stored power may be used up regardless of the user's intention. [Means for solving the problem]

[0009] The present invention has been made to solve the above-mentioned problems, and an information processing device according to one embodiment of the present invention is an information processing device comprising a power supply circuit and other components, the components comprising at least a first controller and a solid-state memory device, the solid-state memory device comprising a second controller and a storage medium, the power supply circuit supplies operating power which is power used to operate the components, the power supply circuit selects a first power supply mode in which the power is converted into the operating power when power is supplied from an external power source, and selects a second power supply mode in which power from a secondary battery is converted into the operating power when power is not supplied from the external power source, the second controller performs garbage collection on the storage medium when the first power supply mode is selected regardless of the operating mode notified by the first controller, and determines whether garbage collection is necessary for the storage medium when the second power supply mode is selected and an instruction is given to change the operating mode to a power saving mode which is an operating mode with less power consumption than the standard power consumption.

[0010] In the above information processing device, when the second power supply mode is selected, the second controller may determine whether or not garbage collection is required for the storage medium based on the amount of free space in the storage medium.

[0011] In the above-mentioned information processing device, the solid-state memory device may be equipped with a temperature sensor that detects a temperature of the solid-state memory device, and the second controller may estimate whether the first power supply mode or the second power supply mode is selected based on the temperature.

[0012] In the above information processing device, when the second power supply mode is selected and the remaining charge of the secondary battery is notified from the first controller, the second controller may further determine whether or not garbage collection is necessary based on the remaining charge.

[0013] In the above information processing device, the second controller may determine that garbage collection is not possible when the remaining amount is less than a predetermined lower limit of the remaining amount.

[0014] In the above information processing device, the second controller may determine that garbage collection is not required when the remaining amount is equal to or greater than a predetermined lower limit of the remaining amount and the capacity of the free space in the solid-state memory device is equal to or greater than a predetermined lower limit of the capacity, and may determine that garbage collection is required when the remaining amount is equal to or greater than the lower limit of the remaining amount and the capacity of the free space is less than the lower limit of the capacity.

[0015] In the above information processing device, the first controller may be a processor of a host system, and may notify the second controller of the power supply mode of the power supply circuit and the remaining charge of the secondary battery.

[0016] In the above information processing device, the first controller may be a controller separate from a processor of a host system, and may notify the second controller of the power supply mode of the power supply circuit and the remaining charge of the secondary battery.

[0017] A control method according to a second aspect of the present invention is a control method for an information processing device comprising a power supply circuit and other components, the components comprising at least a first controller and a solid-state memory device, the solid-state memory device comprising a second controller and a storage medium, the control method including: a first step of: the power supply circuit supplies operating power used for operation of the components, and when power is supplied from an external power source, the power supply circuit selects a first power supply mode in which the power is converted into the operating power, and when power is not supplied from the external power source, selects a second power supply mode in which power from a secondary battery is converted into the operating power; and a second step of: the second controller performs garbage collection on the storage medium when the first power supply mode is selected, regardless of the operating mode notified by the first controller, and determines whether garbage collection is necessary for the storage medium when the second power supply mode is selected and a change to a power saving mode, which is an operating mode with less power consumption than the standard, is instructed. Effect of the Invention

[0018] According to embodiments of the present invention, the impact of a BGC on battery life can be reduced or eliminated. [Brief description of the drawings]

[0019] [Figure 1] 1 is a schematic block diagram illustrating a hardware configuration of an information processing device according to an embodiment of the present invention. [Diagram 2] 2 is a schematic block diagram showing an example of the functional configuration of an SSD according to the present embodiment. FIG. [Diagram 3] 2 is a block diagram showing a first example of a functional configuration of the information processing device according to the present embodiment. FIG. [Figure 4] 10 is a flowchart showing an example of control of the BGC according to the embodiment. [Diagram 5] FIG. 11 is a block diagram showing a second example of the functional configuration of the information processing device according to the present embodiment. [Figure 6] FIG. 13 is a block diagram showing a third example of the functional configuration of the information processing device according to the present embodiment. [Figure 7] FIG. 2 is a diagram illustrating an example of the configuration of a NAND memory according to the embodiment. [Figure 8] FIG. 2 is an explanatory diagram for explaining management of a NAND memory. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0020] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. First, an overview of an information processing device 10 according to an embodiment of the present invention will be described. FIG. 1 is a schematic block diagram illustrating a hardware configuration of the information processing device 10 according to this embodiment. In the following description, the information processing device 10 is mainly a notebook personal computer (PC: Personal Computer), but is not limited to this. The information processing device 10 may be realized in any form, such as a desktop PC, a tablet terminal device, or a multi-function mobile phone (smartphone).

[0021] The information processing device 10 includes a CPU (Central Processing Unit) 11, a main memory 12, a GPU (Graphic Processing Unit) 13, a display 14, a chipset 21, a BIOS (Basic Input Output System) memory 22, a USB (Universal Serial Bus) connector 24, an audio system 25, a network card 26, an input device 27, a heat dissipation fan 28, a power supply circuit 29, an EC (Embedded Controller) 31, an SSD port 32, an SSD 33, a battery 34, and an AC (Alternating Current) adapter 35.

[0022] The CPU 11 is a processor that executes programs stored in the main memory 12, performs various arithmetic processing, and realizes and controls the operation of each part of the information processing device 10. In this application, "executing a program" or "executing a program" refers to executing processing instructed by instructions written in the program. The main memory 12 is a primary storage device that functions as a work area for the processes executed by the CPU 11. The main memory 12 stores programs executed by the CPU 11, data used in the processes executed by the CPU 11, data generated by the processes executed by the CPU 11, and the like. The data stored in the main memory 12 may also include intermediate data that is generated by a certain process and may be used by a subsequent process. The programs executed by the CPU 11 include, for example, an OS (operating system), various drivers for operating hardware such as peripheral devices, various services / utilities, application programs, and the like. The main memory 12 includes one or more DRAMs (Dynamic Random Access Memories).

[0023] The GPU 13 executes processing related to image display (drawing) under the control of the CPU 11. The GPU 13 is a processor equipped with a video memory and having functions related to image display under the control of the CPU 11. The GPU 13 processes drawing commands output from the CPU 11 and writes the obtained drawing information to the video memory. The GPU 13 reads the newly written drawing information from the video memory and outputs the read drawing information to the display 14 as drawing data (display data). The display 14 displays a display screen based on the drawing data (display data) input from the GPU 13. The display 14 is, for example, a liquid crystal display.

[0024] The chipset 21 includes a bus controller for connecting various devices by wire. For connection, the chipset 21 uses, for example, a PCIe (registered trademark) (Peripheral Component Interconnect Express) bus. The chipset 21 can connect at least the CPU 11, the GPU 13, and the EC 31, and the SSD 33 via the SSD port 32, using the PCIe (registered trademark). The chipset 21 may be connectable to other devices using one or more types of methods, such as USB, serial ATA (AT Attachment), SPI (Serial Peripheral Interface) bus, PCI (Peripheral Component Interconnect) bus, and LPC (Low Pin Count) bus. The bus controller controls input and output of data to and from the connected devices according to each method.

[0025] 1, the chipset 21 is connected to peripheral devices, such as a BIOS memory 22, a USB connector 24, an audio system 25, a network card 26, an EC 31, and an SSD port 32. The CPU 11, the main memory 12, and the chipset 21 function as a host device. The host device is a minimum piece of hardware in the computer system of the information processing device 10.

[0026] The BIOS memory 22 includes a non-volatile memory that stores system firmware. As the non-volatile memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), a flash ROM, or the like is used. The system firmware is a program that is involved in the operation of the entire computer system and provides an interface between the hardware and various programs executed in the host device. An example of the system firmware is the Basic Input / Output System (BIOS). In this application, such system firmware may be collectively referred to as "BIOS."

[0027] The USB connector 24 is an interface for detachably connecting a peripheral device using a USB and is fixedly installed on the housing of the information processing device 10. The audio system 25 is a device capable of inputting, outputting, recording, and playing back audio data. The network card 26 is connected to a network and can execute data communication by wire or wirelessly. The network card 26 may be connected to other devices directly using a wireless LAN (Local Area Network) or via another network.

[0028] The SSD port 32 is an interface that can be connected to an SSD 33. In the example of Fig. 1, the number of SSD ports 32 is one, but there may be two or more. The SSDs 33 can be connected to the two or more SSD ports 32, respectively.

[0029] The SSD33 is an auxiliary storage device that includes a nonvolatile semiconductor memory and stores various data and programs. For example, a NAND memory is used as the nonvolatile memory. Programs stored in the SSD33 include an OS, a driver, a service / utility, and an application program. The SSD33 may include a built-in or attached temperature sensor that measures its own temperature. The SSD33 transmits temperature data indicating the measured temperature as the SSD temperature to the CPU11 or the EC31 via the SSD port 32. The SSD33 may also be called a semiconductor drive, a memory drive, or the like. The SSD33 further includes a controller. The controller controls the reading and writing of various data between the logical host LH and the nonvolatile memory, as well as the execution of garbage collection. The control of garbage collection will be described later.

[0030] In this application, the logical host LH refers to a device or a group of devices that directly or indirectly reads and writes various data from and to the SSD 33. The logical host LH includes a CPU 11, a main memory 12, and a chipset 21 as host devices that constitute a main computer system (host system) of the information processing device 10. The logical host LH may also include an EC 31 in addition to the host device. In this application, a controller that constitutes the host device and a controller provided in the SSD 33 may be distinguished by being called a "first controller" and a "second controller", respectively. The second controller is, for example, a SoC (System-on-a-Chip). Data that is stored so as to be accessible from the logical host LH may also be called "user data".

[0031] The EC 31 is a microcomputer that monitors and controls the states of various devices (peripheral devices, sensors, etc.) regardless of the operation state (operation mode) of the information processing device 10. The EC 31 is configured as a one-chip microcomputer (not shown) including, for example, a CPU, a ROM, a RAM, an A / D (Analog to Digital) input terminal of multiple channels, a D / A (Digital to Analog) output terminal, a timer, and a digital input / output terminal. For example, an input device 27, a heat dissipation fan 28, and a power supply circuit 29 are connected to the digital input / output terminal.

[0032] The EC 31 executes a predetermined firmware (sometimes referred to as "ECFW" in this application) separate from the system firmware, and exerts its functions. The EC 31 has a temperature management function and a power management function. The temperature management function includes a function of acquiring SSD temperature data indicating the temperature of the SSD 33 as the SSD temperature, and a function of controlling the operation of the heat dissipation fan 28 based on the SSD temperature data. The amount of heat dissipation from the SSD 33 is controlled by controlling the heat dissipation fan 28. The power management function is a function of controlling the power supply circuit 29 to supply power consumed by each part of the information processing device 10. The EC 31 controls the supply power supplied to the CPU 11 and the GPU 13, for example.

[0033] The input device 27 receives a user's operation and outputs an operation signal corresponding to the received operation to the EC 31. Various information or commands are indicated by the operation signal. The input device 27 may be, for example, any of a keyboard, a touch pad, a pointing device, and the like.

[0034] The heat dissipation fan 28 includes a fan and an electric motor. The amount of power supplied to the motor is controlled by the EC 31, and the motor rotates the fan at a speed corresponding to the amount of power supplied. The airflow generated by the rotation of the fan promotes heat dissipation from the SSD 33. The heat dissipation from the SSD 33 increases the temperature of the air drawn from outside the information processing device 10 around the SSD 33. The air with the increased temperature is exhausted to the outside of the information processing device 10.

[0035] The power supply circuit 29 supplies power required for the operation of each unit of the information processing device 10 under the control of the EC 31. The power supply circuit 29 includes, for example, a charge / discharge unit and a DC (Direct Current) / DC converter. When power supply from the AC adapter 35 is detected, the charge / discharge unit supplies the power supplied from the AC adapter 35 to the DC / DC converter. The remaining power that is not consumed among the power supplied from the AC adapter 35 is charged to the battery 34. When power supply from the AC adapter 35 is not detected, the charge / discharge unit supplies the power discharged from the battery 34 to the DC / DC converter. A DC / DC converter converts the voltage of the power supplied to itself into the operating voltage of a component to which the power is supplied, and supplies the voltage-converted power to that component.

[0036] The power supply circuit 29 may control whether each component is required to operate based on power control information input from the EC 31, and set the operating voltage of the component that is required to operate. For example, the power control information may notify the operating voltage corresponding to the operating mode of the CPU 11 and GPU 13 that constitute the host device. For example, a power state defined by PCIe (registered trademark), ACPI (Advanced Configuration and Power Interface), etc. may be applied as the operating mode. In addition, the operating voltage for the components that are operated regardless of the operating mode, such as the EC 31 and the input device 27, may be preset in the power supply circuit 29.

[0037] The power supply circuit 29 outputs a power supply state signal indicating the presence or absence of power supply from the AC adapter 35 to the EC 31. The power supply circuit 29 measures the potential difference between the positive and negative terminals of the battery 34 as electromotive force, and outputs an electromotive force signal indicating the measured electromotive force to the EC 31. The electromotive force is used to estimate the remaining battery capacity of the battery 34. In this application, the power supply mode in which AC power from an external power source is converted into operating power may be referred to as a "first power supply mode." The first power supply mode may also be referred to as an "AC mode." The power supply mode in which DC power from a battery is converted into operating power may also be referred to as a "second power supply mode." The second power supply mode may also be referred to as a "battery mode." The power supply status signal may also be considered as a signal that carries information notifying the power supply mode.

[0038] The battery 34 is a secondary battery that stores power supplied from the charge / discharge unit of the power supply circuit 29. The battery 34 discharges the stored power and supplies it to the charge / discharge unit. The battery 34 is, for example, a lithium ion battery. The AC adapter 35 converts AC power supplied from an external power source (eg, a commercial power source) into DC power having a constant voltage, and supplies the converted DC power to the power supply circuit 29.

[0039] Next, a description will be given of an example of the functional configuration of the SSD 33 according to this embodiment. Fig. 2 is a schematic block diagram showing an example of the functional configuration of the SSD 33 according to this embodiment. The SSD 33 includes a logical host IF (interface) 332, a DRAM (Dynamic Random Access memory) 333, an SoC 334, an I / O buffer 336, a NAND memory 337n, and a temperature sensor 338. In the example of Fig. 2, the SoC 334 corresponds to the second controller.

[0040] The logical host IF 332 is an input / output interface that connects the logical host LH and the SoC 334 and enables input and output of various data between them. The DRAM 333 is an example of a volatile memory used as a storage device forming a working area of ​​the SoC 334. For example, a mapping table showing the correspondence between the logical address and the physical address for each page of the NAND memory 337n is stored in the DRAM 333. In addition, every time information showing the operation state and resource state of the SoC 334 is changed, the information is stored in the DRAM 333, and the accumulated information is formed as a firmware log. The firmware log includes information such as commands provided to each module, the execution state of those commands, and the resource state associated with the execution of the commands, forming an operation log showing the operation state of the SSD 33.

[0041] The I / O buffer 336 is a memory used as a buffer (cache) for inputting and outputting data to and from the NAND memory 337n. The temperature sensor 338 is housed inside the housing of the SSD 33, and detects the temperature at the location where the temperature sensor 338 is installed as the SSD temperature. The temperature sensor 338 may be attached to the surface of the SSD 33. The temperature sensor 338 outputs temperature data indicating the detected SSD temperature to the SoC 334.

[0042] The NAND memory 337n is an example of a non-volatile memory that stores various data. The NAND memory 337n has a plurality of blocks and is configured to include these blocks. In the NAND memory 337n, data is erased in units of blocks. The storage area of ​​each block is divided into a plurality of pages. The NAND memory 337n is accessed by the logical host LH, and data writing, erasing, reading, and the like are performed in units of pages.

[0043] FIG. 7 is a diagram showing a configuration example of a NAND memory 337n according to the present embodiment. In the example of FIG. 7, the NAND memory 337n includes 2048 blocks 337b and one page register 337pr. The 2048 blocks 337b are stacked, and the NAND memory 337n as a whole forms one memory array. One block 337b can store 64 pages of data. One page 337p includes a 2048-byte data area 337d and a 64-byte spare area 337s. The page register 337pr has a storage area that can temporarily store one page of data to be read or written and management data for that data. The page register 337pr temporarily stores data to be read or written, which is specified by the host, for each page. The page register acquires data to be written from the host by serial input, and stores the acquired data in the specified page. The page register also temporarily stores data to be read from the specified page. The stored data is output to the host via a serial output.

[0044] The spare area 337s is a storage area provided as a reserve (spare). Management data is stored in the spare area. The management data is data used to manage data stored in the data area. The management data may include, for example, an error detection code, a bad block code, and the like. The spare area may be used for temporarily storing user data or intermediate data whose amount of data has increased unexpectedly. Note that the specifications, such as the storage capacity of each page, the number of pages per block, and the number of blocks per memory array, are not limited to the example in FIG. 7. These specifications may differ depending on the model.

[0045] In the NAND memory 337n, new user data may be written to a free area of ​​the NAND memory 337n in accordance with a write command notified from the logical host LH. The user data is treated as valid data (sometimes referred to as "valid data" in this application) when written. In addition, a part of the valid user data designated in accordance with an erase command notified from the logical host LH is set as invalid (void) data. At this stage, the invalid data is not completely erased, and the logical address of the page in which the invalid data is stored is erased from the mapping table. The invalid data is aggregated into a specific unused block by the BGC, and the valid user data that has not been invalidated is aggregated into other specific unused blocks. The invalid data is erased by block erasure from a block in which no valid user data remains and which is entirely occupied by invalid data. The block from which the invalid data has been erased is released as a free area.

[0046] The SoC 334 includes a host access controller 334h and a NAND access controller 334n (see FIG. 2). The SoC 334 may execute processes indicated by instructions written in predetermined firmware to realize the functions of the host access controller 334h and the NAND access controller 334n.

[0047] The host access controller 334h mainly executes access control from the logical host LH. The host access controller 334h manages the usage status of resources such as the DRAM 333, the NAND memory 337n, and the SoC 334. The host access controller 334h determines whether or not a command from the logical host LH can be executed based on the usage status of the resources, and transfers a command determined to be executable to the NAND access controller 334n. For example, the logical address of a free area in the NAND memory 337n is specified as a resource available for writing data. The logical address of a page in which valid user data is stored in the NAND memory 337n is specified as a resource available for reading or erasing data.

[0048] The host access controller 334h uses a mapping table to manage the usage state of each page of the NAND memory 337n. Whether or not a page is in use is identified by whether or not a logical address is written in the mapping table. When writing new data, the host access controller 334h maintains the logical address of the page to which the data is written. When erasing data, the host access controller 334h erases the logical address of the page in which the data to be erased is stored. At this stage, the data to be erased remains stored, but the erased logical address indicates that the stored data is invalid.

[0049] The host access controller 334h performs block erasure in the BGC, assigns a new logical address to the page from which the stored data has been erased, and records the address in the mapping table in association with the physical address of the page. This indicates that the page from which the data has been erased is a valid page to which new data can be written. The host access controller 334h writes new data to unused blocks in which all pages are free space, and does not write to blocks in which valid data is stored, even if only one page is stored.

[0050] Next, an example of management of the storage area of ​​the NAND memory 337n by the host access controller 334h will be described. Fig. 8 is an explanatory diagram for explaining management of the NAND memory 337n. However, as illustrated in the left column of Fig. 8, it is assumed that, in a situation where 64 pages of data are stored in block b, the host instructs to overwrite the area of ​​logical addresses LBAn to n+62 with 63 pages of new data. Overwriting data includes a process of erasing existing data and a process of saving new data.

[0051] In this case, the data stored in the area of ​​logical addresses LBAn~n+62 is treated as invalid data, and the data stored in the page indicated by logical address LBAn+63 continues to be stored as valid data. Since new data cannot be written to block b, new data is written to block b+3 as another unused block. Since the amount of data read and written is not necessarily in blocks, invalid data remains. New data cannot be written to a block with invalid data remaining. As data is repeatedly read and written, the number of unavailable blocks increases.

[0052] The host access controller 334h controls the execution of BGC based on power state information notified from the logical host LH (see FIG. 2). As described later, the power state information includes power state information indicating the power state of the host device. The power state information includes information on the operation mode of the host device and the power supply mode for the components of the information processing device 10. When the power supply mode is the first power supply mode (AC mode), the host access controller 334h executes BGC regardless of the operation mode of the host device. When the power supply mode is the second power supply mode (battery mode) and an instruction is given to change the operation mode to a power saving mode that consumes less power than the standard mode, the host access controller 334h determines whether BGC is required for the NAND memory 337n.

[0053] When the power supply mode is the second power supply mode (battery mode), the host access controller 334h may determine whether or not BGC is required based on the capacity of the free space in the NAND memory 337n. The host access controller 334h can refer to the mapping table, determine that unused pages in which no data is stored are free space, and count the number of blocks including those pages to grasp the capacity of the free space. When the power state information does not include information on the power supply mode, the host access controller 334h may estimate whether the first power supply mode or the second power supply mode has been selected in the power supply circuit 29 based on the temperature indicated in the temperature data from the temperature sensor 338.

[0054] When the second power supply mode is notified, the power state information may further include information on the remaining battery level of the battery 34. In this case, the host access controller 334h may further determine whether or not the BGC is required based on the notified remaining battery level. More specifically, when the notified remaining battery power is less than a predetermined lower limit, the host access controller 334h determines that BGC is not required. Furthermore, when the notified remaining battery power is equal to or greater than the lower limit of the remaining power and the capacity of the free space in the NAND memory 337n is equal to or greater than the lower limit of a predetermined capacity, the host access controller 334h determines that BGC is not performed. Furthermore, when the notified remaining battery power is equal to or greater than the lower limit of the remaining power and the capacity of the free space in the NAND memory 337n is less than a predetermined lower limit of the capacity, the host access controller 334h determines that BGC is necessary.

[0055] The host access controller 334h may execute access control instructed by the logical host LH and BGC in parallel. When executing BGC, the host access controller 334h aggregates invalid data distributed across multiple blocks into a specific unused block. When aggregating invalid data, the host access controller 334h copies the invalid data stored in the source page to a page that constitutes free space at the destination. Then, the host access controller 334h copies the logical address of the source page in a mapping table in association with an unused page at the destination, and erases the logical address of the source page.

[0056] For example, as shown in the left column of FIG. 8, assume that 64 pages of data are stored in block b, and the host instructs overwriting 63 pages of new data in the area of ​​logical addresses LBAn~n+62. Overwriting corresponds to a process of updating existing data in the page specified by the specified logical address with new data. In this case, the data stored in the area of ​​logical addresses LBAn~n+62 is treated as invalid data, and the data stored in the page specified by logical address LBAn+63 continues to be stored as valid data. Since new data cannot be written in the area of ​​logical addresses LBAn~n+62 of block b, the new data is written to another unused block, block b+3. The logical address of the page to which the new data is written is updated to the specified logical address LBAn~n+62. On the other hand, the logical address LBAn~n+62 of block b, in which the invalid data is stored, is erased from the mapping table.

[0057] The host access controller 334h may select a block having less invalid data or less valid data as the aggregation source block with priority (see FIG. 2). The host access controller 334h can count the amount of valid data and invalid data by referring to the mapping table and counting the number of pages to which a logical address is set for each block.

[0058] Then, the host access controller 334h performs block erasure on a block in which invalid data is stored in all pages and no page in which valid data is stored exists in the BGC, and releases all pages of the block as unused free space. The host access controller 334h issues a new logical address for each page from which block erasure has been performed, and stores the issued logical address in association with the physical address of the page.

[0059] The middle column of FIG. 8 illustrates a case in which data stored in logical address LBAn+63 of block b, logical address LBAm of block b+1, and logical addresses LBAx and LBAy of other blocks are consolidated into the free space of block b+2 in BGC. In this example, the data stored in the original page becomes invalid. Furthermore, valid data no longer exists in blocks b and b+1, and all stored data becomes invalid. The data stored in blocks b and b+1 is then erased (block erase), and the free space becomes available for writing new data.

[0060] The host access controller 334h refers to the firmware log stored in the DRAM 333, generates a statistical log indicating the operating state of the SSD, and transmits it to the logical host LH (see FIG. 2). The statistical log describes information statistically indicating the state of the SSD. Such information includes, for example, the number of input / output accesses to the NAND memory 337n per predetermined unit time, the used storage capacity of the NAND memory 337n, and the like. As the used storage capacity, the total storage capacity of the storage area in which valid user data is stored and the storage area in which invalid data is stored may be tallied. The host access controller 334h may generate and notify the statistical log in response to receiving a log request command from the logical host LH, or may autonomously generate a statistical log at a predetermined time or time interval and notify the generated statistical log.

[0061] The host access controller 334h transmits the temperature data input from the temperature sensor 338 to the EC 31 using a predetermined method. The host access controller 334h may, for example, include the temperature data in Self-Monitoring and Reporting Technology (SMART) data. The SMART data may include a statistical log. The temperature data is used for the temperature management function of the EC 31.

[0062] The NAND access controller 334n mainly controls access to the NAND memory 337n. The NAND access controller 334n accesses the NAND memory 337n according to a command notified from the logical host LH via the host access controller 334h, and performs processing instructed by the command. The command may instruct processing such as inquiry about stored data files, their names and capacities, directory configuration, etc., opening or closing data files, writing data, reading data, erasing data, etc.

[0063] The NAND access controller 334n may protect a predetermined type of resource from the notified command in a read-only manner. In other words, if the data instructed to be erased or modified by the command belongs to a predetermined type of resource, the NAND access controller 334n does not execute the erasure or modification as the process instructed by the command. The predetermined type of resource may include resources that may cause a malfunction of the information processing device 10 when erased or modified. Such resources include, for example, system files, folders, registry keys, and the like installed as part of an OS (Operating System).

[0064] Next, a functional configuration example of the information processing device 10 according to the present embodiment will be described. FIG. 3 is a schematic block diagram showing a functional configuration example of the information processing device 10 according to the present embodiment. The information processing device 10 includes a power control unit 112, a power state notification unit 114, a power circuit 29, and an SoC 334. In the example of FIG. 3, the functions of the power control unit 112 and the power state notification unit 114 are realized in the CPU 11. The CPU 11 may execute a predetermined program to realize the functions of the power control unit 112 and the power state notification unit 114. In order to realize the function of the power control unit 112, the CPU 11 may execute, for example, a program described as an API function, or may include a dedicated integrated circuit. In order to realize the function of the power control unit 114, the CPU 11 may execute, for example, a predetermined device driver.

[0065] The power control unit 112 determines the operation mode of the host device based on one or both of the operation state of the host device and the operation state of the information processing device 10. For example, the power control unit 112 determines one of the operation modes from the multiple operation modes that the CPU 11 forming the host device can take using a known method, and operates according to the determined operation mode. The power control unit 112 sets a transition condition in advance for the changed operation mode, and when the operation state or the operation state satisfies the set transition condition, changes to the operation mode corresponding to the transition condition. The multiple operation modes include at least a standard mode and a power saving mode. The power saving mode is an operation mode in which the rated power, which is a rated value of power consumption, is lower than that of the standard mode, and is a state in which the operation is not completely stopped. For example, the power control unit 112 can apply the D0 mode in PCIe (registered trademark) as the standard mode, and the D3 mode and the D4 mode as the power saving mode. For example, the power control unit 112 can apply the S0 state in ACPI as the standard mode, and the S3 state and the S4 state as the power saving mode.

[0066] The power control unit 112 may determine the operation mode of the CPU 11, which is a host device, by using a known method. When the state in which the power consumption of the CPU 11 is equal to or lower than the lower limit in the standard mode continues for a certain period or more, or when a state in which no operation signal is input from the input device 27 continues for a certain period or more, the power control unit 112 changes the operation mode from the standard mode to the power saving mode. When the state in which the power consumption of the CPU 11 exceeds the lower limit in the standard mode continues for a certain period or more, or when an operation signal is input from the input device 27, the power control unit 112 changes the operation mode from the power saving mode to the standard mode. When the determined operation mode is changed, the power control unit 112 outputs operation mode information indicating the determined operation mode to the power status notification unit 114 and the EC 31. In the EC 31, for example, the operation mode information may be used to control the operation of the heat dissipation fan 28 and the operation voltage of each member. The operation amount of the heat dissipation fan 28 is controlled to be larger as the operation mode has a higher power consumption.

[0067] The power supply mode information transmitted by the power supply circuit 29 in the power supply state signal is input to the power state notification unit 114 via the EC 31. When the operation mode information is input from the power control unit 112, the power state notification unit 114 aggregates the input operation mode information and the power supply mode information, and outputs the information to the SSD 33 as power state information. The power state notification unit 114 may be notified of the electromotive force transmitted by the electromotive force signal from the power supply circuit 29 via the EC 31, and may estimate the remaining battery capacity of the battery 34 from the transmitted electromotive force using a known function indicating the relationship between the electromotive force and the battery capacity. The power state notification unit 114 may include information on the estimated remaining battery capacity in the power state information and output it to the SoC 334 of the SSD 33. The power state notification unit 114 may output the power state information using, for example, an IOCTL interface. The power state notification unit 114 may set the power state information as a part of the operation parameters of the SoC 334 as a device connected to itself using the IOCTL interface. The output power state information is used to control the execution of the BGC.

[0068] Next, an example of control of the BGC according to this embodiment will be described below. Fig. 4 is a flowchart showing an example of control of the BGC according to this embodiment. (Step S102) The power state notification unit 114 acquires operation mode information of the host device, power supply mode information to the components, and remaining battery level information of the battery 34, and notifies the SoC 334 of the SSD 33 of these as power state information. (Step S104) The host access controller 334h of the SoC 334 determines whether the notified power supply mode is the first power supply mode (AC mode). If it is the first power supply mode (AC mode) (YES in step S104), the process proceeds to step S106. If it is the second power supply mode (battery mode) (NO in step S104), the process proceeds to step S110. (Step S106) The host access controller 334h executes the BGC, and then ends the process of FIG.

[0069] (Step S110) The host access controller 334h judges whether the notified operation mode has been changed to the power saving mode. If it has been changed to the power saving mode (YES in step S110), the process proceeds to step S112. If it has not been changed to the power saving mode (NO in step S110), the process in FIG. 4 ends without executing BGC. (Step S112) The host access controller 334h judges whether the notified remaining battery capacity is insufficient based on whether the remaining battery capacity is less than a predetermined lower limit (e.g., 10% of the battery capacity at full charge). If it is judged to be insufficient (step S112 YES), BGC is not performed unless it is judged that the free space of the NAND memory 337n is absolutely insufficient (e.g., less than 1% of the total storage space), and the process of FIG. 4 is terminated. If it is judged that the free space of the NAND memory 337n is absolutely insufficient (e.g., less than 1% of the total storage space), the host access controller 334h performs BGC until the free space reaches the absolute lower limit (e.g., 1% of the total storage space), and the process of FIG. 4 is terminated. If it is judged to be sufficient (step S112 NO), the process proceeds to step S114.

[0070] (Step S114) The host access controller 334h judges whether the capacity of the free space in the NAND memory 337n is sufficient based on whether it is equal to or greater than a predetermined normal lower limit of free space (for example, 10%). If it is judged to be sufficient (step S114 YES), the host access controller 334h does not execute BGC and ends the process of FIG. 4. If it is judged to be insufficient (step S114 NO), the process proceeds to step S106, executes BGC until a predetermined termination condition is met, and ends the process of FIG. 4. The termination condition may be either the free space exceeding the normal lower limit or garbage, i.e., invalid data, no longer being present.

[0071] (Modification) The information processing device 10 according to the present embodiment may be modified as follows: Fig. 5 is a block diagram showing a second example of the functional configuration of the information processing device 10 according to the present embodiment. The information processing device 10 includes a power state notification unit 314 instead of the power state notification unit 114, and further includes a power circuit 29 and an SoC 334. In the example of Fig. 5, the function of the power state notification unit 314 is realized by the EC 31. The EC 31 realizes the function of the power state notification unit 314 by executing processing instructed by a command described in predetermined firmware. The power state notification unit 314 receives power supply mode information transmitted by a power state signal from the power circuit 29. When the power state notification unit 314 receives operation mode information from the power control unit 112 (FIG. 3), the power state notification unit 314 aggregates the input operation mode information and power supply mode information, and outputs the information to the SSD 33 as power state information. The power state notification unit 314 may be notified of the electromotive force transmitted by the electromotive force signal from the power circuit 29, and may estimate the remaining battery level of the battery 34 from the transmitted electromotive force using the above-mentioned method. The power state notification unit 314 may include information on the estimated remaining battery level in the power state information and output the information to the SoC 334 of the SSD 33. The power state notification unit 314 may output the power state information using, for example, an SMbus (registered trademark) interface. The power state notification unit 314 can transmit the power state information using a polling packet, and obtain SMART data including temperature data from the SoC 334 as a response.

[0072] Fig. 6 is a block diagram showing a third example of a functional configuration of the information processing device 10 according to the present embodiment. In the example of Fig. 6, the power state notification units 114 and 314 are not provided, and the host access controller 334h of the SoC 334 monitors temperature data input from the temperature sensor 338, and estimates whether the power supply mode by the power supply circuit 29 is the first power supply mode or the second power supply mode based on the monitored temperature data. The host access controller 334h uses the estimated power supply mode and the operation mode information notified from the host device to control the execution of the BGC using the above method. At this time, the power state information notified from the logical host LH does not need to include information on the power supply mode.

[0073] For example, when the moving average value of the SSD temperature indicated by the temperature data exceeds a predetermined reference temperature (for example, 40 to 50°C) for a certain duration (for example, 10 to 180 seconds) or more, the host access controller 334h estimates the power supply mode by the power supply circuit 29 to be the first power supply mode. Otherwise, the host access controller 334h estimates the power supply mode by the power supply circuit 29 to be the second power supply mode. This is because in the second power supply mode, access to the SSD 33 is suppressed or stopped more than in the first power supply mode in order to suppress power consumption in the host device. And, the more frequently the SSD 33 is accessed from the host device or the larger the amount of data related to the access is, the more power it consumes in order to perform more processing, and therefore the more heat it generates.

[0074] In addition, not only in the case illustrated in Fig. 6, there are cases where the host access controller 334h cannot obtain the information on the remaining battery capacity. In such cases, the process of step S112, which requires the information on the remaining battery capacity, is omitted in the process illustrated in Fig. 4. Then, if the operation mode becomes the power saving mode in step S110 (YES in step S110), the process may proceed to step S114.

[0075] As described above, the information processing device 10 according to the present embodiment includes the power supply circuit 29 and other components, and the components include at least a first controller and a solid-state storage device (e.g., SSD 33), and the solid-state storage device includes a second controller (e.g., SoC 334) and a storage medium (e.g., NAND memory 337n). The power supply circuit 29 supplies operating power, which is power used for operating the components, and when power is supplied from an external power source, the power supply circuit 29 selects a first power supply mode (e.g., AC mode) in which the power is converted into the operating power, and when power is not supplied from the external power source, the power supply circuit 29 selects a second power supply mode (e.g., battery mode) in which the power from a secondary battery (e.g., battery 34) is converted into the operating power. When the first power supply mode is selected, the second controller performs garbage collection (e.g., BGC) on the storage medium regardless of the operating mode notified from the first controller, and when the second power supply mode is selected and an instruction is given to change the operating mode to a power saving mode which consumes less power than the standard power, the second controller determines whether garbage collection is necessary on the storage medium.

[0076] The first controller may be either a processor of the host system (e.g., CPU 11) or a controller separate from the processor of the host system (e.g., EC 31). The first controller may notify the second controller of the power mode of the power supply circuit and the remaining capacity of the secondary battery.

[0077] With this configuration, when AC power is supplied from an external power source, garbage collection is performed regardless of the power consumption according to the operating mode, thereby enabling effective use of the storage medium. When AC power is not supplied from the external power source and the power saving mode is changed to one with less power consumption than the standard power consumption, the necessity of garbage collection is determined. Therefore, in a power saving mode with low power consumption, the necessity of garbage collection is low, but by determining the necessity of garbage collection, which consumes a lot of power, the impact on the battery life of the secondary battery can be reduced.

[0078] When the second power supply mode is selected, the second controller may determine whether garbage collection is required for the storage medium based on the amount of free space in the storage medium. With this configuration, the necessity of garbage collection for a storage medium can be quantitatively determined based on the capacity of the free space on the storage medium.

[0079] The solid-state memory device may be equipped with a temperature sensor (e.g., temperature sensor 338) that detects the temperature of the solid-state memory device, and the second controller may estimate whether the first power supply mode or the second power supply mode is selected based on the temperature detected by the temperature sensor. With this configuration, the second controller in the solid-state storage device can autonomously determine whether garbage collection is required. There is no need to provide a configuration for setting information on the power supply mode in the logical host connected to the solid-state storage device. This makes it possible to realize the configuration economically.

[0080] When the second power supply mode is selected and the remaining charge of the secondary battery (eg, remaining battery charge) is notified from the first controller, the second controller may further determine whether garbage collection is necessary based on the remaining charge. With this configuration, the necessity of garbage collection for the storage medium can be quantitatively determined based on the remaining charge of the secondary battery.

[0081] The second controller may determine that garbage collection is not necessary when the remaining amount is less than a predetermined lower limit of the remaining amount. With this configuration, when the remaining capacity is insufficient, garbage collection, which consumes a lot of power, is not performed, so that the operation of the information processing device 10 can be prioritized under limited power.

[0082] The second controller may determine that garbage collection is not required when the remaining amount is equal to or greater than a predetermined lower limit of the remaining amount and the capacity of the free space in the solid-state memory device is equal to or greater than a predetermined lower limit of the capacity, and may determine that garbage collection is required when the remaining amount is equal to or greater than the lower limit and the capacity of the free space is less than the lower limit. With this configuration, when the remaining capacity is sufficient, the necessity of garbage collection is determined depending on whether the capacity of the free space is insufficient. Therefore, the necessity of garbage collection is quantitatively determined based on the capacity of the free space.

[0083] Although the embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to the above embodiment, and the present invention also includes designs that do not deviate from the gist of the present invention. The configurations described in the above embodiment can be combined in any combination. 1, such as the USB connector 24, the audio system 25, the network card 26, and the input device 27, may be omitted in whole or in part. Other devices may be connected to the information processing device 10. [Explanation of symbols]

[0084] 10...information processing device, 11...CPU, 12...main memory, 13...GPU, 14...display, 21...chipset, 22...BIOS memory, 24...USB connector, 25...audio system, 26...network card, 27...input device, 28...heat dissipation fan, 29...power supply circuit, 31...EC, 32...SSD port, 33...SSD, 34...battery, 35...AC adapter, 112...power control unit, 114, 314...power status notification unit, 332...logical host IF, 333...DRAM, 334...SoC, 334h...host access controller, 334n...NAND access controller, 336...I / O buffer, 337n...NAND memory, 338...temperature sensor

Claims

1. A power supply circuit and other components are included, The components include at least a first controller and a solid-state memory device; The solid-state storage device is an information processing device including a second controller and a storage medium, a temperature sensor for detecting a temperature of the solid-state storage device; The power supply circuit supplies operating power that is power used to operate the components; When power is supplied from an external power source, the power supply circuit selects a first power supply mode in which the power is converted into the operating power; selecting a second power supply mode in which power from a secondary battery is converted into the operating power when power is not supplied from an external power source; The second controller is Inferring whether the first power supply mode or the second power supply mode is selected based on the temperature; When the first power supply mode is selected, executes garbage collection on the storage medium regardless of the operation mode notified by the first controller; When the second power supply mode is selected and an instruction is given to change the operation mode to a power saving mode, which is an operation mode with less power consumption than the standard power consumption, Determining whether garbage collection is required for the storage medium Information processing device.

2. The second controller is When the second power supply mode is selected, Based on the capacity of the free space in the storage medium, it is determined whether garbage collection is required for the storage medium. The information processing device according to claim 1 .

3. The second controller is When the second power supply mode is selected and the first controller notifies the secondary battery of a remaining charge, Further, it is determined whether the garbage collection is necessary based on the remaining amount. The information processing device according to claim 1 .

4. The second controller is The information processing apparatus according to claim 3 , wherein when the remaining amount is less than a predetermined lower limit of the remaining amount, it is determined that garbage collection is not required.

5. The second controller is determining that garbage collection is not required when the remaining amount is equal to or greater than a predetermined lower limit of the remaining amount and the capacity of the free space in the solid-state storage device is equal to or greater than a predetermined lower limit of the capacity; When the remaining amount is equal to or greater than the lower limit of the remaining amount and the capacity of the free space is less than the lower limit of the capacity, it is determined that garbage collection is necessary. The information processing device according to claim 3 .

6. the first controller being a processor of a host system; The power supply mode of the power supply circuit and the remaining capacity of the secondary battery are notified to the second controller. The information processing device according to claim 3 .

7. the first controller being a controller separate from a processor of a host system; The power supply mode of the power supply circuit and the remaining capacity of the secondary battery are notified to the second controller. The information processing device according to claim 3 .

8. A power supply circuit and other components are included, The components include at least a first controller and a solid-state memory device; The solid-state storage device includes a second controller and a storage medium, and the solid-state storage device includes a temperature sensor for detecting a temperature of the solid-state storage device. The power supply circuit supplies operating power used to operate the components; the power supply circuit, when receiving power from an external power supply, selects a first power supply mode in which the power is converted into the operating power; a first step of selecting a second power supply mode in which power from a secondary battery is converted into the operating power when power is not supplied from an external power source; The second controller, Inferring whether the first power supply mode or the second power supply mode is selected based on the temperature; When the first power supply mode is selected, executes garbage collection on the storage medium regardless of the operation mode notified by the first controller; When the second power supply mode is selected and an instruction is given to change the operation mode to a power saving mode, which is an operation mode with less power consumption than the standard power consumption, a second step of determining whether garbage collection is required for the storage medium; A control method for performing the above.

Citation Information

Patent Citations

  • Processor with nonvolatile memory means and nonvolatile memory control method

    JP2004178417A

  • Image formation device, control method of image formation device, and program

    JP2019199059A

  • Power supply device, power supply control method, and storage device

    JP2020013271A

  • Storage device and information processing system

    JP2020046752A

  • Information processing device, control method, and program

    JP2020071632A