Power consumption optimization method, storage device and electronic device
By dynamically adjusting the idle time and power consumption mode of the storage device, the problem of taking into account performance and power consumption of the storage device under different access pressures is solved, and more efficient energy efficiency optimization is achieved.
Patent Information
- Application Number
- CN202310505839.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-06
- Publication Date
- 2024-11-08
AI Technical Summary
When facing different degrees of access pressure, storage devices cannot take into account both better performance and better power consumption. The prior art is difficult to flexibly adjust the number of times they enter the low-power mode, resulting in performance delay or waste of power consumption.
By obtaining the low power consumption time and initial idle time of the storage device in low power mode, adjusting according to the preset threshold, dynamically adjusting the target idle time to determine whether to enter low power mode, ensuring that the power is optimized under different access pressures Consumption and performance.
It realizes flexible adjustment of the power consumption mode of the storage device according to the access pressure, reduces performance delay and power consumption waste, and improves the response speed and energy efficiency of the storage device under different pressures.
Smart Images

Figure CN118915952A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of storage technology, and in particular to a power consumption optimization method, a storage device, and an electronic device. Background Art
[0002] In the current power consumption optimization scheme for storage devices, the pressure of access to storage devices is unpredictable. When facing a large access pressure, if the storage device frequently enters a low power consumption mode, it will have an adverse effect on the performance of the storage device. When facing a small access pressure, if the storage device does not increase the number of times it enters low power consumption, the power consumption of the storage device will be wasted. Therefore, when facing different access pressures, storage devices have the problem of not being able to balance better performance and better power consumption. Summary of the invention
[0003] In view of the above, it is necessary to provide a power consumption optimization method, a storage device and an electronic device to solve the technical problem that the storage device cannot take into account both better performance and better power consumption when facing different levels of access pressure.
[0004] On the one hand, the present application provides a power consumption optimization method, which is applied to a storage device, and the method includes: responding to a first access request, waking up the storage device from a low power consumption mode, obtaining the low power consumption duration of the storage device in the low power consumption mode before waking up, and obtaining the initial idle duration of the storage device before entering the low power consumption mode, adjusting the initial idle duration according to the initial idle duration, a preset threshold and the low power consumption duration to obtain a target idle duration, and entering the low power consumption mode if no second access request is received within the target idle duration after the first access request is executed.
[0005] In some embodiments, obtaining the low power consumption duration that the storage device is in the low power consumption mode before waking up includes: determining a first time when the storage device enters the low power consumption mode, timing from the first time until the first access request is received, stopping timing, obtaining a second time when the first access request is received, and calculating the low power consumption duration based on the first time and the second time.
[0006] In some embodiments, the method further includes: determining whether to adjust the initial idle duration according to a comparison result between the initial idle duration and the low power consumption duration and a preset threshold.
[0007] In some embodiments, the preset threshold includes a first preset threshold, a second preset threshold and a third preset threshold, wherein the second preset threshold is less than the third preset threshold, and determining whether to adjust the initial idle duration based on the comparison results between the initial idle duration and the low power consumption duration and the preset threshold includes: comparing the low power consumption duration with the first preset threshold to obtain a first comparison result, comparing the initial idle duration with the second preset threshold to obtain a second comparison result, and comparing the initial idle duration with the third preset threshold to obtain a third comparison result, and determining whether to adjust the initial idle duration based on the first comparison result, the second comparison result and the third comparison result.
[0008] In some embodiments, determining whether to adjust the initial idle duration based on the first comparison result, the second comparison result and the third comparison result includes: if the first comparison result is that the low power consumption duration is greater than the first preset threshold and the second comparison result is that the initial idle duration is greater than the second preset threshold, or, if the first comparison result is that the low power consumption duration is less than or equal to the first preset threshold and the third comparison result is that the initial idle duration is less than the third preset threshold, adjusting the initial idle duration; or, if the first comparison result is that the low power consumption duration is greater than the first preset threshold and the second comparison result is that the initial idle duration is less than or equal to the second preset threshold, or, if the first comparison result is that the low power consumption duration is less than or equal to the first preset threshold and the third comparison result is that the initial idle duration is greater than or equal to the third preset threshold, not adjusting the initial idle duration.
[0009] In some embodiments, the adjustment of the initial idle duration to obtain the target idle duration includes: if the low power consumption duration is less than or equal to the first preset threshold and the initial idle duration is less than the third preset threshold, increasing the initial idle duration to obtain the target idle duration; or, if the low power consumption duration is greater than the first preset threshold and the initial idle duration is greater than the second preset threshold, reducing the initial idle duration to obtain the target idle duration.
[0010] In some embodiments, increasing the initial idle duration to obtain the target idle duration includes: increasing the initial idle duration according to a preset increase step to obtain the target idle duration.
[0011] In some embodiments, the method further includes: maintaining a non-low power consumption mode within the target idle time after the first access request is executed, and if the second access request is received within the target idle time after the first access request is executed, responding to the second access request in the non-low power consumption mode.
[0012] On the other hand, the present application provides a power consumption optimization device, which runs on a storage device, and the power consumption optimization device includes: a response unit, which is used to respond to a first access request and wake up the storage device from a low power consumption mode; an acquisition unit, which is used to obtain the low power consumption duration of the storage device in the low power consumption mode before waking up, and obtain the initial idle duration of the storage device before entering the low power consumption mode; an adjustment unit, which is used to adjust the initial idle duration according to the initial idle duration, a preset threshold and the low power consumption duration to obtain a target idle duration; and an entry unit, which is used to enter the low power consumption mode if no second access request is received within the target idle duration after the first access request is executed.
[0013] On the other hand, the present application provides a storage device, which communicates with a host, and includes: a memory, storing at least one instruction, and a processor, executing the at least one instruction to implement the power consumption optimization method.
[0014] On the other hand, the present application provides an electronic device, comprising: the storage device storing at least one instruction; and a processing device executing the at least one instruction to implement the power consumption optimization method.
[0015] Through the above implementation, the initial idle duration is the duration that the storage device maintains a non-low power mode waiting for an access request. By comparing the low power duration with the preset threshold, the benefit of the storage device entering the low power mode this time can be known, so that the size of the access pressure currently faced by the storage device can be inferred. When the benefit of the storage device entering the low power mode is small, it can be inferred that the storage device is facing a large access pressure. When the storage device faces a large access pressure and receives a second access request within the target idle duration after the first access request is executed, the adjustment of the initial idle duration includes increasing the initial idle duration to obtain the target idle duration, which is equivalent to increasing the time that the storage device maintains a non-low power mode to wait for the second access request. By responding to the second access request through the increased target idle duration, the number of times the storage device enters the low power mode in the next round can be reduced, so that the response speed of the storage device to the access request is not affected (the performance of the storage device is not affected). When the benefit of the storage device entering the low power mode is large, it can be inferred that the storage device is facing less access pressure. When the storage device faces less access pressure and does not receive the second access request within the target idle time after the first access request is executed, the adjustment of the initial idle time includes reducing the initial idle time to obtain the target idle time, which is equivalent to reducing the time the storage device remains in a non-low power mode to wait for the second access request. By responding to the second access request with the reduced target idle time, the number of times the storage device enters the low power mode can be increased, thereby reducing the power consumption of the storage device. The present application can flexibly adjust the time the storage device remains in a non-low power mode waiting for access requests according to the different access pressures faced by the storage device, thereby adjusting the number of times the storage device enters the low power mode, thereby solving the technical problem that the storage device cannot take into account both better performance and better power consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a schematic diagram of the response of a storage device to a host provided by an embodiment of the present application.
[0017] Figure 2 This is a schematic diagram of a storage device responding to a host according to another embodiment of the present application.
[0018] Figure 3 This is an application environment diagram of the power consumption optimization method provided in one embodiment of the present application.
[0019] Figure 4 It is a flow chart of the power consumption optimization method provided in an embodiment of the present application.
[0020] Figure 5 This is a schematic diagram of a storage device's response to an access request provided by an embodiment of the present application.
[0021] Figure 6 This is a schematic diagram of a storage device responding to an access request according to another embodiment of the present application.
[0022] Figure 7 This is a flowchart of a power consumption optimization method provided by another embodiment of the present application.
[0023] Figure 8 It is a functional module diagram of a power consumption optimization device provided in one embodiment of the present application.
[0024] Fig. 9 It is a structural diagram of a storage device provided in one embodiment of the present application.
[0025] Fig.10 It is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0026] It should be noted that in this application, "at least one" means one or more, and "more than one" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.
[0027] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way. The following embodiments and features in the embodiments may be combined with each other without conflict.
[0028] In the process of a storage device entering a low power consumption mode, the idle time of the storage device is usually timed by the firmware (Firmware, FW) in the storage device. After the idle time obtained by timing exceeds a preset idle time threshold, the storage device will actively enter the low power consumption mode to save energy. The low power consumption mode is a mode that the storage device enters autonomously after not receiving an access request from the host during the idle time. After the storage device enters the low power consumption mode, it can save energy. When receiving an access request from the host (such as a read / write request), the storage device will be converted from the low power consumption mode to a non-low power consumption mode, but it takes a certain amount of time for the storage device to convert from the low power consumption mode to a non-low power consumption mode. When the host accesses the storage device in the low power consumption mode through an access request, there will be a delay (Latency) in the response of the storage device in the low power consumption mode to the access request of the host.
[0029] The preset idle time is usually a fixed value set by the manufacturer. For example, the idle time can be any value between 3ms and 100ms. The access pressure of the host to the storage device includes no load, light load, heavy load and full load. When the storage device is connected to a host, no load can mean that the host has no access to the storage device. Light load means that the host has a small amount of access to the storage device, and there is a large time interval between each access. For example, the light load can be that the host is in the system standby state to access the storage device. Heavy load means that the host has a relatively intensive access to the storage device, and the time interval between each access is small. For example, the light load can be that the host is in the game loading state, the system startup state or the performance test state (such as PCMARK test) to access the storage device. Full load means that the host has a great pressure access to the storage device, and there is basically no time interval between each access. For example, the full load can be that the host is in the performance test (CrystalDiskMark, CDM) state of the storage device.
[0030] The storage device can respond to the host's access with different pressure levels, such as no load, light load, heavy load and full load, through the idle time threshold. If you want to pursue lower power consumption, you need to set the idle time threshold to be smaller, increase the number of times the storage device enters the low power mode, and thus reduce the average power consumption of the storage device over a period of time. However, an idle time threshold that is too small is usually only applicable to situations where the host's access pressure to the storage device is small (such as no load or the light load), and is not applicable to situations where the host's access pressure to the storage device is large (such as the heavy load and the full load). This is because when the host's access pressure to the storage device is large, if the idle time threshold is set too small, the number of times the storage device enters the low power mode increases, and the storage device that is in the low power mode for a longer time will have more delays in responding to the host's access.
[0031] For example, if the storage device is a solid-state drive (SSD), the idle time threshold in the SSD is set very small, such as Figure 1 FIG. 1 is a schematic diagram of a storage device responding to a host according to an embodiment of the present application. Figure 1 In the case of an SSD in low power mode, when it receives an access from the host, it takes some time for the SSD to recover from low power mode to non-low power mode. The SSD will respond to the host's access only after recovering to non-low power mode. When the SSD's idle time is greater than the idle time threshold (no access from the host is received during this period), the SSD will enter low power mode again. The non-low power mode is a mode other than the low power mode, usually referring to the normal working mode. Figure 1 It can be seen that when the idle time threshold in the SSD is set very small, the SSD will frequently enter the low power mode. If the host accesses the storage device more intensively at this time, each access requires the SSD to be restored from the low power mode. At this time, the SSD has a large delay to the host and poor performance.
[0032] If you want to pursue higher performance, you need to set the idle time threshold to be larger to reduce the number of times the storage device enters the low power mode, thereby reducing the delay in the storage device's access to the host. However, a large idle time threshold is only applicable to situations where the host has a large access pressure on the storage device (such as the heavy load and the full load), and is not applicable to situations where the host has a small access pressure on the storage device (such as the no load or the light load). This is because when the host has a small access pressure on the storage device, if the idle time threshold is set to a large value, the fewer times the storage device enters the low power mode, and the storage device remains in a non-low power mode when idle, resulting in a large power consumption of the storage device.
[0033] For example, if the storage device is a solid state drive, the idle time threshold in the solid state drive is set very large, such as Figure 2 FIG. 1 is a schematic diagram of a storage device responding to a host according to another embodiment of the present application. Figure 2 In the case of an SSD in low power mode, when receiving an access from the host, it will take some time to restore the SSD from low power mode to non-low power mode, and the SSD after restoration to non-low power mode will respond to the host's access. Since the idle time threshold is set very large, after responding to the access from the host, even if no new access is received for a long time, the SSD is still in non-low power mode, and will not enter low power mode again until the idle time threshold of the SSD is greater than the idle time threshold. Maintaining non-low power mode without receiving new access for a long time will result in high power consumption of the SSD.
[0034] The host's access to the storage device is usually unpredictable. If a fixed idle time threshold is used to respond to access conditions of different pressure levels from the host, the storage device will not be able to flexibly adjust the number of times it enters the low power mode, causing the storage device to be unable to take into account both better performance and better power consumption. To solve this technical problem, an embodiment of the present application provides a power consumption optimization method, which will be described below in conjunction with an application scenario and a flow chart.
[0035] like Figure 3 , is an application environment diagram of the power consumption optimization method provided by an embodiment of the present application. Figure 3 In the embodiment, the storage device 1 communicates with the host 2, for example, the storage device can communicate with the host via wireless communication or wired communication. The wireless communication method includes, but is not limited to, Bluetooth, hotspot, and Wi-Fi. The wired communication method can be communication via a bus (such as an I2C bus).
[0036] The storage device 1 is a data storage device, and the hardware of the storage device 1 includes, but is not limited to: a main control chip, a controller (such as a cache controller and a host interface controller), a buffer, and a random access memory DRAM, etc.
[0037] The storage device 1 includes a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card (Flash Card), at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices, etc. This application does not limit the storage device 1. In order to more clearly describe the power consumption optimization method in this solution, the hard disk will be described as the storage device below.
[0038] In some embodiments, the hard disk may be a solid state drive or a hybrid hard drive (HHD). If the storage device 1 is a solid state drive, the storage device 1 further includes a flash memory (NAND) and a flash memory controller.
[0039] The host 2 can be any electronic product that can interact with the user, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an interactive network television (IPTV), a smart wearable device (such as a control bracelet), a vehicle-mounted device, etc. This application does not limit the host 2.
[0040] like Figure 4 FIG. 1 is a flowchart of a power consumption optimization method provided by an embodiment of the present application. The execution subject of the method is a storage device, for example Figure 1 The storage device 1 shown. According to different requirements, the order of each step in the flow chart can be adjusted according to actual detection requirements, and some steps can be omitted.
[0041] S11, in response to a first access request, waking up the storage device from a low power mode, obtaining the low power consumption duration of the storage device in the low power consumption mode before waking up, and obtaining the initial idle duration of the storage device before entering the low power consumption mode.
[0042] In some embodiments, upon receiving the first access request, the storage device needs to recover from the low power mode to the non-low power mode after a period of time. Only after recovering to the non-low power mode will the storage device respond to the first access request. The access request may be a read / write request (I / O request), and the low power mode is a mode that the storage device autonomously enters when it does not receive any access request within the initial idle time. The storage device entering the low power mode can save energy consumption of the storage device. The non-low power mode is a mode other than the low power mode, which can be represented as a normal working mode. In the non-low power mode, the storage device can respond quickly to received access requests.
[0043] In some embodiments, the initial idle duration is the duration during which the storage device remains in a non-low power mode waiting for an access request from the host, and the initial idle duration is used to determine whether the storage device enters a low power mode. For example, if the initial idle duration is 50 ms, the storage device receives an access request from the host within 50 ms, and the storage device responds to the access request, or if the storage device does not receive the access request within 50 ms, the storage device enters a low power mode.
[0044] In some embodiments, the storage device obtaining the low power consumption duration of the storage device in the low power consumption mode may include: the storage device determines the first time when the storage device enters the low power consumption mode, and then the storage device counts from the first time through firmware until the first access request is received, stops counting, and determines the second time when the first access request is received; and calculates the low power consumption duration according to the first time and the second time. The first time and the second time are a time point and can be expressed as a timestamp.
[0045] The firmware is software embedded in the hardware of the storage device, and can be used as the operating system of the storage device. The firmware includes boot commands, control statements, execution statements, and timing statements written in assembly language, and can coordinate and control various internal components of the storage device. Since the storage device may enter the low power consumption mode multiple times, the low power consumption mode entered by the storage device can be divided by the number of times.
[0046] For example, the storage device may determine the difference between the second time and the first time as the low power consumption duration.
[0047] In some embodiments, the storage device obtains the initial idle duration of the storage device before entering the low power mode, including: the storage device determines a third time before entering the low power mode and when a response to a newly received access request is completed, and then the storage device calculates the initial idle duration according to the first time and the third time. The third time is a time point and can be expressed as a timestamp.
[0048] For example, the storage device may determine the difference between the first time and the third time as the initial idle time duration.
[0049] In another embodiment of the present application, the storage device may obtain the initial idle time duration and the low power consumption time duration in other ways, and the present application does not impose any limitation on this.
[0050] S12, adjusting the initial idle duration according to the initial idle duration, a preset threshold and the low power consumption duration to obtain a target idle duration.
[0051] In some embodiments, the storage device sets the initial idle time length as a variable. Therefore, the initial idle time length in the embodiments of the present application is variable.
[0052] In some other embodiments, the method further includes: the storage device determines whether to adjust the initial idle duration according to a comparison result between the initial idle duration and the low power consumption duration and a preset threshold.
[0053] In this embodiment, since the initial idle time is the time that the storage device remains in a non-low power mode waiting for the access request of the host, the benefit of the storage device entering the low power mode this time can be known by comparing the low power time with the preset threshold. For example, if the low power time is less than or equal to the corresponding preset threshold, it can be determined that the benefit of entering the low power mode this time is not high, or if the low power time is greater than the corresponding preset threshold, it can be determined that the benefit of entering the low power mode this time is large. The benefit can reasonably infer the size of the access pressure currently faced by the storage device.
[0054] For example, when the benefit of the storage device entering the low power consumption mode is small, it can be inferred that the storage device is facing greater access pressure. When the storage device is facing greater access pressure and receives an access request from the host at this time, the adjustment of the initial idle time includes increasing the initial idle time to obtain the target idle time, which is equivalent to increasing the time that the storage device remains in a non-low power consumption mode to wait for the access request from the host.
[0055] For example, when the benefit of the storage device entering the low power consumption mode is large, it can be inferred that the storage device is facing less access pressure. When the storage device is facing less access pressure and receives an access request from the host at this time, the adjustment of the initial idle time includes reducing the initial idle time to obtain the target idle time, which is equivalent to reducing the time that the storage device remains in a non-low power consumption mode to wait for the access request from the host.
[0056] S13: If no second access request is received within the target idle time after the first access request is executed, enter a low power consumption mode.
[0057] In some embodiments, the second access request refers to another access request received by the storage device after the first access request is completed. The second access request may also be a read / write request.
[0058] In an embodiment of the present application, when the storage device faces a small access pressure, the time for which the storage device remains in a non-low power mode to wait for the second access request is reduced, which can increase the number of times the storage device enters the low power mode, thereby reducing the power consumption of the storage device. When the storage device faces a large access pressure, the time for which the storage device remains in a non-low power mode to wait for the second access request is increased, which can reduce the number of times the storage device enters the low power mode, thereby ensuring that the response speed of the storage device to the access request of the host is not affected (the performance of the storage device is not affected).
[0059] For example, assuming that the storage device is a solid state hard disk, the target idle time is a threshold value obtained by reducing the initial idle time, such as Figure 5 , which is a schematic diagram of a storage device responding to an access request according to an embodiment of the present application.
[0060] from Figure 5 It can be seen that the solid-state drive receives sparse access from the host. After receiving a first access request from the host and completing the response, since the target idle time is the threshold obtained by reducing the initial idle time, the time interval for the solid-state drive to enter the low power mode is shortened. If the second access request is not received within the target idle time, the solid-state drive will be in the low power mode for a long time until it receives the third access request from the host, and then it will recover from the low power mode. Therefore, the power consumption of the solid-state drive SSD can be saved.
[0061] In this embodiment, the storage device maintains a non-low power consumption mode within the target idle time after the first access request is executed. If the second access request is not received within the target idle time after the first access request is executed, the storage device enters the low power consumption mode to save power consumption.
[0062] In another embodiment of the present application, if the second access request is received within the target idle time after the first access request is executed, the storage device responds to the second access request in the non-low power mode, thereby being able to quickly respond to the second access request.
[0063] In some embodiments, after completing the response to the received second access request, the storage device determines, through the firmware, a response completion time after completing the response to the second access request, and then starts timing from the response completion time through the firmware. If there are multiple second access requests, the storage device starts timing according to the response completion time of each second access request.
[0064] For example, assuming that the storage device is a solid state drive, the target idle time is a threshold value obtained by adding the initial idle time, such as Figure 6 , which is a schematic diagram of a storage device responding to an access request according to another embodiment of the present application.
[0065] from Figure 6 It can be seen that the solid-state drive receives intensive access from the host. After receiving a first access request from the host and completing the response, since the target idle time is the threshold obtained by adding the initial idle time, the time interval for the solid-state drive to enter the low-power mode is increased. When the solid-state drive receives multiple second access requests from the host, the solid-state drive is in a non-low-power mode. The solid-state drive can quickly respond to multiple second access requests without any delay. The solid-state drive responds quickly to the host, so the performance of the solid-state drive is better. In addition, after completing the response to each second access request, the storage device restarts the timing from the time when the response to each second access request is completed through the firmware.
[0066] Through the above implementation, the initial idle duration is the duration that the storage device maintains a non-low power mode waiting for an access request. By comparing the low power duration with the preset threshold, the benefit of the storage device entering the low power mode this time can be known, so that the size of the access pressure currently faced by the storage device can be inferred. When the benefit of the storage device entering the low power mode is small, it can be inferred that the storage device is facing a large access pressure. When the storage device faces a large access pressure and receives a second access request within the target idle duration after the first access request is executed, the adjustment of the initial idle duration includes increasing the initial idle duration to obtain the target idle duration, which is equivalent to increasing the time that the storage device maintains a non-low power mode to wait for the second access request. By responding to the second access request through the increased target idle duration, the number of times the storage device enters the low power mode in the next round can be reduced, so that the response speed of the storage device to the access request is not affected (the performance of the storage device is not affected). When the benefit of the storage device entering the low power mode is large, it can be inferred that the storage device is facing less access pressure. When the storage device faces less access pressure and does not receive the second access request within the target idle time after the first access request is executed, the adjustment of the initial idle time includes reducing the initial idle time to obtain the target idle time, which is equivalent to reducing the time the storage device remains in a non-low power mode to wait for the second access request. By responding to the second access request with the reduced target idle time, the number of times the storage device enters the low power mode can be increased, thereby reducing the power consumption of the storage device. The present application can flexibly adjust the time the storage device remains in a non-low power mode waiting for access requests according to the different access pressures faced by the storage device, thereby adjusting the number of times the storage device enters the low power mode, thereby solving the technical problem that the storage device cannot take into account both better performance and better power consumption.
[0067] In some embodiments of the present application, the preset threshold includes a first preset threshold, a second preset threshold and a third preset threshold, wherein the second preset threshold is less than the third preset threshold. Figure 7 , which is a flow chart of a power consumption optimization method provided in another embodiment of the present application.
[0068] S121, the storage device compares the low power consumption duration with the first preset threshold, determines whether the low power consumption duration is greater than the first preset threshold, and obtains a first comparison result.
[0069] The first preset threshold is a time threshold used to measure the benefit of entering the low power mode each time. For example, if any low power consumption duration is greater than the first preset threshold, the storage device determines that the benefit of entering the low power mode at any time is greater, or if any low power consumption duration is less than or equal to the first preset threshold, the storage device determines that the benefit of entering the low power mode at any time is smaller.
[0070] In an embodiment of the present application, the first preset threshold needs to be obtained by performing multiple tests on the storage device.
[0071] In another embodiment of the present application, the first preset threshold can be set by oneself.
[0072] S122, if the first comparison result is that the low power consumption duration is greater than the first preset threshold, the storage device compares the initial idle duration with the second preset threshold to determine whether the initial idle duration is greater than the second preset threshold, and obtains a second comparison result.
[0073] The second preset threshold is a time threshold corresponding to better power consumption (eg, lower power consumption). After the storage device adjusts the initial idle time to be less than or equal to the second preset threshold, the power consumption generated by the storage device may no longer change.
[0074] In an embodiment of the present application, the second preset threshold needs to be obtained by performing multiple tests on the storage device.
[0075] In another embodiment of the present application, the second preset threshold can be set by oneself.
[0076] In this embodiment, if the first comparison result is that the low power consumption duration is greater than the first preset threshold, it means that the benefit of entering the low power consumption mode this time is large, and then it is determined whether the initial idle duration is greater than the second preset threshold. If the initial idle duration is greater than the second preset threshold, it means that the power consumption of the storage device can be further reduced.
[0077] S123, if the first comparison result is that the low power consumption duration is greater than the first preset threshold and the second comparison result is that the initial idle duration is greater than the second preset threshold, the storage device reduces the initial idle duration to obtain the target idle duration.
[0078] In some embodiments, the storage device reduces the initial idle time according to a preset reduction step length to obtain the target idle time length. The preset reduction step length is the time value of each reduction based on the initial idle time length, and the preset reduction step length can be set by itself, and this application does not limit this.
[0079] For example, when the preset reduction step is greater than zero, the storage device may use the difference between the initial idle time and the preset reduction step as the target idle time, or, when the preset reduction step is less than zero, the storage device may use the sum of the initial idle time and the preset reduction step as the target idle time.
[0080] Based on the above embodiment, the calculation method of the target idle time can refer to formula (1).
[0081] A=A-δ1; (1)
[0082] Wherein, A on the left side of the equal sign represents the target idle time, A on the right side of the equal sign represents the initial idle time, and δ1 represents the preset reduction step. In some other embodiments of the present application, the target idle time may also be expressed as A. ′ express.
[0083] In this embodiment, when the power consumption of the storage device can be further reduced, reducing the initial idle time is equivalent to reducing the time that the storage device remains in a non-low power mode waiting for the access request of the host. By responding to the access request with the reduced target idle time, the number of times the storage device enters the low power mode can be increased, thereby reducing the power consumption of the storage device. In addition, by reducing the initial idle time to obtain the target idle time, after the idle time of the storage device (the time when no access request is received) exceeds the target idle time, the storage device will enter the low power mode again, and then calculate a new idle time threshold according to the target idle time, and then respond to the access request with the new idle time threshold.
[0084] S124, if the first comparison result is that the low power consumption duration is less than or equal to the first preset threshold, compare the initial idle duration with the third preset threshold to determine whether the initial idle duration is less than the third preset threshold, and obtain a third comparison result.
[0085] The third preset threshold is a time threshold corresponding to better performance (for example, better response speed to the host). After the storage device adjusts the initial idle time to be greater than or equal to the third preset threshold, the performance of the storage device may no longer change.
[0086] In an embodiment of the present application, the third preset threshold needs to be obtained by performing multiple tests on the storage device.
[0087] In another embodiment of the present application, the third preset threshold can be set by oneself.
[0088] In this embodiment, if the first comparison result is that the low power consumption duration is greater than the first preset threshold, it means that the benefit of entering the low power consumption mode this time is small, and then it is determined whether the initial idle duration is less than the third preset threshold. If the initial idle duration is less than the third preset threshold, it means that the performance of the storage device can be further improved.
[0089] In some embodiments, after obtaining the first comparison result, the second comparison result, and the third comparison result, the storage device determines whether to adjust the initial idle time according to the first comparison result, the second comparison result, and the third comparison result.
[0090] S125, if the first comparison result is that the low power consumption duration is less than or equal to the first preset threshold and the third comparison result is that the initial idle duration is less than the third preset threshold, the storage device increases the initial idle duration to obtain the target idle duration.
[0091] In some embodiments, the storage device increases the initial idle time according to a preset increase step to obtain the target idle time. The preset increase step is the time value added each time based on the initial idle time, and the preset increase step can be set by itself, and this application does not limit this.
[0092] For example, when the preset increase step is greater than zero, the storage device may use the sum of the initial idle time and the preset increase step as the target idle time, or, when the preset increase step is less than zero, the storage device may use the difference between the initial idle time and the preset increase step as the target idle time.
[0093] In addition, since the initial idle duration in the present application is a variable, the target idle duration is a value after adjusting the initial idle duration, and can be represented by the same variable. For example, the initial idle duration is represented by variable A, and the target idle duration can be represented by variable A. The calculation method of the target idle duration can refer to formula (2).
[0094] A=A+δ2; (2)
[0095] Among them, A on the left side of the equal sign represents the target idle time, A on the right side of the equal sign represents the initial idle time, and δ2 represents the preset increase step.
[0096] In some other embodiments of the present application, the target idle time may also be expressed as A. ′ express.
[0097] In this embodiment, when the performance of the storage device can be further improved, increasing the initial idle time is equivalent to increasing the time that the storage device remains in a non-low power mode waiting for the access request of the host. Responding to the access request by increasing the target idle time can not only reduce the number of times the storage device enters the low power mode, but also improve the performance of the storage device such as the response speed to the second access request of the host. In addition, the target idle time is obtained by increasing the initial idle time. After the idle time of the storage device (the time when no access request is received) exceeds the target idle time, the storage device will enter the low power mode again, and then calculate a new idle time threshold according to the target idle time, and then respond to the access request of the host through the new idle time threshold.
[0098] S126, if the first comparison result is that the low power consumption duration is greater than the first preset threshold and the second comparison result is that the initial idle duration is less than or equal to the second preset threshold, or if the first comparison result is that the low power consumption duration is less than or equal to the first preset threshold and the third comparison result is that the initial idle duration is greater than or equal to the third preset threshold, the storage device does not adjust the initial idle duration.
[0099] In this embodiment, the storage device responds to the second access request of the host in the next round according to the initial idle time. Since the performance of the storage device such as the response speed to the host may no longer change after the initial idle time is adjusted to be less than or equal to the second preset threshold, and the power consumption generated by the storage device may no longer change after the initial idle time is adjusted to be greater than or equal to the third preset threshold, the storage device does not adjust the initial idle time, thereby saving computing resources.
[0100] like Figure 8 , which is a functional module diagram of a power consumption optimization device provided by an embodiment of the present application. The power consumption optimization device 11 includes a response unit 110, an acquisition unit 111, an adjustment unit 112 and an entry unit 113. The module / unit referred to in the present application refers to a Fig. 9 The processor 13 and Fig.10 A series of computer readable instruction segments acquired by the processing device 36 in the embodiment and capable of completing fixed functions, which are stored in Fig. 9 The memory 12 and Fig.10 In the storage device 35. In this embodiment, the functions of each module / unit will be described in detail in subsequent embodiments.
[0101] The response unit 110 is configured to respond to the first access request and wake up the storage device from the low power consumption mode.
[0102] In one embodiment of the present application, the response unit 110 is also used to maintain a non-low power consumption mode within the target idle time after the first access request is executed, and if the second access request is received within the target idle time after the first access request is executed, respond to the second access request in the non-low power consumption mode.
[0103] The acquisition unit 111 is used to obtain the low power consumption duration of the storage device in the low power consumption mode before waking up, and to obtain the initial idle duration of the storage device before entering the low power consumption mode.
[0104] In one embodiment of the present application, the acquisition unit 111 is also used to determine the first time when the storage device enters the low power consumption mode, start timing from the first time until the first access request is received, stop timing, obtain the second time when the first access request is received, and calculate the low power consumption duration based on the first time and the second time.
[0105] The adjusting unit 112 is configured to adjust the initial idle duration according to the initial idle duration, a preset threshold, and the low power consumption duration to obtain a target idle duration.
[0106] In one embodiment of the present application, the adjustment unit 112 is further configured to determine whether to adjust the initial idle duration according to a comparison result between the initial idle duration and the low power consumption duration and a preset threshold.
[0107] In one embodiment of the present application, the preset threshold includes a first preset threshold, a second preset threshold and a third preset threshold, wherein the second preset threshold is less than the third preset threshold, and the adjustment unit 112 is further used to compare the low power consumption duration with the first preset threshold to obtain a first comparison result, compare the initial idle duration with the second preset threshold to obtain a second comparison result, and compare the initial idle duration with the third preset threshold to obtain a third comparison result, and determine whether to adjust the initial idle duration based on the first comparison result, the second comparison result and the third comparison result.
[0108] In one embodiment of the present application, the adjustment unit 112 is also used to adjust the initial idle duration if the first comparison result is that the low power consumption duration is greater than the first preset threshold and the second comparison result is that the initial idle duration is greater than the second preset threshold, or if the first comparison result is that the low power consumption duration is less than or equal to the first preset threshold and the third comparison result is that the initial idle duration is less than the third preset threshold, or if the first comparison result is that the low power consumption duration is greater than the first preset threshold and the second comparison result is that the initial idle duration is less than or equal to the second preset threshold, or if the first comparison result is that the low power consumption duration is less than or equal to the first preset threshold and the third comparison result is that the initial idle duration is greater than or equal to the third preset threshold, not adjust the initial idle duration.
[0109] In one embodiment of the present application, the adjustment unit 112 is also used to increase the initial idle duration to obtain the target idle duration if the low power consumption duration is less than or equal to the first preset threshold and the initial idle duration is less than the third preset threshold, or to reduce the initial idle duration to obtain the target idle duration if the low power consumption duration is greater than the first preset threshold and the initial idle duration is greater than the second preset threshold.
[0110] In one embodiment of the present application, the adjusting unit 112 is further configured to increase the initial idle time according to a preset increase step size to obtain the target idle time.
[0111] The entry unit 113 is configured to enter a low power consumption mode if no second access request is received within the target idle time period after the first access request is executed.
[0112] Through the above implementation, the initial idle duration is the duration that the storage device maintains a non-low power mode waiting for an access request. By comparing the low power duration with the preset threshold, the benefit of the storage device entering the low power mode this time can be known, so that the size of the access pressure currently faced by the storage device can be inferred. When the benefit of the storage device entering the low power mode is small, it can be inferred that the storage device is facing a large access pressure. When the storage device faces a large access pressure and receives a second access request within the target idle duration after the first access request is executed, the adjustment of the initial idle duration includes increasing the initial idle duration to obtain the target idle duration, which is equivalent to increasing the time that the storage device maintains a non-low power mode to wait for the second access request. By responding to the second access request through the increased target idle duration, the number of times the storage device enters the low power mode in the next round can be reduced, so that the response speed of the storage device to the access request is not affected (the performance of the storage device is not affected). When the benefit of the storage device entering the low power mode is large, it can be inferred that the storage device is facing less access pressure. When the storage device faces less access pressure and does not receive the second access request within the target idle time after the first access request is executed, the adjustment of the initial idle time includes reducing the initial idle time to obtain the target idle time, which is equivalent to reducing the time the storage device remains in a non-low power mode to wait for the second access request. By responding to the second access request with the reduced target idle time, the number of times the storage device enters the low power mode can be increased, thereby reducing the power consumption of the storage device. The present application can flexibly adjust the time the storage device remains in a non-low power mode waiting for access requests according to the different access pressures faced by the storage device, thereby adjusting the number of times the storage device enters the low power mode, thereby solving the technical problem that the storage device cannot take into account both better performance and better power consumption.
[0113] like Fig. 9 , which is a schematic diagram of the structure of a storage device provided in one embodiment of the present application.
[0114] In one embodiment of the present application, the storage device 1 includes, but is not limited to, a memory 12, a processor 13, a host interface controller 14, a cache controller 15, a flash memory controller 16, and a flash memory 17, and a computer program stored in the memory 12 and executable on the processor 13, such as a power consumption optimization program. The host interface controller 14 is used to control an interface for communicating with a host, the cache controller is used to control the memory 12 or other memories (such as a buffer) in the storage device 1, and the flash memory controller 16 is used to control the flash memory 17, which is used to store information or data.
[0115] Those skilled in the art will understand that the schematic diagram is merely an example of the storage device 1 and does not constitute a limitation on the storage device 1. The storage device 1 may include more or fewer components than shown in the diagram, or a combination of certain components, or different components. For example, the storage device 1 may also include input and output devices, network access devices, buses, etc.
[0116] The processor 13 can be a central processing unit (CPU) based on an ARM structure, or any conventional processor, etc. The processor 13 is the computing core and control center of the storage device 1, and uses various interfaces and lines to connect various parts of the entire storage device 1, and obtain the operating system of the storage device 1 and various installed applications, program codes, etc.
[0117] The processor 13 obtains the operating system of the storage device 1 and various installed applications. The processor 13 obtains the application to implement the steps in the above-mentioned various power consumption optimization method embodiments, for example Figure 4 as well as Figure 7 Steps shown.
[0118] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 12 and retrieved by the processor 13 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the acquisition process of the computer program in the storage device 1.
[0119] The memory 12 may be used to store the computer program and / or module, and the processor 13 implements various functions of the storage device 1 by running or acquiring the computer program and / or module stored in the memory 12, and calling the data stored in the memory 12. The memory 12 may include a dynamic random access memory (DRAM) and a random access memory (RAM).
[0120] If the module / unit integrated in the storage device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is obtained by the processor, the steps of each of the above-mentioned method embodiments can be implemented.
[0121] The computer program includes computer program code, which may be in source code form, object code form, an accessible file or some intermediate form, etc. The computer readable medium may be a flash memory NAND.
[0122] Combination Figure 4 , the memory 12 in the storage device 1 stores multiple instructions to implement a power consumption optimization method, and the processor 13 can obtain the multiple instructions to achieve: responding to a first access request, waking up the storage device from a low power consumption mode, obtaining the low power consumption duration of the storage device in the low power consumption mode before waking up, and obtaining the initial idle duration of the storage device before entering the low power consumption mode; adjusting the initial idle duration according to the initial idle duration, a preset threshold and the low power consumption duration to obtain a target idle duration; if no second access request is received within the target idle duration after the first access request is executed, entering the low power consumption mode.
[0123] Specifically, the specific implementation method of the processor 13 for the above instructions can refer to Figure 4 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0124] like Fig.10 , which is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application.
[0125] In one embodiment of the present application, the electronic device 3 includes, but is not limited to, a storage device 35, a processing device 36, and a computer program stored in the storage device 35 and executable on the processing device 36, such as a power consumption optimization program. Fig. 9 The storage device 1 is shown.
[0126] In one embodiment of the present application, the electronic device 3 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored computer-readable instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (ASIC), programmable gate arrays (FPGA), digital signal processors (DSP), embedded devices, etc.
[0127] The electronic device 3 can be any electronic product that can perform human-computer interaction with a user, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an interactive network television (IPTV), a smart wearable device, etc.
[0128] The electronic device 3 may include a network device and / or a user device. The network device includes, but is not limited to, a single network electronic device, an electronic device group consisting of multiple network electronic devices, or a cloud based on cloud computing consisting of a large number of hosts or network electronic devices. This application does not limit the electronic device.
[0129] The network where the electronic device 3 is located includes, but is not limited to: the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (Virtual Private Network, VPN), etc.
[0130] Those skilled in the art will understand that the schematic diagram is merely an example of the electronic device 3 and does not constitute a limitation on the electronic device 3. The electronic device 3 may include more or fewer components than shown in the diagram, or a combination of certain components, or different components. For example, the electronic device 3 may also include input and output devices, network access devices, buses, etc.
[0131] The processing device 36 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processing device 36 is the computing core and control center of the electronic device 3, and uses various interfaces and lines to connect various parts of the entire electronic device 3, and obtain the operating system of the electronic device 3 and various installed applications, program codes, etc.
[0132] The processing device 36 obtains the operating system of the electronic device 3 and various installed applications. The processing device 36 obtains the applications to implement the steps in the above-mentioned various power consumption optimization method embodiments, for example Figure 4 as well as Figure 7 .
[0133] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the storage device 35 and acquired by the processing device 36 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the acquisition process of the computer program in the electronic device 3.
[0134] The storage device 35 can be used to store the computer program and / or module, and the processing device 36 implements various functions of the electronic device 3 by running or acquiring the computer program and / or module stored in the storage device 35, and calling the data stored in the storage device 35. The storage device 35 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the electronic device 3, etc. In addition, the storage device 35 can include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
[0135] The storage device 35 may be an external memory and / or an internal memory of the electronic device 3. Furthermore, the storage device 35 may be a memory in a physical form, such as a memory stick, a TF card (Trans-flash Card), and the like.
[0136] If the module / unit integrated in the electronic device 3 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is obtained by the processor, the steps of each of the above-mentioned method embodiments can be implemented.
[0137] The computer program includes computer program code, which may be in source code form, object code form, an accessible file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0138] Combination Figure 4 , the storage device 35 in the electronic device 3 stores multiple instructions to implement a power consumption optimization method, and the processing device 36 can obtain the multiple instructions to achieve: respond to a first access request, wake up the storage device from a low power consumption mode, obtain the low power consumption duration of the storage device in the low power consumption mode before waking up, and obtain the initial idle duration of the storage device before entering the low power consumption mode; adjust the initial idle duration according to the initial idle duration, a preset threshold and the low power consumption duration to obtain a target idle duration; if no second access request is received within the target idle duration after the first access request is executed, enter the low power consumption mode.
[0139] Specifically, the specific implementation method of the processing device 36 for the above instructions can refer to Figure 4 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0140] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0141] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0142] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0143] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present application is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present application. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0144] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in this application can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0145] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.
Claims
1. A power consumption optimization method, applied to a storage device, characterized in that: The method comprises: In response to the first access request, the storage device is awakened from the low power consumption mode, the low power consumption duration of the storage device in the low power consumption mode before being awakened is obtained, and the initial idle duration of the storage device before entering the low power consumption mode is obtained; According to the initial idle duration, the preset threshold and the low power consumption duration, the initial idle duration is adjusted to obtain a target idle duration; If no second access request is received within the target idle time after the first access request is executed, a low power consumption mode is entered.
2. The power consumption optimization method according to claim 1, characterized in that: The obtaining of the low power consumption duration of the storage device in the low power consumption mode before waking up includes: Determining a first time when the storage device enters the low power consumption mode; Counting from the first time until the first access request is received, stopping the counting, and obtaining a second time when the first access request is received; The low power consumption duration is calculated according to the first time and the second time.
3. The power consumption optimization method according to claim 1, characterized in that: The method further comprises: According to the comparison result between the initial idle time duration and the low power consumption time duration and a preset threshold, it is determined whether to adjust the initial idle time duration.
4. The power consumption optimization method according to claim 3, characterized in that: The preset threshold includes a first preset threshold, a second preset threshold, and a third preset threshold, wherein the second preset threshold is less than the third preset threshold, and the determining whether to adjust the initial idle duration according to the comparison result between the initial idle duration and the low power consumption duration and the preset threshold includes: Comparing the low power consumption duration with the first preset threshold to obtain a first comparison result, comparing the initial idle duration with the second preset threshold to obtain a second comparison result, and comparing the initial idle duration with the third preset threshold to obtain a third comparison result; It is determined whether to adjust the initial idle time length according to the first comparison result, the second comparison result and the third comparison result.
5. The power consumption optimization method according to claim 4, characterized in that: The determining whether to adjust the initial idle time according to the first comparison result, the second comparison result, and the third comparison result includes: If the first comparison result is that the low power consumption duration is greater than the first preset threshold and the second comparison result is that the initial idle duration is greater than the second preset threshold, or if the first comparison result is that the low power consumption duration is less than or equal to the first preset threshold and the third comparison result is that the initial idle duration is less than the third preset threshold, adjust the initial idle duration; or If the first comparison result is that the low power consumption duration is greater than the first preset threshold and the second comparison result is that the initial idle duration is less than or equal to the second preset threshold, or if the first comparison result is that the low power consumption duration is less than or equal to the first preset threshold and the third comparison result is that the initial idle duration is greater than or equal to the third preset threshold, the initial idle duration is not adjusted.
6. The power consumption optimization method according to claim 5, characterized in that: The adjusting the initial idle time to obtain the target idle time comprises: If the low power consumption duration is less than or equal to the first preset threshold and the initial idle duration is less than the third preset threshold, increase the initial idle duration to obtain the target idle duration; or If the low power consumption duration is greater than the first preset threshold and the initial idle duration is greater than the second preset threshold, the initial idle duration is reduced to obtain the target idle duration.
7. The power consumption optimization method according to claim 6, characterized in that: The increasing the initial idle duration to obtain the target idle duration comprises: The initial idle time duration is increased according to a preset increase step length to obtain the target idle time duration.
8. The power consumption optimization method according to claim 1, characterized in that: The method further comprises: maintaining a non-low power consumption mode within the target idle time duration after the first access request is executed; If the second access request is received within the target idle time period after the first access request is executed, respond to the second access request in the non-low power consumption mode.
9. A storage device, characterized in that: The storage device communicates with the host, and the storage device includes: a memory storing at least one instruction; and A processor executes the at least one instruction to implement the power consumption optimization method according to any one of claims 1 to 8.
10. An electronic device, characterized in that: The electronic device comprises: The storage device of claim 9, storing at least one instruction; and A processing device executes the at least one instruction to implement the power consumption optimization method according to any one of claims 1 to 8.
Citation Information
Cited By
Guide equipment power consumption management method based on strategy optimization
CN121503992A
